Skip to main content

Posts

Showing posts from April, 2021

Making learning fun and engaging

 Traditional teaching methods can often be dry and uninspiring, leading to disengaged students. Incorporating gaming into education can make learning fun and engaging helping students to stay focused and motivated.#

Advices on games' architecture

  The importance of a clean code I started programming game at a very young age, in C with the  SDL , and I have to say that my code got messy very quickly. Functions with hundreds of lines, structures handling too many different things... which ultimately led to poor bug tracking, memory leaks and in the end another unfinished project. Learning as soon as possible to divide your code into small functions, each doing one and only one single task, putting your related data into the same structure for efficient memory access, will save you a lot of time when debugging, and ultimately will help you when enhancing your games. Re-using code The importance of re-usable code is that you won't have to reinvent the wheel for common problems. Instead of having 10 functions reading configuration files, each one taking different parts of the file, you could have a single function loading the file and returning a map  String -> Value , which will be used by the other functions. This way, if