![]() |
![]() |
#1 |
Registered User
Join Date: Dec 2011
Location: Northamptonshire, UK
Age: 42
Posts: 1,236
|
Tinting Greyscale Sprite Sheets?
Is this possible?
instead of manually drawing out a red, blue and green tile from a spritesheet is it possible to just call the spritesheet and have either the blitter (or i guess the copper?) then add the colour on the fly? |
![]() |
![]() |
#2 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,866
|
Quote:
Say each tile uses four shades. What you do is define your palette like this: Code:
Color nr: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 x x x x red red red red gre gre gre gre blu blu blu blu Code:
Tile data: 0000111100001111 plane 0 1100110011001100 plane 1 Color select for red: 1111111111111111 plane 2 0000000000000000 plane 3 Hope that made some sense ![]() Last edited by Thorham; 13 August 2013 at 18:30. |
|
![]() |
![]() |
#3 |
Registered User
Join Date: Dec 2011
Location: Northamptonshire, UK
Age: 42
Posts: 1,236
|
I think I get it.
I'm imagining it sort of like a Worms map, where the terrain uses only 4 colours, but instead of drawing the mud and rock for each "themed map" i could just adjust the colour of the tileset, needing less tile variations and thus, less tiles needing to be loaded in ram. now the bigger question... using this technique, its it possible to tweak the tint on the fly? think of it like a downfall type digging game, but as you get deeper and deeper the colour hue of the tiles change? |
![]() |
![]() |
#4 | ||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,866
|
Quote:
Quote:
If you want very smooth hue transitions, you can use the Copper to change the four tile colors per scan line. But that only works for your 'going deeper and deeper' example. |
||
![]() |
![]() |
#5 |
Registered User
Join Date: Dec 2011
Location: Northamptonshire, UK
Age: 42
Posts: 1,236
|
Excellent! Thanks for the advice
![]() I've yet another idea for a game ("lol! not ANOTHER one!?" I hear you guys cry). My problem is choosing a game type that's on par with my programming level, but will still offer a challenge as i learn more while making it. so if i made a digging game going deeper and deeper i could use a lot of cue's from Downfall to get me started then maybe work toward that colour change as a long term "for added polish" type of goal so cheers! ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Settlers sprite | zdechlak | project.Sprites | 1 | 02 March 2019 10:55 |
sprite overscan | jamiejamie | Coders. General | 11 | 02 February 2011 16:59 |
DIWSTART and sprite | Camionsauro | Coders. Tutorials | 3 | 22 April 2009 13:24 |
some .cue sheets | Thalion | request.Other | 2 | 30 October 2008 07:55 |
|
|