Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Snackman! (DB Pacman clone)

Author
Message
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 27th Jun 2003 23:16 Edited at: 27th Jun 2003 23:17
Eyz

this is Snackman! I've made it in 2 days, the only realy difficulty parts where making the AI and fitting it into 20 lines LOL! It requires no media, so just copie and paste! Hope you enjoy it.

By the way, it works in classic, not testet in Pro.

Any comments are welcome!



Lets make free games!
Download them at www.fishsoft.tk
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 27th Jun 2003 23:18
Sorry the code under the source button failet. Try again.

Lets make free games!
Download them at www.fishsoft.tk
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 27th Jun 2003 23:22
Made the level better!



Lets make free games!
Download them at www.fishsoft.tk
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 28th Jun 2003 11:28
i wasn't able to collect all the dots, some just didn't seem to have collision, also when a ghost hit me nothing happended.

hi guys
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 28th Jun 2003 15:04
OOOOPS!

Sorry guys! My fault. There was something gone terribly wrong by fixing it into 20 lines LOL. I fixed that. I also fixed the problem whith the ghosts!



Any comments are welcome!

Lets make free games!
Download them at www.fishsoft.tk
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 28th Jun 2003 18:34
I've updated the AI. The enemy's can't get stuck anymore. Every enemy now have their own variables, so the direction of each other are independent. They now even choose their own direction (left/right/back)!



Any comments are welcome!

Lets make free games!
Download them at www.fishsoft.tk
cusoi
21
Years of Service
User Offline
Joined: 3rd Jan 2003
Location: Netherlands
Posted: 28th Jun 2003 20:32
Cool game, maybe a bit difficult sometimes, but it's real fun! I like this game.

Pentium IV 2.4 GHZ 256 MB Ram Geforce 4 TI 4200 128 MB
Visit my site: www.cuso.tk
CrayZemon
20
Years of Service
User Offline
Joined: 16th Jun 2003
Location: United States
Posted: 3rd Jul 2003 20:04 Edited at: 3rd Jul 2003 20:04
Nice game, always a classic. However, the AI still could use a little more work. Maybe a few of them could be less random so that they don't get stuck in the same corridor for five minutes.

"I need gopher-chucks!!"
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 6th Jul 2003 01:04
Hi,

I know you all are going to laugh at me, but how the hell do you figure out all this data 1,0,0,0,1,0 etc. crap?

I've seen a few programs now that use it,
can anyone tell me?

Thanx.

Ocean Runner
20
Years of Service
User Offline
Joined: 18th May 2003
Location: United States
Posted: 6th Jul 2003 04:44
Heres a simple program that uses it:
x=50
z=50
sync on
do
read a
if a=1 then box x,z,x+50,z+50
x=x+50
if x=450 then z=z+50 : x=50
sync
loop
data 0,0,1,1,1,0,0,0
data 0,0,1,1,1,0,0,0
data 0,0,1,1,1,0,0,0
data 1,0,0,1,0,0,1,0
data 0,1,1,1,1,1,0,0
data 0,0,0,1,0,0,0,0
data 0,0,1,0,1,0,0,0
data 0,1,0,0,0,1,0,0

You see it uses the command read a which reads the first number on the data table thing(0) and sets a to that value. then if a=1 it makes a box 50 units wide and tall. then x goes up 50. then it checks to see if it is on the last number in the row. if so it skips to the next row. i had some trouble with this but i had to learn it myself. oh, by the way i'n only 11. check my other 20 line posts!

JetRace coming. Watch out!
Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 6th Jul 2003 11:13
um ok I think I understand it, thanx IntermediateNewbie.

But I've also seen a program that makes music from them, how do you know what goes where etc.

Thanx.

Ocean Runner
20
Years of Service
User Offline
Joined: 18th May 2003
Location: United States
Posted: 7th Jul 2003 04:06
Actually I have no idea.

JetRace coming. Watch out!
Angeleyes
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location:
Posted: 8th Jul 2003 00:30
Hey, I think this is a great game for 20 lines.... VERY good. ^_^.
Nice bit of code that is.

Shady :"But I've also seen a program that makes music from them, how do you know what goes where etc."

Easy..... You write a routine that will interpret the 0,1,2,3,etc etc in the data statements in to wave forms, which you can then play. Of another way is if you have small samples of diff instruments (call em sam1, sam2,sam3 etc) then when your program reads a 1 or a 2 etc the program plays the sample.
You can have multiple samples playing at the same time and provided your time coding for each sample is the same then it can sound like a piece of music....... a bit like the old Amiga mod trackers worked.

Ta ta for now
Mary

Shady Simpson
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: United Kingdom
Posted: 8th Jul 2003 19:36
um, I don't quite understand.

I seen a program that had no media at all, I just pasted the code into DBPro and it played.
How would I make sounds without any media?

I understand the data commands now, I even made a few 3D levels but I don't know how to make sounds without media.

Thanx.

the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 8th Jul 2003 23:23
One way would be to use a memblock and the MAKE SOUND FROM MEMBLOCK commnd. Then play the sound.
Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 18th Jul 2003 16:41
he intermediatenewbie i'm eleven too!

i'm so stuk with ai though

My programs don't crash... your computer does

http://johnsgamesuk.topcities.com

Login to post a reply

Server time is: 2024-04-23 21:01:24
Your offset time is: 2024-04-23 21:01:24