Page 1 of 1

HELP, Developing a pacman

Posted: Sat Nov 05, 2011 11:41 am
by TechnoWarrior
Hi friends, hoping you all are fine and enjoying the life.

I had done a good amount of programming in java and C# but new to LISP,i am using Alegro Common LISP 8.2 for development, now my task is to develop a game "Pacman" using LISP, i had a choice to make its interface GUI based or simple console based, i am very confused about where to start, how to use above mentioned tool for developing a graphical or console application, i will be very thankful if anyone can guide me or give any good suggestion or recommend any web link so i can understand how to de, Thanx in advance.

Re: HELP, Developing a pacman

Posted: Sat Nov 05, 2011 1:13 pm
by gugamilare
If you opt for creating a GUI game, you can use Lispbuilder. There is a nice manual about how to use it. I think you can find images easily on the web.

You can either make a console-based game to concentrate yourself on the logic of the game first and then transform it into a graphic one, or you can create a program that prints the map first and only then worry about the logic of the game itself.

It should be much easier to create a console-based game, though.

In any case, consider creating a text file with the pattern for the map, like this:

Code: Select all

*******
*.....*
*.* *.*
*.*G*.*
*.***.*
*..P..*
*******
Where '*' is a wall, '.' is a biscuit, ' ' is a black space, 'P' is the spawning site of the Pacman and 'G' is the spawning site of the ghosts.

Re: HELP, Developing a pacman

Posted: Sat Nov 05, 2011 1:14 pm
by gugamilare
I could help you later if you want the ghosts to chase the Pacman as well.

Re: HELP, Developing a pacman

Posted: Sun Nov 06, 2011 11:02 am
by TechnoWarrior
Thanx "gugamilare", i started working on console environment, concentrating more on logic, I will definitely request you to help me later, if i got stuck somewhere, thanx....