Skip to content
← Back to Community
Pacman
Profile icon
h
has Hacker Plan
DynamicSquid

I made Pacman!

Enjoy :)


Skip this part if you don't want to hear me go on a rant and just want to play the game.

This will be my last Processing game (well, I'll do Processing in like Gam Jams and stuff, but that's about it). Three reasons:

  1. The only reason I did Processing was I wanted to create something with graphics, and Processing was the only thing I knew. But recently I found how to get SFML working with C++ now, so I'm using that.

  2. I hate Processing. Processing is written in Java, and I hate Java. But SFML is used with C++, and I'm a C++ guy :)

  3. Processing's syntax is "blah". Yes, SFML is way more complicated, but that's why I like it! Processing is just too simple, it doesn't feel right. Here's an example:

// rectangle in Processing fill(0); // black stroke(255); // white outline // x y len height rect(50, 50, 200, 100); // rectangle in C++/SFML // oh, and don't forget to render the window and set up the game loop! sf::RactangleShape rect(200, 100); rect.setFillColor(sf::Color::Black); rect.setOutlineColor(sf::Color::White); rect.setPosition(50, 50);

See, C++ uses methods and namespaces and classes and all that good C++ stuff!!

But since repl.it doesn't support SFML yet, I'd have to wait before posting stuff here.

I really want to make my own graphics library.... but I'd have to learn OpenGL first - not anytime soon.

And yes, I know, this game isn't the best, it's a little glitchy and stuff, but I tried.

Oh, and I'll be posting this on GitHub, so @johnstev111, that's for you :)


Well, that's it.

Enjoy!

Voters
Profile icon
AngelRosas2
Profile icon
NotRandomPerson
Profile icon
TurtleAndrew
Profile icon
DemirDeniz
Profile icon
programmeruser
Profile icon
viraatvv
Profile icon
inducrm12
Profile icon
Barry123
Profile icon
LarryZhao
Profile icon
mkw
Comments
hotnewtop
Profile icon
shadow00dev

kinda laggy but it's good

Profile icon
DynamicSquid
Profile icon
HahaYes

NOOOOOOOOOOOOOOOOOOOOOOOO I was just about to finish Pac-Man ......... I guess time to do it in HTML, CSS, and JS I guess.

Profile icon
DynamicSquid

@HahaYes oh lol, sorry about that...

Profile icon
DynamicSquid

@HahaYes also, why'd you give up on C++?

Profile icon
HahaYes

@DynamicSquid Just for today... I looked at Linus Torvald's "Nothing is better than C" it was pretty funny.

Profile icon
ChezTacoz

Very nice

Profile icon
DynamicSquid

@ChezTacoz thanks!

Profile icon
CodingGoose

You're almost at 1000 cycles congrats! This game is really fun!

Profile icon
DynamicSquid

@DannyIsCoding oh thanks! and yup almost there :) and you're almost to 400!

Profile icon
CodingGoose

@DynamicSquid

:D

Profile icon
firefish

@DynamicSquid You are 1000... @DannyIsCoding you are 400

Profile icon
DynamicSquid
Profile icon
CodingGoose

@johnstev111 Yay! Thx! :D

Profile icon
zplusfour

wow!
can you help me with javascript? (localStorage especially)

Profile icon
DynamicSquid

@ZDev1 sorry, I don't do js :(

Profile icon
zplusfour

@DynamicSquid awwww :(

Profile icon
Crcoli7307
Profile icon
DynamicSquid

@Crcoli7307 sorry I don't do js :(

Profile icon
Crcoli7307

@DynamicSquid I know you don’t that’s why I was giving him a link to learn JS

Profile icon
DynamicSquid

@Crcoli7307 yeah, but I don't really wanna learn js

Profile icon
Crcoli7307

@DynamicSquid Right... So I gave him a link so that he could learn JS

Profile icon
DynamicSquid

@Crcoli7307 but I don't wanna learn js, I actually hate js, I'm a C++ guy

Profile icon
zplusfour
Profile icon
zplusfour

@Crcoli7307 dude ik JavaScript but localStorage no

Profile icon
ThisUserTaken

@DynamicSquid Im a python guy .-.

Profile icon
Coder100

Awww sad to see you go to c++ when you could be using P5 which is honestly way better than processing in my opinion

Profile icon
DynamicSquid

@Coder100 jj-javascript??? nooooooooooooo. I tried to code on it once, almost threw up. even Java is better than p5.js. Well I guess I classify languages based on their OOP syntax. js's OOP syntax is soooo weird compared to C++. Big no.

thanks for noticing btw :)

Profile icon
Coder100
Profile icon
Coder100

p5.js may be a bit strange, but that's because javascript is strange. Anyways, p5.js actually made the slice function before it got put into the specification! @DynamicSquid

Profile icon
DynamicSquid

@Coder100 oh that's cool! but I guess that C++ and Js just don't mix

Profile icon
CodeLongAndPros

Also:

arrowkeys

Profile icon
DynamicSquid
Profile icon
DynamicSquid
Profile icon
syflexer

its a little bit hard to turn but its still fun

Profile icon
DynamicSquid

@syflexer oh thanks!

Profile icon
syflexer

@DynamicSquid your welcome :}

Profile icon
000022

It is so cool!!!!!!

Profile icon
DynamicSquid

@000022 thank you!!!

Profile icon
CodeLongAndPros

I would make it so the mouth only chomps when you are moving.

Profile icon
DynamicSquid

@CodeLongAndPros I literally spent 2 hours trying to get the mouth to work (it's actually insane), that's the best I can do sorry :(

Profile icon
CodeLongAndPros

@DynamicSquid I feel you. I had to make a game loop in TI-Basic. There's only stuff to add text, add shapes and cls

You have to press a button to redraw the screen because clear lags.

Profile icon
DynamicSquid

@CodeLongAndPros oof... yeah more control in my opinion is better

Profile icon
CodeLongAndPros

@DynamicSquid The sad part is that even though the language is terrible and the code is
image,
I still wasted so much time programming in the konmani code in, and playing it.

Profile icon
DynamicSquid

@CodeLongAndPros ha, I like that lol

Profile icon
CodeLongAndPros

@DynamicSquid I can try to make a demo video.

The Nspire ships sans internet and camera.

Profile icon
DynamicSquid

@CodeLongAndPros oh it's fine, you don't have to

Profile icon
CodeLongAndPros

It can't install packages :( (Arch joke)

Profile icon
DynamicSquid

@CodeLongAndPros I don't get it :( wait, but is there something wrong with my repl.it though?

Profile icon
CodeLongAndPros

@DynamicSquid pacman is the package manager for Arch Linux.

Profile icon
DynamicSquid

@CodeLongAndPros oh...... nice one :)

Profile icon
InghaIezhova

That's really cool.

Profile icon
DynamicSquid
Profile icon
ShivankChhaya

AWEESUM!!

Profile icon
DynamicSquid
Profile icon
yuhuiguo

cool

Profile icon
DynamicSquid

@yuhuiguo thanks :)

Profile icon
techgeek680

genius

Profile icon
DynamicSquid

@techgeek680 thanks!

Profile icon
techgeek680

@DynamicSquid you are welcome. I am new to repl.it and I'm browsing projects made by other people!

Profile icon
DynamicSquid
Profile icon
techgeek680
Profile icon
MarblesAndMore

Well done, this is great

Profile icon
DynamicSquid
Profile icon
VulcanWM

Amazing!

Profile icon
DynamicSquid

@medcho thanks!

Profile icon
VulcanWM

Your welcome @DynamicSquid

Profile icon
firefish

@DynamicSquid I've been anticipating the realease ever since I starred the repo :)! BTW, great game! And, original pacman has three lives, so maybe three lives then you have to refresh? And I've noticed that the controls can be slightly laggy as well.

Profile icon
DynamicSquid

@johnstev111 oh thanks! and I'll try to work in your suggestions, but it's going to take some time

Profile icon
firefish

@DynamicSquid Ok! BTW, you have 1000 cycles

Profile icon
glitchish

yes, this is great!

Profile icon
DynamicSquid

@Programmer567 thanks!!!

Profile icon
DungeonMaster00

like it

even if glitchy

Profile icon
DynamicSquid

@nk1rwc oh thanks!

Profile icon
jackou

If you want to get into game development, I recommend Godot. It's like a mix of JavaScript and Python. ;) Anyways, cool Pacman! +1

For web development, I'd stick to p5.js as there aren't a lot of alternatives to responsive WebGL, but that's all I know.

Profile icon
JBloves27

Nice!!! kinda laggy though

Profile icon
DynamicSquid

@JBYT27 thanks!!

Profile icon
KeinR

If Processing is too high level for you (I take it that's the problem), then might as well just use OpenGL or DirectX. That's as low level as you can "reasonably" get~

Profile icon
Rani77

I dont even know how to work it!!!!!

Profile icon
DynamicSquid

@Rani77 WASD or Arrow keys to move, eat the dots, and if the coloured circles touch you, your die. If you eat the big dot, then the colour circles will turn blue for a couple of seconds, then you can eat them!

Profile icon
VulcanWM

Nice man, eight more to go until 1000 cycles. You planning anything special for that?

Profile icon
DynamicSquid

@medcho uh... no, not really. this happened sooner than I though, so I don't have time to plan out something big, but I'm working on a small animation right now...

Profile icon
VulcanWM
Profile icon
SeamusDonahue

the movement is studdery but other than that its cool

Profile icon
DaRealDoge

LAGGY TRASH!!!!!!!!

Profile icon
LarryZhao

@DaRealDoge dat mean

Profile icon
LarryZhao

@DaRealDoge don't say that

Profile icon
[deleted]

@DaRealDoge Be nice.

Profile icon
DynamicSquid

@DaRealDoge make your own then

Profile icon
DaRealDoge

@DynamicSquid I am sorry. I just realized I probably don't have enough processing power in the version I'm using. I am very sorry.