Articles Archive
-
Published in 2025-01-31
Lua for Dynamic AI in Games
Implementing AI scripting for your game characters
Imagine this: you're designing a game. You want a simple enemy that adapts to the player's movements, but every tweak requires you to rebuild the game—again and again. Frustrating, right? What if there were a way to update your enemy's behavior dynamically, without recompiling your code? Enter Lua, a lightweight scripting language that integrates seamlessly with C, giving developers flexibility and power. -
Published in 2023-10-20
Game Development with Lua
REAL-WORLD EXAMPLES OF HOW TO EMBED LUA PART 2
A small game was created in SDL 2 and C to demonstrate more Lua use cases. Let's expose complex structures and learn how to use metatables to givem them custom behavior like arithmetic operations in Lua. -
Published in 2023-02-26
More Advanced Examples of Embedding Lua in C
Real-World Examples of How to Embed Lua part 1
After writing a time ago my article about Embedding Lua in C I decided to follow up with a more real-world example than exposing simple functions and variables. This is the first part of a series of articles where I write an entire application that is closest to real-world development. -
Published in 2019-02-02
Embedding Lua in C
Extending your tools and apps with Lua scripts
Allowing users to extend apps with scripts it is an amazing feature. There are many languages for this purpose, but Lua is the choice today, it is powerful and easy to embed. Lua is an important tool for many industries, it has been used inside Game Engines, Databases like Redis, and HTTP servers like Nginx, powering users to extend their features. -
Published in 2018-07-21
Handling Binary Files in Go
How to Extract Data from Binary Formats
Discover a simple and powerful tool from Go standard library for helping you on parsing binary formats.