Page 1 of 2

Simply Pong!

Posted: Sat Sep 22, 2012 11:37 pm
by Larsii30
Hey everyone,

it's been a while ago when I opened my last topic ... so I thought I could share something I've done yesterday to
do something else then Fallin' Sky 2. I decided to do some Arcade classics like Arkanoid, Space Invaders or Snake
to see where I am with my programming skills. atm I think I still got a lot of work to write nice and efficient code.

My first pong :
Image

Download
__________________________________________
simplyPong.love
(27.93 KiB) Downloaded 335 times
All feedback especially for the code is welcome.
greets :)

Re: Simply Pong!

Posted: Sun Sep 23, 2012 8:50 am
by coffee
Hey Larsii30. How da hell you screwed up with pong? ;P
Serious, game don't run here . Just a grey background without nothing happenning! No key input also...

Re: Simply Pong!

Posted: Sun Sep 23, 2012 9:49 am
by Larsii30
oh seriously ? :o
Hopefully you mean it ironic :o

If not I'm a bit confused.

Re: Simply Pong!

Posted: Sun Sep 23, 2012 9:59 am
by coffee
Larsii30 wrote:oh seriously ? :o
Hopefully you mean it ironic :o

If not I'm a bit confused.
Sorry, i'm being serious. Hang's without change in 0.8. Crashes 0.8 JIT
I didn't found any path problem or something in your code. Also isn't badly packed for OSX. Can't explain.
Screen shot 2012-09-23 at 10.56.10 AM.png
Screen shot 2012-09-23 at 10.56.10 AM.png (16.45 KiB) Viewed 3935 times

Re: Simply Pong!

Posted: Sun Sep 23, 2012 10:08 am
by bartbes
I couldn't help but notice your ball's direction variables are useless, as in, you would normally represent them as negative/positive velocities.
Otherwise, except for the AI being too good, it seems fine.

Re: Simply Pong!

Posted: Sun Sep 23, 2012 10:51 am
by Larsii30
coffee wrote:
Sorry, i'm being serious. Hang's without change in 0.8. Crashes 0.8 JIT
I didn't found any path problem or something in your code. Also isn't badly packed for OSX. Can't explain.
I'm not familiar with OSX and löve, so is there something handled in another way maybe ?
Hm. I can't find anything.

Thanks for feedback, bartbes :)

Re: Simply Pong!

Posted: Sun Sep 23, 2012 11:24 am
by coffee
I solve your problem! I went to your GIT and downloaded your FallingSky 2. Well when decompressing noticed a unicode problem in some file. So I searched for unicode/foreign accentuation problems in your PONG code. Actually osx don't seem to like like your config file text. I deleted it and your game run without problems.

Probably is better you avoid the ö/ß in t.title from now on. No problem in t.identity.

Code: Select all

function love.conf(t)
	
	--Titeleinstellungen
		t.title = " Pöng "
		t.author = " Lars L. "
	
	--Bildschrimgröße und Grafikeinstellungen
		t.screen.fullscreen = false
		t.screen.width = 512
		t.screen.height = 512
		t.screen.vsync = false
		t.screen.fsaa = 0
		t.modules.joystick = false
		t.modules.audio = true
		t.modules.event = true
		t.modules.physics = false
		t.modules.sound = true
	
	--Filesystem
		t.identity = "Pöng"
end

Re: Simply Pong!

Posted: Sun Sep 23, 2012 11:36 am
by Larsii30
well the "ö" is all the magic ? :D haha
Nice research, thank you!

Re: Simply Pong!

Posted: Sun Sep 23, 2012 11:38 am
by coffee
Larsii30 wrote:well the "ö" is all the magic ? :D haha
Nice research, thank you!
I edited my post. In t.title is bad. No problems with t.identity.

EDITED: Also sorry for anything said in joke form I said before and was clearly misinterpreted.

Re: Simply Pong!

Posted: Sun Sep 23, 2012 2:01 pm
by Lafolie
It's usual for an updated .love to be posted after bugfixes so that we can play the game :)