CMM@ New Game - Heli-Blaster

Author Message

Senior Member

Joined: 13/08/2020
Location: Canada
Posts: 227
Posted: 04:56pm 17 Oct 2020      

  vegipete said  Nothing to be ashamed of at all. Heliblaster plays very nicely, and the program itself is not at all frightening to look at. Well done! I just got to second place, now it's time for bed.

Thank you!

  TweakerRay said  Good work... On my Sony TV the left first letters of the instructions when it's saying coffeebreak and so on and is generating the world the letter is cutted...
(No the TV is set correctly) It has black bars around the whole screen and the screen is centered in the middle... but I am wondering why the first letters are seem to bee to far to the left. any idea ?

I don't know what would cause this. The actual resolution 640x480 (I'm using 640x400 and I believe the CMM2 adds an extra 40 lines top and bottom to make it the standard VGA resolution).

  TweakerRay said  I find it very hard to hover 3 sek over an ammo chest :-)

Yes, if I made it too easy, where would be the fun in that    Of course, you can always spend some of your hard earned cash on reducing the hover time (from the menu)......

  TweakerRay said  I have checked the mod file and was able to play around with it... maybe I will do a mod file with some music soon... but that needs a little bit learning to get back into making mod music again... puh... you are so limited in that :-/

That would be awesome.

  TweakerRay said  Do you know what samplefrequency your sounds originally at ?

I do not, however the original file is form here:

  TweakerRay said  how about WII Control ? ;-) Now that I bought a controller ;-)

I do have some lying around somewhere, but to be honest I've already moved on to my next game    If somebody else wants to add it, feel free! There is a single routine for handling the keyboard entry, so it should just slot in there.

  TweakerRay said  Oh and do you use a boublesort for the hightscore ?
I need to learn how to make highscoretable...

Sort of (pun intended). It stores 100 high scores. The player starts with a cursor at #100. Every scan, the program compares the players current score with the high score under the cursor i.e. HighScore(100). If the player score is greater than the highscore at the cursor, then the cursor is decremented by 1. So next scan it compares the player score to HighScore(99) and so forth. This is the fundamentals for a bubble sort, but everything in the high score array is already sorted, I'm just finding the insert point for the players score. When the game finishes, the program moves everything after the highscore cursor down one (so score HighScore(99) is put in to HighScore(100)) and then inserts the player score at the cursor position in the array (and then saves the array to disk).

The trap to watch out for here is that when you are moving the scores "down one" in the array you have to start at element 100 and work back up to the cursor (rather than working from the cursor down to 100).

If we had a table
#98 = 3000
#99 = 2000
#100 = 1000

and you were inserting at 98. If you go from 98 to 100 you get the following logic
HighScore(99)=HighScore(98)   (#99 is now 3000)
HighScore(100)=HighScore(99) (#100 is now also 3000)

and you end up with

If you do the logic from #100 counting down to #98 you don't get this problem.

Feel free to take my highscore code and use it if you want.

  TweakerRay said  Constructive criticism: wouldn't it be better to have the armor and ammo bars on the right side where the radar is ? because I find it sometimes hard to read in the center.

Thanks. I always welcome constructive criticism. Funnily enough, that's where they were originally (where the little keyboard reminders are just now at the bottom right of the screen). But it became very difficult to keep your eyes on the action and check how much fuel/armour/ammo and boost you had. I agree that having beside the chopper also isn't a great solution. It definitely could do with some tweaking (another pun intended) if you are up for it!  
Edited 2020-10-18 02:58 by PeteCotton