A very bad idea

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Bobble68
Party member
Posts: 160
Joined: Wed Nov 30, 2022 9:16 pm
Contact:

A very bad idea

Post by Bobble68 »

water.png
water.png (408.46 KiB) Viewed 1968 times
See you in support and development
Dragon
User avatar
Hugues Ross
Citizen
Posts: 85
Joined: Fri Oct 22, 2021 9:18 pm
Location: Quebec
Contact:

Re: A very bad idea

Post by Hugues Ross »

Sometimes the best of times come from the worst of ideas :megagrin:
User avatar
knorke
Party member
Posts: 253
Joined: Wed Jul 14, 2010 7:06 pm
Contact:

Re: A very bad idea

Post by knorke »

-Can we have water physics?
-No, we have water physics at home.

water physics at home:

Code: Select all

object.y = object.y + gravity
if object.y < waterlevel and object.canFloat then object.y = waterlevel end
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: A very bad idea

Post by zorg »

Sine wave ripples on top of water area that do nothing whatsoever = water physics too :3
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
pgimeno
Party member
Posts: 3560
Joined: Sun Oct 18, 2015 2:58 pm

Re: A very bad idea

Post by pgimeno »

knorke wrote: Sat May 06, 2023 12:11 am water physics at home:

Code: Select all

object.y = object.y + gravity
if object.y < waterlevel and object.canFloat then object.y = waterlevel end
That's just a ground. Boring.

The attached is more fun.
Attachments
BuoyantPlatform.love
(3.26 KiB) Downloaded 80 times
User avatar
knorke
Party member
Posts: 253
Joined: Wed Jul 14, 2010 7:06 pm
Contact:

Re: A very bad idea

Post by knorke »

no, how can it be ground if it says "waterlevel"? :|

That floating box is pretty neat!
It is funnier with box.body:setFixedRotation(false)
That way you can fall off if the box starts to tilt.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests