3D Test

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
insignia
Prole
Posts: 7
Joined: Wed Jun 05, 2024 10:29 pm

3D Test

Post by insignia »

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.
Attachments
3d_test.love
(884 Bytes) Downloaded 143 times
:]]
User avatar
knorke
Party member
Posts: 274
Joined: Wed Jul 14, 2010 7:06 pm
Contact:

Re: 3D Test

Post by knorke »

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.
User avatar
insignia
Prole
Posts: 7
Joined: Wed Jun 05, 2024 10:29 pm

Re: 3D Test

Post by insignia »

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.
This is extremely helpful. I didn't even know what dt really meant until now.
Thank you!
:]]
User avatar
NoreoAlles
Party member
Posts: 130
Joined: Mon Jan 03, 2022 5:42 pm

Re: 3D Test

Post by NoreoAlles »

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
User avatar
insignia
Prole
Posts: 7
Joined: Wed Jun 05, 2024 10:29 pm

Re: 3D Test

Post by insignia »

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.
How nice of you! Yes I do see some potential in this.
:]]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests