Gong pong

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
CaptainMaelstrom
Party member
Posts: 161
Joined: Sat Jan 05, 2013 10:38 pm

Gong pong

Post 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 1648 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.
Attachments
gong.love
(128.85 KiB) Downloaded 100 times
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Gong pong

Post by Nixola »

CaptainMaelstrom wrote:not too stupid.
The score was 6-0 until I figure out the controls, and I was winning
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
CaptainMaelstrom
Party member
Posts: 161
Joined: Sat Jan 05, 2013 10:38 pm

Re: Gong pong

Post 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 1522 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.
Attachments
hangman.love
(5.28 KiB) Downloaded 52 times
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: Gong pong

Post 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.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Post Reply

Who is online

Users browsing this forum: No registered users and 64 guests