Game sequence in isometric game
I''d like to know in what order I should perform the following "blocks" of my game:
rendering, AI, music, movement
Have I missed anything crucial?
XEOS Digital Development - Supporting the independant and OpenSource game developers!
Forgive me if I''m off-base, because I haven''t worked with sound specificaly, but I think at least music should be executed in a seperate thread from the game loop. The music task should be idle most of the time anyway.
As for rendering (by that do you mean drawing?), I''d think that would be done in response to user or AI enemy movement. It needs to appear instantaneous to look good.
If you remove those steps from the loop, your game comes down to AI & movement, so you can just alternate as needed I suppose.
Threads are your friends.
As for rendering (by that do you mean drawing?), I''d think that would be done in response to user or AI enemy movement. It needs to appear instantaneous to look good.
If you remove those steps from the loop, your game comes down to AI & movement, so you can just alternate as needed I suppose.
Threads are your friends.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement