Scramble (arcade game remake)
#51
(03-29-2023, 05:37 PM)RokCoder Wrote:
Code: (Select All)
$LET HI_RES = 1
...
    $IF HI_RES THEN

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?
Example:
Code: (Select All)
Const FALSE = 0
Const TRUE = Not FALSE
Const HI_RES = 1
Cls
Print "FALSE  = " + _Trim$(Str$(FALSE))
Print "TRUE   = " + _Trim$(Str$(TRUE))
Print "HI_RES = " + _Trim$(Str$(HI_RES))
Print
If HI_RES Then
    Print "HI_RES evaluates to true"
Else
    Print "HI_RES evaluates to false"
End If
Print
Print "press any key to continue"
Sleep
System


(03-29-2023, 05:37 PM)RokCoder Wrote: 3) There was a lot of code scattered around that required tweaking so it wasn't a simple case of increasing TILE_WIDTH and TILE_HEIGHT. To simplify it a little I added a TILE_SCALE so that all the original position placements and calculations didn't need modifying - just the actual rendering to the virtual screen display.
Code: (Select All)
$IF HI_RES THEN
    CONST TILE_SCALE = 2
$ELSE
        CONST TILE_SCALE = 1
$END IF

4) I added a bunch of pre-processor settings so that it's easy to switch gaming modes around. All of your modifications are included in these -

Code: (Select All)
$LET HI_RES = 1
$LET WIDESCREEN = 1
$LET SPEED_CONTROLS = 0
$LET EXTRA_BOMBS = 0
$LET EXTRA_LIVES = 1
$LET FREE_ROAMING_SHIP = 0

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

My final question is about the background stars. A few seconds into the game, the sky turns from black to gray. Is this supposed to happen? How can we keep the sky black? 

The game starts out with black skies:
[Image: scramble-with-options-screen-starts-out-black.png]

But then around the time the ship flies over the 2nd hill, this happens:
[Image: scramble-with-options-screen-turns-gray.png]

Like the song says, "Grey skies are gonna clear up, put on a happy face!" LoL

Thanks again for all the work you put into this and your time with helping to customize it!
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)