|
|
Browse by Tags
All Tags » code » Example » KPL
-
Here's a quick example based on LearningProgram004, Joyce.
Basically, I added a second UFO to the program, move them both, and
when they collide I make one of them disappear and the other one grow
in size.It sounds like a very fun game - glad to help more as you work on it!
-
Here you go, Wolf - the zip file linked above should have a running version of your program in it. I'll also paste it below. The main thing you needed was a "while" loop which keeps running, watching for keys over and over again, and moving the tanker when a key has been pressed. Try it out, then ask some questions, ...
-
There are really only two differences from your original program, and they'll be useful as an explanation to everyone else, so let me do that.
The simple one is how I displayed that status message each time the space bar is pressed: ClearRect(0, 0,
200, 50, White)
PrintInRect("lvlisfarming
is now: ...
-
Hi WhiteElf,
Glad to help get this working - it's a good example for others to see as well. I have modified your example quite a bit, and will paste it below, as well as attach the KPL file to this message - see the link at the top of my post which makes the KPL file available for download.
There are a couple of complicated ...
|
|
|