Physics determinism test

Show off your games, demos and other (playable) creations.
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Physics determinism test

Post by grump »

I wonder if this is guaranteed to result in the same final image everywhere.
hello.png
hello.png (44.52 KiB) Viewed 8593 times
Attachments
hello.love
(1.15 KiB) Downloaded 258 times
User avatar
GVovkiv
Party member
Posts: 686
Joined: Fri Jan 15, 2021 7:29 am

Re: Physics determinism test

Post by GVovkiv »

Yeah?
Screenshot from 2021-12-17 11-52-18.png
Screenshot from 2021-12-17 11-52-18.png (85.05 KiB) Viewed 8589 times
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Physics determinism test

Post by grump »

"Everywhere" meaning every supported platform, architecture and device.
User avatar
darkfrei
Party member
Posts: 1204
Joined: Sat Feb 08, 2020 11:09 pm

Re: Physics determinism test

Post by darkfrei »

Nothing happens
Attachments
Screenshot_20211217-111441.png
Screenshot_20211217-111441.png (12.3 KiB) Viewed 8583 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
pgimeno
Party member
Posts: 3673
Joined: Sun Oct 18, 2015 2:58 pm

Re: Physics determinism test

Post by pgimeno »

Nice test!

Works in my desktop and phone. For the phone I had to add this line to love.draw:

Code: Select all

love.graphics.scale(math.min(love.graphics.getWidth()/800,love.graphics.getHeight()/600))
User avatar
knorke
Party member
Posts: 274
Joined: Wed Jul 14, 2010 7:06 pm
Contact:

Re: Physics determinism test

Post by knorke »

looks the same on win10 64bit
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Physics determinism test

Post by grump »

pgimeno wrote: Fri Dec 17, 2021 10:20 am For the phone I had to add this line to love.draw:

Code: Select all

love.graphics.scale(math.min(love.graphics.getWidth()/800,love.graphics.getHeight()/600))
Ah. I guess on phones you always have to check what size the "window" is? Is love.resize being called in this situation?
gianmichele
Citizen
Posts: 67
Joined: Tue Jan 14, 2014 11:03 pm

Re: Physics determinism test

Post by gianmichele »

M1Pro OSX 12.1

Screenshot 2021-12-17 at 13.53.29.png
Screenshot 2021-12-17 at 13.53.29.png (203.05 KiB) Viewed 8495 times
User avatar
pgimeno
Party member
Posts: 3673
Joined: Sun Oct 18, 2015 2:58 pm

Re: Physics determinism test

Post by pgimeno »

grump wrote: Fri Dec 17, 2021 12:54 pm Ah. I guess on phones you always have to check what size the "window" is? Is love.resize being called in this situation?
I don't know, but I wouldn't rely on it as it starts in this mode. Phones are basically in forced fullscreen mode from the beginning.
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Physics determinism test

Post by grump »

This one scales and centers, should look correct on phones. I also didn't call physics.setMeter before. So it should still spell out "HELLO!" but it looks different from the first version.
Attachments
hello2.love
(1.24 KiB) Downloaded 202 times
hello2.png
hello2.png (53.3 KiB) Viewed 8488 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests