My pong remake. Lovingly titled "Gong", as that's the sound the game makes when you score.
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.
Gong pong
- CaptainMaelstrom
- Party member
- Posts: 163
- Joined: Sat Jan 05, 2013 10:38 pm
Re: Gong pong
The score was 6-0 until I figure out the controls, and I was winningCaptainMaelstrom wrote:not too stupid.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- CaptainMaelstrom
- Party member
- Posts: 163
- Joined: Sat Jan 05, 2013 10:38 pm
Re: Gong pong
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. 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.
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. 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 58 times
-
- Party member
- Posts: 712
- Joined: Fri Jun 22, 2012 4:54 pm
- Contact:
Re: Gong pong
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.
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
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Who is online
Users browsing this forum: No registered users and 0 guests