Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Actual gameplay related crap

Sign in to follow this  


I gave up on my culling stuff, it's been a complete waste of two weeks that could have been spent on gameplay. I can get a decent FPS in Doom 1 and 2, so I'll just use them for now.

Here's the "roadmap":
- Collision
- Line triggers(doors,switches,etc.)
- Weapons
- Deathmatch

Well I don't need monster AI for deathmatch, so it's a somewhat more realistic goal. I hope to have some basic network code in by the new year.


Up until now I've been using Ben's midi player, which while functional didn't exactly provide a ton of functionality. Here's how music works in id.Net:

1) When the program starts it searches the music directory for an external files(mp3s and whatnot).

2) When a level is loaded the music loader checks if a file matches the levels name or the lump name that goes with it. So if you wanted something for E1M1 it could be called "e1m1.mp3" or "d_e1m1.mp3", this saves on disk space since some of the levels share the same music lump. The search is also case-insensitive.

3) If there's no file, save the music MUS lump and run it through MMUS2MID to convert it to midi, then play that file.

This is done using FMOD, since MDX is severly lacking when it comes to audio.

Cheat codes(aka THE CODES!!!)

Well only one cheat code, idclev, which allows me to warp between levels. Not much use for the others right now, but at least the cheat code reader is functional.


This was basically meant to test line collision, but I thought I'd let everyone know I have working line triggers. I've been toying around with trying to get the Icon Of Sin to activate based on the teleportation sound. It's probably the easiest monster to implement.

That's it for now, here's a nice aerial screenshot I got while flying around:
Sign in to follow this  


Recommended Comments

Sounds good. [smile]

There's a bug in the original DOOM relating to music, which I (unintentially) also made in my code. The bug is "fixed" in MMUS2MID, which means that the MIDI music it exports sounds wrong.

I noticed the bug in the Chocolate Doom port, so wrote my own converter and submitted this. The quirk is in lines 316-327.

I never really worked out why MMUS2MID was so horribly complicated.

Another quirk is that the original DOOM cares not for the four byte MUS header, and will happily play MUS lumps even if they have PWAD as a header instead (as one PWAD does).

Share this comment

Link to comment
Yeah the sound to E1M8 sounded a little weird. I might give MUS2MID or QMUS2MID a try as well and compare the three. Regardless, the FMOD synthesizer sure sounds better than the one in the original Doom.

Share this comment

Link to comment
Original post by Scet
Regardless, the FMOD synthesizer sure sounds better than the one in the original Doom.
Surely that just uses whatever hardware you've got in the machine? (Failing that, the Windows softsynth, which sounds significantly worse than any DOS-era sound card). [rolleyes]

I'd love to find an OPL3 SoundFont for that oldschool feel. [smile]

The most noticable "problem" level is MAP02 in TNT, where the sound is completely off if you just truncate the velocity to 7-bit.

Share this comment

Link to comment
I tried TNT MAP02 in both Chocolate Doom and id.Net and it sounded awful in both. Oh well, like I said I'll give the other converters a shot and see how they fair. But I really don't want to use some cheap hack just to play certain maps "perfectly".

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!