So I saw this video on youtube and I was like I can totally make that in LÖVE, so I did.
Disclaimer: This game has no menus, lacks score display, lacks music, et.c.
I also have no plans to finish it. To top everything off, the code was written when I was tired. Expect mindfuck.
Döts - A silly ripoff
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Döts - A silly ripoff
Wow.
Error: state 'over' not found. Tired, much?
Error: state 'over' not found. Tired, much?
Help us help you: attach a .love.
Re: Döts - A silly ripoff
I just couldn't botherRobin wrote:Wow.
Error: state 'over' not found. Tired, much?
Re: Döts - A silly ripoff
... Did you use a perpendicular function for bouncing the balls?
Your code:You were right when you said "mindfuck". O_O
Code: Select all
if x<0 or x>width then
vx=-vx
end
if y<0 or y>height then
vy=-vy
end
Code: Select all
if x ~= self.position.x or y ~= self.position.y then
local r = math.atan2((winmid - self.position):reverse())
self.directionAngle = r + (math.random()-0.5)*math.pi
self.directionVector = Vector:new(math.cos(self.directionAngle), math.sin(self.directionAngle))
end
Hello, I am not dead.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Döts - A silly ripoff
If you look closely, you'll see that his version introduced a random element, presumably to make the whole deal more interesting and/or silly.zac352 wrote:You were right when you said "mindfuck". O_O
Help us help you: attach a .love.
Re: Döts - A silly ripoff
What Robin said.
Re: Döts - A silly ripoff
Even though I said I wouldn't work on this, I did.
I added a primitive menu along with two extra gamemodes, "extreme" and "epilepsy".
Also, there's now a game over screen.
CATCH THOSE DÖTS
I added a primitive menu along with two extra gamemodes, "extreme" and "epilepsy".
Also, there's now a game over screen.
CATCH THOSE DÖTS
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Döts - A silly ripoff
Crazy!
It fails, though. Collision is really inaccurate (sometimes I'm making this nice little Venn diagram with the yellow dude, without scoring a point). Also, in epilepsy mode, if you end on black, the score is unreadable.
It fails, though. Collision is really inaccurate (sometimes I'm making this nice little Venn diagram with the yellow dude, without scoring a point). Also, in epilepsy mode, if you end on black, the score is unreadable.
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests