PDA

View Full Version : CanI create the pacman game in alice ?


Waleed
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

Niteshifter
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).

noahx23
04-26-2010, 07:31 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).

That and the fact that it would be really hard to make an AI for the ghosts.

bjia56
04-26-2010, 09:01 PM
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:


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.

jediaction
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?

Dameria
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?

Niteshifter
04-27-2010, 05:37 PM
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.

Dameria
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.

jediaction
04-28-2010, 07:13 AM
I just might to now. Whats with pacman, its so cool!

Waleed
04-29-2010, 12:36 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.


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.

Dameria
04-29-2010, 03:36 PM
Just save the 2d picture from the internet like you would any other picture. Then open your program in Alice and click on file > create billboard > and find where you saved the picture to. Once you import the picture as a billboard you can fool around with the move settings so that it fits into the whole screen.

Waleed
04-29-2010, 11:43 PM
Just save the 2d picture from the internet like you would any other picture. Then open your program in Alice and click on file > create billboard > and find where you saved the picture to. Once you import the picture as a billboard you can fool around with the move settings so that it fits into the whole screen.

hey thanks i got it i just wanted to ask how would i create the pacman figure
is there a way to also give it a subpart like the jaw it would look more realistic.
?
btw hows your pacman going so far : )

Waleed
04-30-2010, 12:00 AM
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.

hey i dont quite understand what your reffering to by AI

im guessing your talking about those ghosts right

if your are can you give me like an idea of how i will be able to create them

thanks alot :)

Niteshifter
04-30-2010, 08:04 PM
hey i dont quite understand what your reffering to by AI

im guessing your talking about those ghosts right

if your are can you give me like an idea of how i will be able to create them

thanks alot :)

It takes a long time and a lot of dedication to learn about artificial intelligence programs (AI). The best I can come up with to start is to make it draw a random path to follow and if the pacman is in sight of the ghost, to go after it. I'd like to warn you that it may or may not be easy depending on the approach you take.

bjia56
04-30-2010, 08:55 PM
In my experiences, the Pac-Man games I've played (it was the demo on my cell phone!) have specific ghosts move toward a designated location (a corner) and circle a wall or something. Now that version is too easy for a player, so what I suggest is if you can't make a great AI that follows Pac-Man when in sight, have the ghosts turn a random direction (left, right, forward) at each intersection.

Waleed
04-30-2010, 10:27 PM
It takes a long time and a lot of dedication to learn about artificial intelligence programs (AI). The best I can come up with to start is to make it draw a random path to follow and if the pacman is in sight of the ghost, to go after it. I'd like to warn you that it may or may not be easy depending on the approach you take.

wow ..that soounds pretty difficult
Im actually a biggener with alice I dont think i will be able to
do that ..I think a better idea would be to just make them take random turn at intersections ..dont you thinkk so

is there a way I create the physical structure of the ghosts in alice
im talking abt the appearance of them nothing code wise
is it possible is alice?

thanks.

Dameria
04-30-2010, 10:34 PM
If you want you can take the easy way out and just take the 2-d picture of the pacman ghost. Since it never turns, you only need 1 image of it that just goes in different directions depending on the corners. You would need 1 for each color ghost.

Waleed
05-10-2010, 01:15 PM
If you want you can take the easy way out and just take the 2-d picture of the pacman ghost. Since it never turns, you only need 1 image of it that just goes in different directions depending on the corners. You would need 1 for each color ghost.


heyy tthanks

btw im juss wondering ...
are you done making your pacman game ?

jediaction
05-10-2010, 02:31 PM
And to have that moving effect, just have like 3 pics, oen for every momvent and make them showing = tru and false rapidly or some slow speed for cool old pacman effect

Dameria
05-10-2010, 02:40 PM
heyy tthanks

btw im juss wondering ...
are you done making your pacman game ?

I haven't started my version yet, I have to focus on school more, and when I come back to Alice I have a different game I am going to start. I probably will not make a pacman game, but if you upload a world I will be more than happy to fix things for you.

jediaction
05-10-2010, 02:49 PM
and that is...