[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2023-01-22T09:23:15-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/14881 2023-01-22T09:23:15-05:00 2023-01-22T09:23:15-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39335#p39335 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]>
By the way I found the tempo issue in PlaySfx():

Code:

CASE SPRINGSFX  PLAY "O3 T180 L64 MB CD-DE-EFG-G"
Should reset the tempo to 120 when it's done:

Code:

CASE SPRINGSFX  PLAY "O3 T180 L64 MB CD-DE-EFG-G T120"
Otherwise it carries over to other PLAY statements until the program ends... and now that I check it out, all the sound effects are indeed sped up after jumping on a spring. Turn the invisibility cloak on and off before stepping on the spring in level 5, then toggle the cloak again. Funny I had to hear the jingle to realize something was up.

I'm looking forward to the Halloween game, I'm a sucker for mazes and mansions! Cheer.

Statistics: Posted by MikeHawk — Sun Jan 22, 2023 9:23 am


]]>
2023-01-22T03:15:13-05:00 2023-01-22T03:15:13-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39334#p39334 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]>
The level finished jingle isn't purposely a different tempo. It's the same code executed each time, it's just using the QB built in "background" playing. I'm guessing that's not entirely reliable. (MB flag on the PLAY command)

The spite drawing issue is due to the weirdness and hacky-ness I handled that code. The way that was all done was pretty nasty so there's no surprise there's issues there. This carries over to the tight and weird jumping and collision detection with enemies. I have a Halloween game I started working on back in Oct (early out of date screen shot & info: https://nediscapp.com/discussion.cgi?di ... icle=41027) that handles things a bit different that's much better at it. Your 'DEF SEG' recommendations in the sprite draw loop are immensely helpful for both games. Thank you for that!!

The tight squeeze on time in level 24 was due to me thinking the game was too easy. I guess when you're the main person testing it, you don't realize that you know all the 'tips and tricks' and what becomes hard to you is very hard to others.

Thanks again for playing it. I'll have to post my high score as well.
Hopefully at some point I'll have time to create a 1.02 that has the jump fixes, sprite fixes, DEF SEG draw fix, and level time adjustment fixes. Not sure when that will be though. :)

Thanks again!

Statistics: Posted by Erik — Sun Jan 22, 2023 3:15 am


]]>
2023-01-16T20:26:37-05:00 2023-01-16T20:26:37-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39333#p39333 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]>
sdrush_055.png
I really think the actors' collision box should be thinner and maybe a little shorter too.

Statistics: Posted by MikeHawk — Mon Jan 16, 2023 8:26 pm


]]>
2023-01-15T20:13:07-05:00 2023-01-15T20:13:07-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39332#p39332 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]>
sdrush_014.png
sdrush_032.png
sdrush_038.png
As a side note: the tempo for the "level completed" jingle is not always the same. I don't know if it was by design or if another sound changed the tempo and it was carried over by accident. I also noticed some objects are not always rendered as sprites when they overlap. I'm not sure why. I don't think it's necessary right now, but if you ever need some extra speed to draw sprites, you could try:
  • Move DEF SEG to the y% loop, no need to reset it for every pixel.
  • Modify the segment address for each row rather than using a LONG in the POKE statement. In short: increasing the DEF SEG value by 1 is equal to increasing the POKE offset by 16. It means that you can easily reach the whole screen using only INTEGERs if you multiply y% by 20 (20 is 320 -screen width in pixels- divided by 16 -size of a paragraph-) and add the result to &hA000. This removes the LONG multiplication from the pixel loop.
  • You can test variables against 0 by just throwing them at IF and let it figure it out. If the pixel array only contains values above or equal to 0, just go "IF variable THEN" and the test will only pass if the variable is not null.
It should look like this and it seems to be 10x faster than PSET and 5x faster than the current code:

Code:

FOR y% = 1 TO MAXSPRITEHEIGHT  DEF SEG = &HA000 + (y% + yOffset%) * 20  FOR x% = 1 TO MAXSPRITEWIDTH    IF SpriteMap(SpriteId%, x%, y%) THEN         POKE (x% + xOffset%), SpriteMap(SpriteId%, x%, y%)    END IF  NEXT x%NEXT y%DEF SEG
I swear one of these days I'll complete level 24 with the utmost prejudice.

Statistics: Posted by MikeHawk — Sun Jan 15, 2023 8:13 pm


]]>
2023-01-02T15:00:10-05:00 2023-01-02T15:00:10-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39326#p39326 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]> must download and play this soon! :D :shock: :D :D

Statistics: Posted by buddpaul — Mon Jan 02, 2023 3:00 pm


]]>
2022-12-25T11:13:26-05:00 2022-12-25T11:13:26-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39324#p39324 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]>
If it helps, one strategy I like to use is to sacrifice some of the presents to the enemies so there's less to deliver (though it hurts your score bonus at the end of the level). It especially helps on some later levels where there might be some tighter time limits.

Edit: I just realized I left my test high score data in the original upload. I re-uploaded the game with them cleared out. To reset the highscore data manually, you can just delete the "HIGHSCOR.HDX" file. The game will generate a new one when you go to the high score option off the main menu.

Statistics: Posted by Erik — Sun Dec 25, 2022 11:13 am


]]>
2022-12-24T22:58:59-05:00 2022-12-24T22:58:59-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39323#p39323 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]> I like the graphics and that you added a lot of levels.

Statistics: Posted by bongomeno — Sat Dec 24, 2022 10:58 pm


]]>
2022-12-24T14:27:43-05:00 2022-12-24T14:27:43-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39322#p39322 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]>
I finally got around to finishing this game! The game has 25 levels + bonus levels with three difficulty settings. It also comes with a level editor, sprite editor, and an option to load user created levels.

To run the game, extract the SDRUSHV1.ZIP contents to a new directory and then in either DOSBox or DOS, run SDRUSH.EXE. If you're using DOSBox, you might have to up the default CPU cycles a little bit with CTRL+F12.

The download zip is attached to the first post in this thread.

Thanks!

Statistics: Posted by Erik — Sat Dec 24, 2022 2:27 pm


]]>
2022-01-24T01:20:55-05:00 2022-01-24T01:20:55-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39226#p39226 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]> Statistics: Posted by Erik — Mon Jan 24, 2022 1:20 am


]]>
2022-01-16T09:46:49-05:00 2022-01-16T09:46:49-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39224#p39224 <![CDATA[Re: New Qbasic Christmas Game: Santa's Delivery Rush]]> Statistics: Posted by Pete — Sun Jan 16, 2022 9:46 am


]]>
2023-01-06T13:15:03-05:00 2021-12-26T22:44:27-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=39219#p39219 <![CDATA[New Qbasic Christmas Game: Santa's Delivery Rush]]>
2023-01-06 Edit: Game finished! Fixed blending animation a bit from 12/24 release. New latest download is SDR101.ZIP


A few years ago, I made Santa's Christmas Rescue. Which was a challenge I made for myself to create a Christmas themed game from December 1st to Christmas Day. This year, I decided to try doing the same again but went for a bit more ambitious game.

In this game, you're again playing as Santa in a mad dash to deliver all the presents on Christmas Eve before time runs out. Each level has a set number of presents you must take from the sleigh to the Christmas tree while avoiding late night "snoopers" trying to catch you in the act (Don't forget to go back to the sleigh once all the presents are delivered!)

Santa has a few tricks of his sleeve to avoid the snoopers. He can "blend" in with the background. This causes him to be invincible to snoopers at the cost of his Christmas Spirit and movement speed. He can also run at the cost of Christmas Spirit. If a snooper hits you, you will automatically use some of your Christmas Spirit to put them back to bed. If you have a present, they will take that as well and stay asleep for the rest of the level. If not, they will be back up looking around shortly! Be sure not to lose all your presents to snoopers or it's game over!

There are also a few items you can pick up in the game to help you (or hurt you!). Some of these include a timer that gives you more time, a helpful elf that will deliver a present for you, a sleep item that puts all the snoopers to bed for a bit, and more.

I wasn't able to complete the whole game in the amount of time, but I was able to put together a playable demo of the game. The demo includes three levels to play as well as the tools I created to build the levels and assets.

Please read the readme.txt in the zip file for more information as well as the instructions in the game for controls and story.

To run the game, open XMAS2021.BAS in QB 4.5 and run. Make sure that all the files in the zip are extracted to the same folder and you're running the game from that folder.

I wrote this game on my 486 and also tested in DOSBox so it should hopefully run just about anywhere. Please let me know if you have any issues or encounter any bugs. I'll be sure to fix them for the full game release.

Screen shots:

Title screen:
Image

Game play:
Image

Thanks!
-Erik

Edit 2021-12-29: Updated demo download link with latest version with some bug fixes (probably introduced some new ones as well :) )
Edit 2021-01-07: Updated demo download link with latest version with a bunch of bug fixes as well as better controls.

Edit 2022-12-24: Game is finished! Added final release download SDRUSHV1.ZIP to post.
Edit 2023-01-06: Updated finished game with fixed blending 'animation'. Latest download is SDR101.ZIP
SDR101.ZIP

SDRUSHV1.ZIP

sdr_demo_20220107.zip

Statistics: Posted by Erik — Sun Dec 26, 2021 10:44 pm


]]>