Jump to content
Sign in to follow this  
  • entries
    177
  • comments
    531
  • views
    164092

Lines, lines everywhere!!!

Sign in to follow this  
Scet

133 views

Today's job was to make it so that the classes where aware of the ones their associated with, basically linedefs->sidedefs->sectors. If I had more time I would have started on the floor rendering code, but I pissed half the day away playing DOOM 2. "Research" [grin]

After connecting everything, I redrew the map using each sectors floor height for the colour for each line in it( two-sided lines are drawn twice ). Plus just for the hell of it I added some green vertices for each "thing".

The result:



If the line colours seem off it's because I had to make the colour between 0 and 255 and of course the floor heights didn't exactly like this.

Note the red line which actually isn't part of any sector. This is the first line on every map I loaded and is also where the user starts. Not sure what I'm supposed to do with this since it's visible in the game, but my code acts like it doesn't exist.

Hopefully some floor/ceiling drawing soon.
Sign in to follow this  


4 Comments


Recommended Comments

Hey, isn't that map reversed? I'm fairly sure you took a right turn in the corridor off the start, and as you entered the big room just before the exit the center of the room was to your left.

Share this comment


Link to comment
It's looking sexy.

Also, I think he's already discussed that the map loads wrong.

Share this comment


Link to comment
Quote:

Also, I think he's already discussed that the map loads wrong.


They don't "load wrong". The data is correct, but I believe DOOM and DX are using different coordinate systems so it appears reversed.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!