Would A Classic Doom Inspired Game Work In LOVE2D?

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
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by Davidobot »

Jasoco wrote:I've been trying to figure out how to do that for years. That point is always behind the camera. So it gets calculated as being inverted and on the screen in a weird location, which causes the polygon it belongs to to become a "backface" which then results in it being excluded from rendering (Which is what is being seen here.) The only way I've found to bypass it is as I mentioned, by either adjusting the camera location or making the tiles smaller. Either way is going to screw things up a bit. I wish there was a way to somehow figure out where that point should be for reals. Possibly using super amazing maths. Maybe someone on this forum can figure it out.

What we need is a shader that does this for us using a reference image. (Which would be a canvas with all the floor textures on it or something.) It'd probably be more efficient too. No idea how though.
I did it! It's complete, it's perfect! I kinda fixed the wall collisions.
The way I did it was to generate 4 corner images automatically (that was fun) for each tile and in case of a tile not drawing, I would check for the four corners and draw them.
Image
Attachments
game.love
(227.17 KiB) Downloaded 166 times
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by Davidobot »

Image
This is how I decided to implement sprites. Any thoughts?
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by Jasoco »

Too jarring. I'd say just stick to normal sprites with 8 directions. It would look too weird in action. Do you have a demo with it implemented? Maybe it might look better in action.
jvdm
Prole
Posts: 4
Joined: Tue Oct 14, 2014 8:10 am

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by jvdm »

wow, that's fucking awesome @Davidobot :D
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by Davidobot »

jvdm wrote:wow, that's fucking awesome @Davidobot :D
Thanks, do you have any suggestions on how I can improve it?
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by Davidobot »

Alright guys, I redid the sprite system. That took way too long than it should have. I also re-implemented head-tilt as I redid the floors.
Image
What do you think? Better?
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by Ulydev »

AWESOME :awesome: :awesome: :awesome:
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by josefnpat »

Get the rest of those angles in!

Image
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Would A Classic Doom Inspired Game Work In LOVE2D?

Post by Jasoco »

You are impressing even me right now.

When you going to put in a ceiling though? The sky doesn't really make sense and I only really put it in my engine because I was too lazy at the time to code the opposite of floor code for it.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests