 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Xephonic
Joined: 03 Aug 2005 Posts: 6
|
Posted: Wed Aug 03, 2005 8:19 am Post subject: Animation delay code |
|
|
Hello All. I've decided to take a shot at deving games on the PSP. Ive been coding for god knows how many years now. Most of my C/C++ knowledge is in data structures/data abstraction sadly. My game work is in java. So bear with me while i struggle with some of the graphical/animation stuff. Anyways, i decided at first ill create something really simple to help familiarize myself with the psp environment. So i decided as an exercise in button recognition, I'd create the game Simon. You know, a random pattern of buttons appears and lengthens by one each time and you gotta follow up by inputting the stuff in the correct order. A memory game. I've almost got a prototype done, but im struggling in one part right now, because im unfamiliar how id do this in C.
I need something be to be able to display for a few seconds then disappear. In short, i dont know what i need to do to create an animation timer that halts other processes. If someone would be as kind as to point me in the right direction thatd be great |
|
| Back to top |
|
 |
Agoln

Joined: 08 Jun 2005 Posts: 326 Location: Fort Wayne, IN
|
Posted: Wed Aug 03, 2005 10:09 am Post subject: |
|
|
If you are looking for just showing the beginning of a simon game e.g. showing the pattern needed to sucessfully 'complete' a level, then here is some very english pseudo code:
| Code: |
function showPatter
loop
draw correct button
call sleep of [x] seconds
clear screen
end loop
end function
|
_________________ Lego of my Ago! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|