Skip to content
Sign upLog in
← Back to Community
World's Simples Pac-Man
Profile icon
sojs

All you can do is eat the "+" to increase your score. There is a small bug where if you go over a +, you disappear, but you can still move around and eat pluses. You * will * reappear when you go off of a plus. Your character is "ᗤ"
You have 25 moves, whoever can prove that they have the highest score will get an upvote. Have fun!
Winners:

  • No one yet

Have fun!

Everything now works fine.
Thanks to

@Bookie0
for the idea of coloring the pac-man

Thanks to
@Theboys619
for fixing colors

Voters
Profile icon
SomeGuy25
Profile icon
KingOfPotato
Profile icon
DJWang
Profile icon
Theboys619
Profile icon
PXY
Profile icon
BLoBBERT
Profile icon
Wilke000
Profile icon
RiazuMacroni
Profile icon
Bookie0
Profile icon
NarwhalFanatic
Comments
hotnewtop
Profile icon
Theboys619

I think I made a fix so you can add colors. Here FIX.

Ik that escaped characters didn't work. So I made a function to convert [COLOR=<ANSI-COLOR-CODE>] to a the \033[38;5;<ANSI-COLOR-CODE>

Profile icon
sojs

@Theboys619
This works well, but it has an error. Try going left but it does not matter that much. THANK YOU

Profile icon
Theboys619

You are welcome! Also I don't know how I did not notice that error

@sojs

Profile icon
Theboys619

Ok, I fixed going left so it doesn't do [ OLOR=11]D.
Its on the same repl


@sojs

Profile icon
sojs

@Theboys619
Thanks!

Profile icon
Bookie0

Nice! I like it maybe you can add some ghosts than move around randomly or even follow the Pac-Man dude.
Also maybe add some colors to the Pac-Man so we can see him more often!

Profile icon
sojs

@Bookie0
good idea!

Profile icon
Bookie0

Thanks! Can u mention me tho pleas? :)@sojs

Profile icon
sojs
Profile icon
Bookie0

Thank you so much! Looking forward to the new cool version! :[email protected]

Profile icon
sojs

@Bookie0
Your welcome.

Profile icon
sojs

@Bookie0
I added color.

Profile icon
Bookie0
Profile icon
Bookie0

Wait there is a bug

@sojs

05C949C3-369B-418A-AA7D-1559C3DB2C07

Profile icon
sojs

@Bookie0
I am trying to figure that out. No clue why it is happening. I can not even find "[32m" in my code.

Profile icon
Bookie0

Yeah maybe it’s the color? Oh maybe it’s 16 * 2 Are you sure you didn’t accidentally do an equation , with all the + in your [email protected]

Profile icon
Bookie0

Oh there’s no more colors now and it’s working

@sojs

Profile icon
sojs

@Bookie0
Maybe...

Profile icon
sojs

@Bookie0
Actually, I think your right

Profile icon
Bookie0

wait I’m right about what?

@sojs

Profile icon
Bookie0

By the way still bugging, good luck! 👍

@sojs

Profile icon
sojs

@Bookie0
thank uoi

Profile icon
sojs
Profile icon
sojs

@Bookie0
Okay, here is the scoop. The colors do not work because of the way the software it built, and how escape characters are, I have fixed everything, so it is how it was before, with a minor change:
1: you can now see pac-man even when he is eating.

Profile icon
Bookie0

Ok cool! Thanks for the scoop!

@sojs

Profile icon
sojs
Profile icon
sojs

@Bookie0
I'm going to try and make ghosts

Profile icon
Bookie0

Nice! Hope they work! Tell me when you’re [email protected]

Profile icon
sojs
Profile icon
sojs

@Bookie0
I am going to sign of for the week

Profile icon
Bookie0
Profile icon
[deleted]

I believe you can use require(readline-sync) to get a character instantly, without pressing enter. You ought to read their documentation.

Profile icon
[deleted]

I love it!

Profile icon
Wilke000

When I press w this happens:
image

Profile icon
sojs

@IndyCarter
I know, I have almost fixed it. Give me a couple minutes...

Profile icon
Wilke000
Profile icon
sojs

@IndyCarter
Okay, here is the scoop. The colors do not work because of the way the software it built, and how escape characters are, I have fixed everything, so it is how it was before, with a minor change:
1: you can now see pac-man even when he is eating.

Profile icon
Wilke000
Profile icon
NarwhalFanatic

Fun!

Profile icon
sojs
Profile icon
Codemonkey51

setTimeout is not defined (pls fix)

Profile icon
sojs

@Codemonkey51
Spelled it wrong. Now you can enjoy this amazing game :).

Profile icon
Codemonkey51

Ok yay!!

@sojs

Profile icon
Codemonkey51

COOL GAME!!

@sojs

Profile icon
sojs
Profile icon
Codemonkey51

Your welcome

@sojs

Profile icon
sojs

Do NOT go off the map, otherwise the game will crash