Pacman
h
DynamicSquid (2673)

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!

You are viewing a single comment. View All
CodeLongAndPros (963)

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

DynamicSquid (2673)

@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 :(

CodeLongAndPros (963)

@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.

DynamicSquid (2673)

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

CodeLongAndPros (963)

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

CodeLongAndPros (963)

@DynamicSquid I can try to make a demo video.

The Nspire ships sans internet and camera.

DynamicSquid (2673)

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