forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Animation delay code

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Xephonic



Joined: 03 Aug 2005
Posts: 6

PostPosted: Wed Aug 03, 2005 8:19 am    Post subject: Animation delay code Reply with quote

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
View user's profile Send private message
Agoln



Joined: 08 Jun 2005
Posts: 326
Location: Fort Wayne, IN

PostPosted: Wed Aug 03, 2005 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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