FAQ  •  Register  •  Login

Pac Man Project

Moderator: nitrofurano

<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Sun May 27, 2012 5:13 pm

Pac Man Project

Clearly not finished, but I wanted feedback on how it feels. I spent /ages/ getting complex ghost behaviour right. Compare with CDS gobble a ghost, for example.

http://dl.dropbox.com/u/4903664/DemoMan.tzx

(Yes, I know you can't die. Or eat ghosts. Yes, I know it breaks on level 2)
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun May 27, 2012 8:42 pm

Re: Pac Man Project

If this is related to your GDoc, yes I think it's en *excellent* tutorial! In fact I've moved this entire site (finally) to my own server (hope you didn't notice) and was fixing Wiki articles links, which were not working after the update (yes, I realized whilst reading your Google Doc tutorial).
Are you using just PRINT, or another graphic routine?

Update: How do you printed the double-sized ghost in the middle?
<<

JBGV

Posts: 65

Joined: Wed Feb 16, 2011 6:12 am

Post Sun May 27, 2012 9:42 pm

Re: Pac Man Project

The game is really good.

I imagine the behavior of the ghosts have to be very complicated :roll:

PAC-MAN responds very well to the keyboard, it moves very well
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun May 27, 2012 10:22 pm

Re: Pac Man Project

JBGV wrote:The game is really good.

I imagine the behavior of the ghosts have to be very complicated :roll:

PAC-MAN responds very well to the keyboard, it moves very well

I'm a bit intrigued about the Ghost Logic :P It's pretty good.
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Mon May 28, 2012 5:03 am

Re: Pac Man Project

Very nice and playable! Looking forward to finished version.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Mon May 28, 2012 9:06 pm

Re: Pac Man Project

boriel wrote:Are you using just PRINT, or another graphic routine?


Yes. Just plain old print. You've got a copy of the code to prove it :)

boriel wrote:Update: How do you printed the double-sized ghost in the middle?


http://www.boriel.com/wiki/en/index.php ... ePrint.bas

boriel wrote:
JBGV wrote:The game is really good.

I imagine the behavior of the ghosts have to be very complicated :roll:

PAC-MAN responds very well to the keyboard, it moves very well


I'm a bit intrigued about the Ghost Logic :P It's pretty good.


Thankyou!

Actually, the behaviour is as authentic as I can get. Notice the border colour changes sometimes? That's for me to keep track of scatter/chase/frightened modes.

Behaviour algorithms stolen wholesale from the original, as written up at: http://home.comcast.net/~jpittman2/pacm ... ssier.html

All except the fast cornering, which you can't really do in a character based game. No colour clash, though.

The most interesting thing, to me, is that it's all clock based. Interrupts are on, and something gets to move when the framecounter is past a certain point. Then it's moved, and a variable set as to the next time it's allowed to move. It makes for changing the speed of everything very easy (and in higher levels, you bet it speeds up and ghosts go blue for shorter and shorter times) - and also anything else you add to it (like test printout code) doesn't affect the speed. The downside is that sound will mess with the frames counter! So any sound effect longer than half a frame will have to increment the frame counter afterwards, to keep timing neat...

As you run out of dots, watch the speed of Red Ghost there... starts out moving every 10 frames, but just before the last dot gets eaten, he's zooming! (cruise elroy mode, in other words)
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Sat Jun 02, 2012 8:18 pm

Re: Pac Man Project

I've updated the version. Getting close...

Solved the sound spoils the clock problem, with a small IM2 routine...

https://dl.dropbox.com/u/4903664/DemoMan.tzx

Some serious bugs with power pills. Still. You can see where it's going.
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Sun Jun 03, 2012 9:38 pm

Re: Pac Man Project

I think I've cleaned up most of the bugs. At least there's not a broken stray ghost of a blue ghost when you eat the red one. (Tip: Inside an If ghost=1 clause, don't move ghost 0). Still some issues with ghosts going back home after being eaten and breaking the big ghost display.

Added pacman munch when you eat a dot, and a lives counter.

How does it feel? Too easy? Too hard?
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Sun Jun 03, 2012 9:57 pm

Re: Pac Man Project

Already very very good. Plays well...
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Sun Jun 03, 2012 11:06 pm

Re: Pac Man Project

Thanks, LCD.

I need a bugs list, now, really - all helpful.

Stuff like "big ghosts corrupted when you die/eat a ghost" I know.
I just found an oddity when you eat a ghost in the side tunnel.

Any others?
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Wed Jun 06, 2012 9:00 am

Re: Pac Man Project

Latest update: Attract screen.

Also...if you watch it long enough...it might reveal an easter egg. Or two. (Technically, there's 16)
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Wed Jun 06, 2012 10:14 pm

Re: Pac Man Project

Last call for bugs. I've added polish. I've added an 18th thing for the title page to do.

Sans extra features, this is done, I think...

https://dl.dropbox.com/u/4903664/DemoMan.tzx
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Wed Jun 06, 2012 10:35 pm

Re: Pac Man Project

For me it's finished (and very well done!!!). :)
I've noticed that when trying to eat two ghost in a row, if they overlap, sometimes you eat only one (this happened me near the "tunnel" zone, on the right side of the screen).
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Wed Jun 06, 2012 10:40 pm

Re: Pac Man Project

Tell me you watched the title screen for a while ;)
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Wed Jun 06, 2012 10:41 pm

Re: Pac Man Project

boriel wrote:For me it's finished (and very well done!!!). :)
I've noticed that when trying to eat two ghost in a row, if they overlap, sometimes you eat only one (this happened me near the "tunnel" zone, on the right side of the screen).


I can imagine that's the case; though since it's frame based, it ought to catch it if they stay in the same square for more than one frame. Hmm. I'll have a think about that.

Thankyou for your kind comments.
Next

Return to Gallery

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO