screen.blit

8 views
Skip to first unread message

MatikFIeash_fish

unread,
Nov 12, 2013, 2:31:17 AM11/12/13
to gummw...@googlegroups.com
sorry for another question, but how do i blit an image to the screen?
i have tried to do this in the engine.py and camera.py but neither seem to work. 

Also in which file is the game loop? 

B W

unread,
Nov 12, 2013, 2:50:15 PM11/12/13
to gummw...@googlegroups.com
Howdy. No problem, your questions are welcome.

Looking at your ROOT.py, you would place your dynamic blits in App.draw(), after State.map.draw() is called. This is because State.map.draw() renders the background tiles onto the screen. You should then follow up by overlaying your dynamic elements onto the screen.

The game loop is engine.run(). Your ROOT.py calls it in main() to launch the game loop.


--
You received this message because you are subscribed to the Google Groups "Gummworld2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gummworld2+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages