How to program action game in a wrapping world? (2D torus)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: How to program action game in a wrapping world? (2D torus)
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."
"If each mistake being made is a new one, then progress is being made."
- kicknbritt
- Citizen
- Posts: 98
- 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)
This gave me a laughReFreezed wrote: ↑Wed Jan 12, 2022 11:32 pm Shaders really are quite amazing. They can do anything. Absolutely anything.
"I AM THE ARBITER!!!" *Pulls out Energy sword and kills everything*
-
- Prole
- Posts: 9
- Joined: Wed Dec 29, 2021 8:01 pm
Re: How to program action game in a wrapping world? (2D torus)
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.ReFreezed wrote: ↑Wed Jan 12, 2022 11:32 pm Shaders really are quite amazing. They can do anything. Absolutely anything.
Re: How to program action game in a wrapping world? (2D torus)
I saw Minecraft on shaders: https://www.shadertoy.com/view/4ds3WS
Re: How to program action game in a wrapping world? (2D torus)
Drawing a bunch of cubes with pixelated textures is not even 0.001% of what is required to make a game like Minecraft work.darkfrei wrote: ↑Thu Jan 13, 2022 1:47 pm I saw Minecraft on shaders: https://www.shadertoy.com/view/4ds3WS
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.
Re: How to program action game in a wrapping world? (2D torus)
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.
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot], slime and 14 guests