How to program action game in a wrapping world? (2D torus)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: How to program action game in a wrapping world? (2D torus)

Post by ReFreezed »

Shaders really are quite amazing. They can do anything. Absolutely anything.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
kicknbritt
Citizen
Posts: 96
Joined: Sat May 30, 2015 2:15 am
Location: Chicago, IL/Anchorage,AK

Re: How to program action game in a wrapping world? (2D torus)

Post by kicknbritt »

ReFreezed wrote: Wed Jan 12, 2022 11:32 pm Shaders really are quite amazing. They can do anything. Absolutely anything.
This gave me a laugh
"I AM THE ARBITER!!!" *Pulls out Energy sword and kills everything*
JimOfLeisure
Prole
Posts: 9
Joined: Wed Dec 29, 2021 8:01 pm

Re: How to program action game in a wrapping world? (2D torus)

Post by JimOfLeisure »

ReFreezed wrote: Wed Jan 12, 2022 11:32 pm Shaders really are quite amazing. They can do anything. Absolutely anything.
OMG that got painful. He could have probably done it with shaders, though. Making 7 perpendicular red lines with blue and transparent ink is child's play in shaders. And 4-5 extra dimensions.
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: How to program action game in a wrapping world? (2D torus)

Post by darkfrei »

pgimeno wrote: Wed Jan 12, 2022 10:34 pm I hope darkfrei was being sarcastic, but with Poe's law, you never know :)
I saw Minecraft on shaders: https://www.shadertoy.com/view/4ds3WS
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: How to program action game in a wrapping world? (2D torus)

Post by grump »

darkfrei wrote: Thu Jan 13, 2022 1:47 pm I saw Minecraft on shaders: https://www.shadertoy.com/view/4ds3WS
Drawing a bunch of cubes with pixelated textures is not even 0.001% of what is required to make a game like Minecraft work.

Likewise, drawing stuff in a way that makes it wrap around one or more axes is often trivial, but you still have to deal with all that other stuff that makes a game a game. You know, the rest of the fucking owl.
User avatar
pgimeno
Party member
Posts: 3541
Joined: Sun Oct 18, 2015 2:58 pm

Re: How to program action game in a wrapping world? (2D torus)

Post by pgimeno »

Even assuming the game could be made to run on a shader (?), you would still need to implement the wrapping logic in the shader, and then what ReFreezed said applies once again.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 22 guests