Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Walker

Pages: 1 ... 11 12 [13]
181
Graphics / Drawing to window from a seperate function/tile engine help
« on: January 16, 2010, 05:52:24 am »
Hey there,

I am working on a simple tile based strategy game. The problem I am having comes from needing to create my window in the main function, but I want to draw sprites/tiles from a seperate function. Is it possible to do this?

Should I just draw every sprite in the main function, and just move them in my other function?

Additionally, the map is only 15x10 tiles, they are all on screen at once. Should I loop through and draw every tile each frame, or should I perhaps parse the map at setup and draw it to a background image/sprite and just draw that each frame?

Cheers

Pages: 1 ... 11 12 [13]