it walks!


I am sick today. I skipped work and went to doctor, that gave me 3 days at home. I tought: yay! I can work on the game ;) but that wasn't true-- I spent most of the day in the bathroom :(
And to waste some more time, I put an exagerated effort in the walking animation. The results is so-so, I could have spent much less time in this - anyway, the guy is walking. Now I need to put some basic kinematic to handle the body shaken by alchool abuse, and I have no idea where to start, but I'm sure I can do it before tomorrow end, together with the keyboard controls. Worst case scenario, this will be a 1 vs 1 drunken fighting game.. I hope!

By the way, can someone tell me why pyglet framerate drops down to 4, to jump over 60 if I move the mouse fast over the window?

(log in to comment)

Comments

@Lukino: Pyglet doesn't draw frames when it doesn't need to. Moving the mouse might be causing a change in state that needs rendering. Usually you'll have a scheduled function called every 60th of a second or something which will also wake up the event loop. Get well soon!
Also, when taking screenshots on a Mac, if you do Cmd-Shift-4 then press space you can just click on a window to save a screenshot of. It cuts out anything in the background and adds a lovely drop shadow... I really don't know where that was meant to be documented, I discovered it by accident. :-)
Also don't forget to set window.invalid = True in your "once a frame" function to ask for a redraw!
Thank you guys this is very useful to know! Last time I coded game-like stuff in things other than actionscript I had to write my int 10 assembler code, so this python week is a massive update to my knowledges!