Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tiny Space Invaders
#13
I was able to get a version that would work for you @Pete, but you did find a couple of additional compatibility issues.

First, the error you were seeing was due to the same issue that @bplus was having with the Mid$ statement.  This has been fixed in the dev server but hasn't been pushed up to qbjs.org just yet.

Running it in the dev server I did find a couple of additional issues that were preventing it from working correctly.  First, I have not yet implemented the screen 0 behavior for the _Width and _Height methods.  (I'll add a ticket to support that in the next release.)  At present, they always return the sizing information in pixels rather than characters.  Next, QBJS does not yet have support for defining multiple variations of the same variable name that differ only by type.  So, it didn't like the fact that a$ was being used for both a string and as a separate array.

Here's a version that works on the dev server by using a little QBJS trick to define _Width and _Height as varaibles and redefining the string variable as s$:
Pete's Mini Space Invaders For QBJS

To use the QBJS embed tag you'll want to use the share link that is generated from the QBJS IDE instead of the full source file.  It will look something like this:
Code: (Select All)
[qbjs]https://qbjs.org?code=IF9UaXRsZSAiUGV0ZSdzIE1pbmkgU3BhY2UgSW52YWRlcnMgRm9yIFFCSlMiCkRpbSBfV2lkdGgsIF9IZWlnaHQ6xxEgPSA4....gSgyFfGCCvERwrkAKMg[/qbjs]
Reply


Messages In This Thread
Tiny Space Invaders - by bplus - 09-09-2025, 05:19 PM
RE: Tiny Space Invaders - by bplus - 09-09-2025, 05:32 PM
RE: Tiny Space Invaders - by dbox - 09-09-2025, 08:49 PM
RE: Tiny Space Invaders - by Pete - 09-09-2025, 07:30 PM
RE: Tiny Space Invaders - by bplus - 09-09-2025, 07:35 PM
RE: Tiny Space Invaders - by Unseen Machine - 09-09-2025, 10:21 PM
RE: Tiny Space Invaders - by dbox - 09-09-2025, 10:29 PM
RE: Tiny Space Invaders - by bplus - 09-09-2025, 11:58 PM
RE: Tiny Space Invaders - by Pete - 09-10-2025, 04:12 AM
RE: Tiny Space Invaders - by bplus - 09-10-2025, 02:31 PM
RE: Tiny Space Invaders - by Pete - 09-10-2025, 03:30 PM
RE: Tiny Space Invaders - by bplus - 09-10-2025, 04:08 PM
RE: Tiny Space Invaders - by dbox - 09-10-2025, 05:06 PM
RE: Tiny Space Invaders - by Pete - 09-10-2025, 11:00 PM
RE: Tiny Space Invaders - by dbox - 09-11-2025, 02:52 PM
RE: Tiny Space Invaders - by Pete - 09-11-2025, 04:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Space Invaders knock off to show simple collisions Unseen Machine 10 1,102 09-09-2025, 07:23 PM
Last Post: Pete
  Tiny Maze Maker - ASCII SierraKen 19 1,714 08-09-2025, 11:39 PM
Last Post: SierraKen
  Space Pongy bplus 3 827 11-29-2024, 11:18 PM
Last Post: SierraKen
  Tech Invaders 5 SierraKen 5 1,216 08-12-2024, 01:10 PM
Last Post: Dav
  sweet little circuit game space maker bplus 3 1,229 02-19-2024, 01:27 AM
Last Post: PhilOfPerth

Forum Jump:


Users browsing this thread: 1 Guest(s)