Scramble (arcade game remake)
#52
(03-30-2023, 01:57 PM)madscijr Wrote: First, a simple question about this (probably more of a general QB64PE question).
In QB64/PE, isn't the boolean TRUE value -1?
Because the program is setting HI_RES to 1, not -1, and it still evaluates to true.
Did QB64 & QB64PE always evaluate both -1 and 1 to true, and I just never noticed?

My assumption is that QB64pe, as with many other languages, has zero as false and non-zero as true. That said, in general I would always define FALSE as zero and TRUE as NOT FALSE.

(03-30-2023, 01:57 PM)madscijr Wrote: So if we want to try x4 resolution, we need to set both TILE_SCALE and HI_RES, right? Like this:
Code: (Select All)
$IF HI_RES THEN
    CONST TILE_SCALE = 4
...
$LET HI_RES = 1

That is true as it currently stands. Setting HI-RES to zero will result in using the original sprite sheet (which will have a TILE_SCALE of 1). Set HI_RES to 1 to use your own sprite sheet and set TILE_ZOOM to whatever factor your sprite sheet is scaled up by from the original.

(03-30-2023, 01:57 PM)madscijr Wrote: My final question is about the background stars. A few seconds into the game, the background turns from black to gray. Is this supposed to happen? How can we keep the background black? 

[Image: scramble-with-options-screen-turns-gray.png]

I imagine the palettes have been messed up somewhere along the line. The way the original works is to update four colours of the eight colour palette when it's doing the palette updates. That's why you have the set of sprites in the sprite sheet that are in four colours of grey - they're the ones that are assigned different colours from time to time. As you're basically updating all of the sprites and disregarding any use of palette switching, you might as well use the HI-RES setting to disable palette switching completely when set to 1.

(03-30-2023, 01:57 PM)madscijr Wrote: Thanks again for all the work you put into this and your time with helping to customize it!

You are more than welcome. I'm thoroughly enjoying watching this variant progress!
Reply


Messages In This Thread
Scramble (arcade game remake) - by RokCoder - 02-26-2023, 10:56 PM
RE: Scramble (arcade game remake) - by mnrvovrfc - 02-27-2023, 12:39 AM
RE: Scramble (arcade game remake) - by bplus - 02-27-2023, 03:28 AM
RE: Scramble (arcade game remake) - by RokCoder - 02-27-2023, 07:49 PM
RE: Scramble (arcade game remake) - by aurel - 02-27-2023, 09:44 PM
RE: Scramble (arcade game remake) - by RokCoder - 02-28-2023, 07:40 AM
RE: Scramble (arcade game remake) - by RokCoder - 02-28-2023, 04:25 PM
RE: Scramble (arcade game remake) - by mnrvovrfc - 02-28-2023, 09:55 PM
RE: Scramble (arcade game remake) - by aurel - 02-28-2023, 08:39 AM
RE: Scramble (arcade game remake) - by RokCoder - 02-28-2023, 04:23 PM
RE: Scramble (arcade game remake) - by mnrvovrfc - 02-28-2023, 09:08 AM
RE: Scramble (arcade game remake) - by aurel - 02-28-2023, 05:03 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-01-2023, 07:05 AM
RE: Scramble (arcade game remake) - by aurel - 03-02-2023, 04:01 PM
RE: Scramble (arcade game remake) - by bplus - 03-02-2023, 05:35 PM
RE: Scramble (arcade game remake) - by vince - 03-03-2023, 01:47 PM
RE: Scramble (arcade game remake) - by madscijr - 03-23-2023, 05:45 AM
RE: Scramble (arcade game remake) - by RokCoder - 03-23-2023, 09:43 AM
RE: Scramble (arcade game remake) - by madscijr - 03-23-2023, 07:58 PM
RE: Scramble (arcade game remake) - by madscijr - 03-24-2023, 06:32 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-24-2023, 10:41 PM
RE: Scramble (arcade game remake) - by madscijr - 03-24-2023, 10:58 PM
RE: Scramble (arcade game remake) - by madscijr - 03-27-2023, 04:19 PM
RE: Scramble (arcade game remake) - by mnrvovrfc - 03-24-2023, 02:20 AM
RE: Scramble (arcade game remake) - by RokCoder - 03-24-2023, 08:17 AM
RE: Scramble (arcade game remake) - by madscijr - 03-24-2023, 03:30 PM
RE: Scramble (arcade game remake) - by madscijr - 03-24-2023, 11:14 PM
RE: Scramble (arcade game remake) - by mnrvovrfc - 03-24-2023, 11:18 PM
RE: Scramble (arcade game remake) - by madscijr - 03-24-2023, 11:55 PM
RE: Scramble (arcade game remake) - by grymmjack - 03-25-2023, 06:20 PM
RE: Scramble (arcade game remake) - by grymmjack - 03-25-2023, 06:28 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-26-2023, 10:12 AM
RE: Scramble (arcade game remake) - by RokCoder - 03-26-2023, 10:20 AM
RE: Scramble (arcade game remake) - by RokCoder - 03-26-2023, 10:26 AM
RE: Scramble (arcade game remake) - by RokCoder - 03-27-2023, 07:14 AM
RE: Scramble (arcade game remake) - by RokCoder - 03-27-2023, 06:24 PM
RE: Scramble (arcade game remake) - by madscijr - 03-27-2023, 10:30 PM
RE: Scramble (arcade game remake) - by madscijr - 03-28-2023, 07:05 AM
RE: Scramble (arcade game remake) - by madscijr - 03-28-2023, 03:34 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-29-2023, 05:37 PM
RE: Scramble (arcade game remake) - by madscijr - 03-29-2023, 06:06 PM
RE: Scramble (arcade game remake) - by madscijr - 03-30-2023, 01:57 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-30-2023, 02:35 PM
RE: Scramble (arcade game remake) - by madscijr - 03-30-2023, 02:44 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-30-2023, 03:23 PM
RE: Scramble (arcade game remake) - by madscijr - 03-30-2023, 03:41 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-30-2023, 05:39 PM
RE: Scramble (arcade game remake) - by madscijr - 03-30-2023, 07:43 PM
RE: Scramble (arcade game remake) - by RokCoder - 03-31-2023, 08:12 PM
RE: Scramble (arcade game remake) - by madscijr - 03-31-2023, 08:31 PM
RE: Scramble (arcade game remake) - by madscijr - 04-03-2023, 09:18 PM
RE: Scramble (arcade game remake) - by RokCoder - 04-03-2023, 09:36 PM
RE: Scramble (arcade game remake) - by madscijr - 04-03-2023, 09:54 PM
RE: Scramble (arcade game remake) - by RokCoder - 04-18-2023, 08:11 AM
RE: Scramble (arcade game remake) - by madscijr - 04-18-2023, 05:27 PM
RE: Scramble (arcade game remake) - by madscijr - 04-29-2023, 07:38 PM
RE: Scramble (arcade game remake) - by RokCoder - 04-29-2023, 07:42 PM
RE: Scramble (arcade game remake) - by madscijr - 04-29-2023, 10:23 PM
RE: Scramble (arcade game remake) - by RokCoder - 04-29-2023, 10:36 PM
RE: Scramble (arcade game remake) - by grymmjack - 04-23-2023, 05:17 PM
RE: Scramble (arcade game remake) - by bplus - 04-23-2023, 05:38 PM
RE: Scramble (arcade game remake) - by grymmjack - 04-23-2023, 06:03 PM
RE: Scramble (arcade game remake) - by bplus - 04-23-2023, 06:20 PM
RE: Scramble (arcade game remake) - by grymmjack - 04-23-2023, 06:55 PM
RE: Scramble (arcade game remake) - by RokCoder - 04-23-2023, 07:02 PM



Users browsing this thread: 29 Guest(s)