🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Game sequence in isometric game

Started by
0 comments, last by xeos 24 years, 5 months ago
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!
Advertisement
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.

This topic is closed to new replies.

Advertisement