breakout-0.3.3

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

breakout-0.3.3

Post by Saegor »

hello !

i actually try to make a breakout clone with love 0.8
note : i write very badly english but i understand easily (i can't explain why)
please comment the way i code (with a lot of functions) because i'm a supreme noob at coding and any suggestion will be welcome
cassebriques-0.2.love
(494.92 KiB) Downloaded 173 times
i know the bricks are missing, i will try to implement it in next version
thanks for watching !
i STOLED the background somewhere but i don't remember where... hum, it's just for test :oops:

EDIT : 0.(0...0).3.1 is out ! i added an effect to the ball ! try it now !
cassebriques-0.3.1.love
(494.73 KiB) Downloaded 129 times
EDIT : 0.(0...0).3.3 is out ! i added the bricks, but no collisions with them in this release
the background come from opengameart and is in public domain
cassebriques-0.3.3.love
(71.44 KiB) Downloaded 154 times
Last edited by Saegor on Fri Nov 16, 2012 7:49 pm, edited 3 times in total.
Current work : Isömap
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: breakout

Post by Larsii30 »

Hey. That's nice.

I can't really say something about your code but there is one other thing.
It seems like the player can't change the ball direction or the angle at the moment.
Maybe you check were on the paddle the ball collide and change the angle and / or the direction with this value.
Hope you understand what I mean. :)
User avatar
Saegor
Party member
Posts: 119
Joined: Thu Nov 08, 2012 9:26 am
Location: Charleroi

Re: breakout

Post by Saegor »

yes, i understand, thanks for the advice !

i must add the effect of the paddle position in the ball direction,
it's what i'm working on now. after that i wil add bricks !

i hesitate between two possibilities for the pad effect

1) relative to the last ball inclination : a) a ball who bounce on the center of the pad will make the same x-displacement with a simple y inversion b) balls from left who bounce the left of the pad will slow x displacement and accelerate y displacement for example

2) absolute effect : a ball who bounce on the center of the pad will go purely vertical, a ball who bounce to the left of the pad will go left and up, etc..

i will try the two schemes and select the better/funiest one !
it's not very lisible i know, i promise i make an effort when writing but i definitively suck, sorry :(
Current work : Isömap
spir
Citizen
Posts: 76
Joined: Wed Oct 17, 2012 1:12 pm

Re: breakout

Post by spir »

Saegor wrote:yes, i understand, thanks for the advice !

i must add the effect of the paddle position in the ball direction,
it's what i'm working on now. after that i wil add bricks !

i hesitate between two possibilities for the pad effect

1) relative to the last ball inclination : a) a ball who bounce on the center of the pad will make the same x-displacement with a simple y inversion b) balls from left who bounce the left of the pad will slow x displacement and accelerate y displacement for example

2) absolute effect : a ball who bounce on the center of the pad will go purely vertical, a ball who bounce to the left of the pad will go left and up, etc..

i will try the two schemes and select the better/funiest one !
it's not very lisible i know, i promise i make an effort when writing but i definitively suck, sorry :(
(Haven't tried, but...) It must be the relative effect. Absolute would be too frustrating. Anyway, try and...
Bonne chance!

Denis
... la vita e estrany ...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest