Compare commits
No commits in common. "d1bc8cb072beea008b26a5a6fa71033145c0d9bb" and "cde36e2cf9bd095e1c82e1d53ca28b08e206b6c8" have entirely different histories.
d1bc8cb072
...
cde36e2cf9
96
vacation.p8
96
vacation.p8
@ -372,50 +372,6 @@ end
|
||||
-->8
|
||||
-- arcade mode
|
||||
|
||||
-- palette use:
|
||||
-- 0: shallow sea blue (1)
|
||||
-- 1: black (for sprites)
|
||||
-- 2: dolphin shading
|
||||
-- 3: azure water, maybe score display? (140)
|
||||
-- 4, 5, 6: unassigned, layer-specific
|
||||
-- 7: dolphin highlights
|
||||
-- 8, 9: unassigned, layer specific
|
||||
-- 10: word primary (yellow 10?)
|
||||
-- 11: word shadow (wood 132?)
|
||||
-- 12: dolphin eye
|
||||
-- 13: light splashy water (12), maybe sky?
|
||||
-- 14: dolphin primary color
|
||||
-- 15: highlight white (all layers)
|
||||
--
|
||||
-- dolphin colors are different
|
||||
-- between zones; correlated.
|
||||
-- wave, text, and black colors
|
||||
-- are the same between zones.
|
||||
-- other colors are for
|
||||
-- elements that only ever
|
||||
-- appear in one zone.
|
||||
--
|
||||
-- TODO: consider changing sky
|
||||
-- colors in different stages;
|
||||
-- document what colors those
|
||||
-- are (nrm_pal) if so.
|
||||
game_nrm_pal = {
|
||||
[0] = 1, 0, 2, 140, 4, 5, 6, 7, 8, 9, 10, 132, 12, 12, 14, 7
|
||||
}
|
||||
game_uw_pal = {
|
||||
[0]=1, 0, 130, 140, 4, 5, 6, 13, 8, 9, 10, 132, 131, 12, 141, 7
|
||||
}
|
||||
|
||||
function setup_arcade_pal()
|
||||
-- per-line color mode
|
||||
poke(0x5f5f, 0x10)
|
||||
-- rows 72 and lower: sea
|
||||
memset(0x5f79,0xff,7)
|
||||
pal()
|
||||
pal(game_nrm_pal, 1)
|
||||
pal(game_uw_pal, 2)
|
||||
end
|
||||
|
||||
-- global wave amplitude clock
|
||||
-- wave per 2 seconds
|
||||
-- optional toff: offset. at
|
||||
@ -430,8 +386,8 @@ sea = {}
|
||||
mknew(sea)
|
||||
|
||||
function sea:draw()
|
||||
rectfill(0, 72+wave(), 128, 84, 0)
|
||||
poke2(0x5f78, 0xFF00.00FF <<> wave())
|
||||
rectfill(0, 72+wave(), 128, 84, 1)
|
||||
|
||||
end
|
||||
|
||||
arcade_level = {
|
||||
@ -441,7 +397,7 @@ arcade_level = {
|
||||
mknew(arcade_level, function(x)
|
||||
x.phin = toyphin.new{splasher=x}
|
||||
-- TODO: decent looking sky and sea
|
||||
x.sky = bg.new{c=13}
|
||||
x.sky = bg.new{c=12}
|
||||
x.sea = sea.new()
|
||||
-- event list includes words
|
||||
x.e = event_list.new()
|
||||
@ -490,7 +446,53 @@ function arcade_level:landing_splash(x, force, harder)
|
||||
-- TODO: sfx, vfx for landing from a jump
|
||||
end
|
||||
|
||||
-- palette use:
|
||||
-- 0: shallow sea blue (1)
|
||||
-- 1: black (for sprites)
|
||||
-- 2: dolphin shading
|
||||
-- 3: azure water, maybe score display? (140)
|
||||
-- 4, 5, 6: unassigned, layer-specific
|
||||
-- 7: dolphin highlights
|
||||
-- 8, 9: unassigned, layer specific
|
||||
-- 10: word primary (yellow 10?)
|
||||
-- 11: word shadow (wood 132?)
|
||||
-- 12: dolphin eye
|
||||
-- 13: light splashy water (12), maybe sky?
|
||||
-- 14: dolphin primary color
|
||||
-- 15: highlight white (all layers)
|
||||
--
|
||||
-- dolphin colors are different
|
||||
-- between zones; correlated.
|
||||
-- wave, text, and black colors
|
||||
-- are the same between zones.
|
||||
-- other colors are for
|
||||
-- elements that only ever
|
||||
-- appear in one zone.
|
||||
--
|
||||
-- TODO: consider changing sky
|
||||
-- colors in different stages;
|
||||
-- document what colors those
|
||||
-- are (nrm_pal) if so.
|
||||
game_nrm_pal = {
|
||||
[0] = 1, 0, 2, 140, 4, 5, 6, 7, 8, 9, 10, 132, 12, 12, 14, 7
|
||||
}
|
||||
game_uw_pal = {
|
||||
[0]=1, 0, 130, 140, 4, 5, 6, 13, 8, 9, 10, 132, 131, 12, 141, 7
|
||||
}
|
||||
identity = {
|
||||
[0]=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||
}
|
||||
|
||||
function setup_arcade_pal()
|
||||
-- per-line color mode
|
||||
poke(0x5f5f, 0x10)
|
||||
-- rows 72 and lower: sea
|
||||
memset(0x5f79,0xff,7)
|
||||
pal()
|
||||
pal(identity, 2)
|
||||
pal(game_nrm_pal, 1)
|
||||
pal(game_uw_pal, 2)
|
||||
end
|
||||
|
||||
phinstate_nrm = {
|
||||
s={4, 36, 4, 9},
|
||||
|
Loading…
Reference in New Issue
Block a user