I have decided to attempt to create a 3d rendering system without any help involved. How did I do?
At some point I might use this system for creating some sort of puzzle game out of this.
Controls are: Up, Down, Left, Right Keys to move. Z and C keys to rotate the camera.
3D Test
Re: 3D Test
That looks neat. Nice job figuring out the math.
You should use love.update(dt) function and put your movement code there, instead of in love.draw()
The dt parameter is the time between update-calls and you can use it as multiplier like this:
To make movespeed independent from framerate.
You should use love.update(dt) function and put your movement code there, instead of in love.draw()
The dt parameter is the time between update-calls and you can use it as multiplier like this:
Code: Select all
if love.keyboard.isDown("down") then
dtd[3] = dtd[3] + 0.2 * dt
end
To make movespeed independent from framerate.
Re: 3D Test
This is extremely helpful. I didn't even know what dt really meant until now.knorke wrote: ↑Thu Jul 04, 2024 5:27 am That looks neat. Nice job figuring out the math.
You should use love.update(dt) function and put your movement code there, instead of in love.draw()
The dt parameter is the time between update-calls and you can use it as multiplier like this:Code: Select all
if love.keyboard.isDown("down") then dtd[3] = dtd[3] + 0.2 * dt end
To make movespeed independent from framerate.
Thank you!
:]]
- NoreoAlles
- Party member
- Posts: 130
- Joined: Mon Jan 03, 2022 5:42 pm
Re: 3D Test
This reminds me a 3DSage´s GBA Minecraft game, just from the looks of it. Very cool project, i can imagine this would be awesome for puzzle game or maybe as a textured floor and ceiling for raycasters.
"Why do they call it oven when you of in the cold food of out hot eat the food?" - Jon Arbuckle
Re: 3D Test
How nice of you! Yes I do see some potential in this.NoreoAlles wrote: ↑Thu Jul 04, 2024 8:31 pm This reminds me a 3DSage´s GBA Minecraft game, just from the looks of it. Very cool project, i can imagine this would be awesome for puzzle game or maybe as a textured floor and ceiling for raycasters.
:]]
Who is online
Users browsing this forum: Amazon [Bot] and 8 guests