Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scramble (arcade game remake)
#39
(03-24-2023, 11:14 PM)madscijr Wrote:
(02-26-2023, 10:56 PM)RokCoder Wrote: The ZIP file contains scramble.bas along with a subfolder called assets which contains all the sound effects, graphics, etc. 

For Scramble, I started playing with decomposing "sprite-sheet.png", breaking it out into layers in paint.net, to change some colors. 
As fun as Scramble can be, I was never a big fan of the colors - like those ugly purple and green explosions - yuck! LoL. 

Looking at the sprite sheet, I have a question:

[Image: sprite-sheet-question.png]

Have a great weekend!

The game uses a palettised screen mode so that I could use simple palette switching in a similar way to how I assume the original arcade game did. All the grey sprites in the sprite sheet are the ones that are affected by the palette switching - landscapes, certain enemies, etc. SUB ExtractPalettes pulls the colours from that small area of palettes.

Code: (Select All)
SUB ExtractPalettes
    DIM i%, x%, y%
    _SOURCE spriteSheet&
    i% = 0
    FOR y% = 1 TO 4
        FOR x% = 0 TO 7
            pal&(INT(i% / 4), i% MOD 4) = _PALETTECOLOR(POINT(127 + x% * 4, 97 + y% * 4), spriteSheet&)
            i% = i% + 1
        NEXT x%
    NEXT y%
    i% = 0
    FOR x% = 0 TO 3
        gPal%(i%) = POINT(127 + x% * 4, 97)
        i% = i% + 1
    NEXT x%
END SUB

Essentially, the pal& array is filled with the target colour indexess for eight different palette types (with there being four dynamically set palette entries for each). The gPal& array is simply the source palette index entries that are modified.

You should be able to make the entire game more pleasing to your eye simply by tweaking those target colours in the sprite sheet!
RokCoder - dabbling in QB64pe for fun
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: 6 Guest(s)