Alice Community  

Go Back   Alice Community > Alice 2 > Suggestion Box

Reply
 
Thread Tools Display Modes
CanI create the pacman game in alice ?
Old
Waleed
Guest
 
Status:
Posts: n/a
Default CanI create the pacman game in alice ? - 04-26-2010, 08:23 AM

hey everyone I have an assignment and i have to ccreate a game
I was just thinking of making pacman game but im not sure if i will be able to make it properly

wat do you guys think any suggestions?

i need your advices please help me , thanks
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 04-26-2010, 05:19 PM

It is possible to create a pacman game, The easy part would be programming the game, the hard/annoying part would be to figure out the setup of the game and inserting all the objects into the game (since you can't create/destroy in real time).
   
Reply With Quote
Old
noahx23
Senior Member
 
noahx23's Avatar
 
Status: Offline
Posts: 81
Join Date: Nov 2009
Location: outside of the box
Default 04-26-2010, 07:31 PM

Quote:
Originally Posted by Niteshifter View Post
It is possible to create a pacman game, The easy part would be programming the game, the hard/annoying part would be to figure out the setup of the game and inserting all the objects into the game (since you can't create/destroy in real time).
That and the fact that it would be really hard to make an AI for the ghosts.
   
Reply With Quote
Old
bjia56
Guest
 
Status:
Posts: n/a
Default 04-26-2010, 09:01 PM

Quote:
Originally Posted by Waleed View Post
hey everyone I have an assignment and i have to ccreate a game
I was just thinking of making pacman game but im not sure if i will be able to make it properly

wat do you guys think any suggestions?

i need your advices please help me , thanks
Anything's possible!!!

You will need to make the maze and probably fill the walls with cubes or something so the player cannot pass through.

For the PacMan pills or whatever he eats, make a list of every pill you use and manually insert them into the maze, then have something like this:

Code:
for all together (list_of_pills)
[
     if (PacMan) distance to (item_from_list_of_pills) <= (whatever number you want)
     [
          (item_from_list_of_pills) is showing set to false
          score_variable increase by (whatever number you want)
     ]
]
For the ghost AI, you can place an invisible marker at each intersection and have code that picks a random direction.

The hardest part you will find would be, in my opinion, the wall collision detection.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-27-2010, 05:27 PM

There is an example. I dont kow who its by but a car knows what path your on and it follows you. Um, once you have the set...

Advice: Dont add anything extra and there is not much we can say. What kind of advice are you looking for?


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 04-27-2010, 05:35 PM

Hmm, I might just make a pacman game now, I think I could be able to do it.

For the maze itself, you could just take a 2d picture off of the internet of the blank pacman board, and then just add stuff from there. This would make things a lot easier and require a lot less objects to create the maze. Do you think its alright if I try to create my own version on my own time?


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
Niteshifter
Guest
 
Status:
Posts: n/a
Default 04-27-2010, 05:37 PM

Quote:
Originally Posted by noahx23 View Post
That and the fact that it would be really hard to make an AI for the ghosts.
The AI is fairly easy if you know what you're doing, the only drawback for this is the lack of memory since Alice is 3D and not 2D, so it'll be a bit slow.
   
Reply With Quote
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 04-27-2010, 05:58 PM

I was going to do this for my version, but if you really want to know a good idea for this, here is my advice:

Use the 2d image of pacman for the maze, and then at every corner, put a cube or some other low-polygon object and put them into their own list. Then you can use each of those as a turning point for both the pacman and the ghosts, and you can just make the pacman and 1/4 rotation at every turning point if you happen to input either an up, down, left, or right on keypad.

Well, thats what I am planning on doing, but do what you want. If you want any other help or come into any other problems, I will help you.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-28-2010, 07:13 AM

I just might to now. Whats with pacman, its so cool!


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Hey!
Old
Waleed
Guest
 
Status:
Posts: n/a
Default Hey! - 04-29-2010, 12:36 PM

Quote:
Originally Posted by Dameria View Post
I was going to do this for my version, but if you really want to know a good idea for this, here is my advice:

Use the 2d image of pacman for the maze, and then at every corner, put a cube or some other low-polygon object and put them into their own list. Then you can use each of those as a turning point for both the pacman and the ghosts, and you can just make the pacman and 1/4 rotation at every turning point if you happen to input either an up, down, left, or right on keypad.

Well, thats what I am planning on doing, but do what you want. If you want any other help or come into any other problems, I will help you.

hey thanks so much for your help...
by the looks of it it looks like your a very skilled programmer in alice
but me on the other im actually a biggener and im not really good at it .
I really like the idea and im really greatful that your making your the pacman game also that way when im making it also..and if i run into any problems i could ask your for help.. but i just wanted to ask will it ber okay with you if ask a too many questions cuz i know i will i hope you dont get annoyed.

I really havent started programming so yeah ..im styl thinking abt but now that I know its possible to create pacman im really happy and can start working on it

oh and you know how yoou said use a 2d image of the pacman maaze how would i export into my world in alice can you please explain it to me ?

thanks again.
   
Reply With Quote
Reply

Thread Tools
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



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.