Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Programming computer threads

The programming in threads, implies that several tasks at the same time can be executed simultaneously, the clearest example is that while I write this, in another thread runs an antivirus in the background, and in another thread I listen to music on youtube. Something that a few decades ago was impossible where a command had to finish a task and pass to another.  This has greater advantage when we have processors with several cores in one. Because with a single processor or core, a simulation is performed. 

In the case of video games, I use a thread loading resources in the background, this to load meshes, audio, sound and so on. While the main thread runs a simple animation of loading these resources, this allows the user to inform that something is happening and that it's time to wait, something much better than a simple message "Loading".



Not everything is usually perfect, there are advantages and disadvantages to programming with threads, and one of the problems is the synchronization of data, but can be solved with some ingenuity by using something called traffic lights and mutex.


The cone

Creating utilitarian elements for the game, in this case a simple traffic cone, to establish circuits and different kinds of tests in the game to overcome. 




The cone is a mesh of low quantity of polygins and a simple texture of their respective colors in jpg format.






That's all for now.