Jump to content
  • Advertisement
  • entries
    222
  • comments
    606
  • views
    591488

Scoring

Sign in to follow this  
benryves

1169 views


  • Fixed drunk pilots. New algorithm is about 20 lines shorter, 10 times faster, 5 times simpler. Reason for drunk pilots: drunk coder.
  • Implemented scoring, including:
    • Variable points for shooting enemies.
    • Variable points for shooting objects on the ground.
    • Display of score at top of screen.
  • Updated pause screen, all sprites now remain on-screen, background is less wavy.
  • Trimming of enemy attack times so they follow on from eachother nice and quickly.
  • Numerous minor bugfixes and tweaks.

The score might look nice there, but it really needs to be stuck on a background - any sprites trying to come in are cut off and look really odd popping into existance 8 pixels down from the top of the screen (8 sprite limit, and I have 8 digits in my score). For example, see this:


Look at the top - you can see the nose of a ship appearing, and it looks horribly wrong.

Drawing a black bar might be achieved by swapping name table addresses when I hit a certain scanline, but that's mucky and so far the best result has been 3 or 4 VRAM timing errors per frame and a jumping area of the screen that shows junk. Wonderful!


Download the new build and source.

I also did some more work on my VGM player. It now emulates the PSG correctly! There is one problem still - playback of VGM files that have a specific delay specified. The default timings (1/50th second, 1/60th second) both work beautifully... *sighs* The others play waaaay too fast.
Thankfully, this affects very few VGM files I've tried it with. I also ripped out the tacky visualisations (it's now just a boring console app), improved the seeking code to be time rather than file position based (more accurate) and added support for VGZ files (GZipped-up VGMs) using ZLIB.
If you're in the mood for excellent chiptunes, download the above and the VGM pack to a classic Sega game from SMS Power! - I'm particularly fond of the music from "The Flash". (Ristar's music is also excellent). [smile]
Sign in to follow this  


2 Comments


Recommended Comments

Thanks - looks like a great link! I've got over 100 BBC Micro MP3s on my Zen Xtra... (generated by the same PSG I emulate in my VGM player!)
It appears that my PSG emulation isn't as correct as I'd hoped - apparantly a few Ninja Gaiden tracks turn into static or just don't play at all. I'm not sure why that is... (not playing at all indicates dodgy stereo writes switching off all the sound, static indicates the same or dodgy noise channel emulation) I'll have a look this evening, when near a PC with a sound card in it...

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!