android
  #1  
Old 05-28-2010, 03:31 PM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default Pacman dev

Hello everyone. I have been working on a pacman game latly and have had some sucess but also some problem.

What is done
pacman
walls
pause button
controls for pacman


what needs to be done
ghost
dots
score
lives


note that i am restart the walls and pacman movement since my layout of the walls were not evenly spaced. I have a new layour and working on a control system similiar to the one in snake

Last edited by jbob182; 05-30-2010 at 01:39 PM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 05-28-2010, 10:33 PM
ThievingSix ThievingSix is offline
Member
 
Join Date: Aug 2008
Posts: 218
Default

Do you clear the entire screen before calling pacdraw()?
__________________
Only ONE more functions in the Wiki need addressing!
Zen X-Fi2 LUA Wiki
Want to protect your applications? Click Here!
Tower Defense Thread
Zen Lock - Protect Your Zen!
Reply With Quote

  #3  
Old 05-29-2010, 04:50 PM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default

if you mean I redraw the backround than no

I will try that and see what happens if nothing than i have another idea
Reply With Quote

  #4  
Old 05-29-2010, 06:09 PM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default

I have a question. Currently when pacman hits a wall it doesnt stop until the top left corner hits it and i know this is because his x and y are the top left corner. Is there any way to say his x is anywhere from the current x to x + 22 and the same for y?

thanks
Reply With Quote

  #5  
Old 05-30-2010, 10:21 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Yes, you can always do math on things in checks e.g "If((pacmanX+pacmanWidth)==wallX) then ... etc.

There's a good collision check function in the common code fragments, you should check that thread out.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #6  
Old 07-22-2010, 05:53 AM
lsquish's Avatar
lsquish lsquish is offline
Junior Member
 
Join Date: Mar 2010
Posts: 47
Default

Ooops...
i didnt relise you had already started making pacman here, so i started already and have basically finished the whole game engine.
Heres the link: http://www.anythingbutipod.com/forum...ad.php?t=56174
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:27 AM.