Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Game question

Name: Anonymous 2014-06-16 20:00

I am creating a game (engine) with SDL 2 using C and I am planing to have a scheme dialect to extend it in the future
here is my question, let's say I have N textures that I want to be rendered, should I have them in a list and render them every time something happens to the event loop? The other programmer I am working about is against the idea of having every texture in a list and believes that we should have them normaly in the code like variables, what to do?
another question is how to access other objects by some functions, for example I want every time someone presses the UP button to change the player position but in that case I should a: have the player variable as global or b: pass it in that function, should I have another list or something (like a db) for every object or something?
I have no idea on how to work with game stuff

Name: Anonymous 2014-06-17 3:05

Back in the days drawing graphics on screen was as easy as "((char*)0xA0000)[(y<<width)+x] = color". The joy of instant gratification! Today everything requires studying through boring manuals and getting your way through roadblocks of useless features. Truly the less is more.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List