Page 1 of 1

Gong pong

Posted: Tue Mar 05, 2013 1:19 am
by CaptainMaelstrom
My pong remake. Lovingly titled "Gong", as that's the sound the game makes when you score.
pic
pic
gong.png (15.23 KiB) Viewed 1711 times
I made this after watching this lecture Jonathan Blow gave at CSUA :
http://the-witness.net/news/2011/06/how ... ent-games/

It made me feel frustrated about how obfuscated my code has become for my most recent project. I'm sure I'll return to it, but I wanted to make a few more smaller scale things first. I figured Pong would be a good one to try. Maybe I'll try Hangman next, and then a simple tactical game.

The AI was the most fun part of making Gong. Difficult to get it to be not too smart and not too stupid.

Enjoy.

Re: Gong pong

Posted: Tue Mar 05, 2013 1:09 pm
by Nixola
CaptainMaelstrom wrote:not too stupid.
The score was 6-0 until I figure out the controls, and I was winning

Re: Gong pong

Posted: Tue Mar 05, 2013 8:20 pm
by CaptainMaelstrom
Haha, yeah. Like I said, I had trouble getting it to not be too stupid, not be too smart. You can easily adjust the difficulty in the code though. The ai decides to follow the ball or not every 100 pixels in the ball travels in the x direction. Roughly. You can adjust the percentages to make the AI always follow, or never follow.

I finished my last project just now. Hangman's Zoo. It's your typical hangman, guess the name of the animal the computer is thinking.
hangman.png
hangman.png (15.73 KiB) Viewed 1585 times
Controls: alphabetic characters, enter, backspace

There's a minor bug I can't figure out, sometimes when the program chooses a different word, it throw an error about not being able to string.upper(word)?
Also, a warning, I haven't really edited the list too tightly. There are 185 potential words, a few of them I've never really heard of. I deleted "aoudad" haha.

Enjoy!

I'll try to make my next small project more fun/colorful/unique.

Re: Gong pong

Posted: Tue Mar 05, 2013 9:45 pm
by Germanunkol
That's cool!
Works very well - and is not too easy! I don't know quite a few words in there... but then again I'm not a native speaker.