Well, call it macaroni! The pong game our Gaming course is taking us
through runs on a virtual screen, defined thanks to a LOVE lua
libray of functions called 'push'. Stuff happens in delta time, that fraction of a second,
used by one's computer to re-draw. Just specify 'push' as required and use the relevant
variables one wants to work with and go.
Below, the code for moving the paddles. The left works on 'w' and
's', the right on 'up' and 'down'. Awesomely clever!
No comments:
Post a Comment