Author Topic: boulderdash update pmackay  (Read 3557 times)

0 Members and 1 Guest are viewing this topic.

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
boulderdash update pmackay
« on: August 29, 2020, 05:39:48 pm »
this is just an update to my boulder dash. has some bug fixes. needed are the other files from the original file you have downloaded.

have included the zip from my original code for download.

still work in progress. but very playable

*** (update-1.13) Download the files below (boulderrtestrun.zip and BOULDERS13.bas). unzip the file in qb64. copy the BOULDERS13.bas in qb64 and compile.  updated file from 1st september 2020....

The update has got the Amoeba to recognize and fix the fireflies and butterflies from staying behind. now fixed. Amoeba still needed to detect when stuck (no where to move = trapped sequence). running from timer for now.



Code: Text: [Select]
  1.  
* boulderrtestrun.qb64org.zip (Filesize: 16.57 MB, Downloads: 239)
* BOULDERS13.bas (Filesize: 90.87 KB, Downloads: 221)
Screenshot (3).png
* Screenshot (3).png (Filesize: 18.63 KB, Dimensions: 337x423, Views: 229)
« Last Edit: August 31, 2020, 09:03:51 pm by PMACKAY »
MackyWhite

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
Re: boulderdash update pmackay
« Reply #1 on: August 29, 2020, 06:51:06 pm »
copy the bas file over the bas file in the zipped version and recompile. will fix the bugs on the butterflies and fireflies. (amoeba to be worked on as has a bug that does not kill fireflies or butterflies and they remain on under the rocks active). going to fix in the next few days. does not really affect game.
* BOULDERS13.bas (Filesize: 90.8 KB, Downloads: 204)
« Last Edit: August 30, 2020, 10:22:58 am by PMACKAY »
MackyWhite

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
Re: boulderdash update pmackay
« Reply #2 on: August 29, 2020, 10:47:04 pm »
ON TIMER(SCREENANI%, .04) GOSUB TIMER2   this is the speed the boulders fall... change the .04 to different numbers for various speeds. 1=1 second (very very slow) (.04 = normal speed) can be made to fall faster. no point being faster as the rocks will fall way too fast.




the following below is the entire game loop... this works as i have everything running from timers. so this is the main loop. turn on timers to play and turn them off when game ends. nothing else needed. :)

DO: _LIMIT 30: GOSUB FPS: LOOP UNTIL ESC% = -1 OR REXIT% = 2 OR MANDIED% = -1

everything in the game runs off timers. _limit 30 is used for the loop to free the processor. nothing more.
« Last Edit: August 29, 2020, 10:50:40 pm by PMACKAY »
MackyWhite