Page 1 of 1

Some question about game programming.

Posted: Fri Dec 26, 2014 1:58 pm
by allyusd
Hi,

Factorio is a great game, I'm love it.
I'm curious about game programming.
Can I ask some question?

1. Why Allegro? Why not SDL, Cocos2d-x, SFML...etc
2. What version at Allegro? 4 or 5? And why?
3. Your programming architecture have use MVC? or like it? (it's mean split logic and view, if you delete code about view, the game logic still running)

If the topic does not fit appear at here, please tell me where i can go? I'm really very interested.

Re: Some question about game programming.

Posted: Sun Dec 28, 2014 12:38 am
by kovarex
allyusd wrote:Hi,

Factorio is a great game, I'm love it.
I'm curious about game programming.
Can I ask some question?

1. Why Allegro? Why not SDL, Cocos2d-x, SFML...etc
Because it was the first engine that came to my mind. As Factorio started as small hobby project, I didn't put so many thought into it.
allyusd wrote: 2. What version at Allegro? 4 or 5? And why?
5 and the newest version, sometimes even the git version. We also have some custom changes made in Allegro. Mainly optimisation and font changes.
allyusd wrote: 3. Your programming architecture have use MVC? or like it? (it's mean split logic and view, if you delete code about view, the game logic still running)
It is especially needed to achieve deterministic simulation in multiplayer independent on the view.

Re: Some question about game programming.

Posted: Tue Feb 17, 2015 1:25 am
by allyusd
Thank you for your reply. It's very helpful for me.