Compare commits
No commits in common. "cde36e2cf9bd095e1c82e1d53ca28b08e206b6c8" and "51522e699c28c63222b0db708f4e73eb9c183e82" have entirely different histories.
cde36e2cf9
...
51522e699c
66
vacation.p8
66
vacation.p8
@ -382,13 +382,8 @@ function wave(toff)
|
|||||||
return 2.5 * sin((t()+toff)>>1)
|
return 2.5 * sin((t()+toff)>>1)
|
||||||
end
|
end
|
||||||
|
|
||||||
sea = {}
|
waves={}
|
||||||
mknew(sea)
|
mknew(waves)
|
||||||
|
|
||||||
function sea:draw()
|
|
||||||
rectfill(0, 72+wave(), 128, 84, 1)
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
arcade_level = {
|
arcade_level = {
|
||||||
score=0,
|
score=0,
|
||||||
@ -398,7 +393,8 @@ mknew(arcade_level, function(x)
|
|||||||
x.phin = toyphin.new{splasher=x}
|
x.phin = toyphin.new{splasher=x}
|
||||||
-- TODO: decent looking sky and sea
|
-- TODO: decent looking sky and sea
|
||||||
x.sky = bg.new{c=12}
|
x.sky = bg.new{c=12}
|
||||||
x.sea = sea.new()
|
x.sea = bg.new{y=72, c=1}
|
||||||
|
x.waves = waves.new()
|
||||||
-- event list includes words
|
-- event list includes words
|
||||||
x.e = event_list.new()
|
x.e = event_list.new()
|
||||||
-- TODO: score renderer
|
-- TODO: score renderer
|
||||||
@ -446,38 +442,26 @@ function arcade_level:landing_splash(x, force, harder)
|
|||||||
-- TODO: sfx, vfx for landing from a jump
|
-- TODO: sfx, vfx for landing from a jump
|
||||||
end
|
end
|
||||||
|
|
||||||
-- palette use:
|
-- dolphin sprite states:
|
||||||
-- 0: shallow sea blue (1)
|
-- spr args
|
||||||
-- 1: black (for sprites)
|
-- hitbox offset; it's always
|
||||||
-- 2: dolphin shading
|
-- some fixed size (trying to
|
||||||
-- 3: azure water, maybe score display? (140)
|
-- figure out what that size is)
|
||||||
-- 4, 5, 6: unassigned, layer-specific
|
-- multiple sprites: do the
|
||||||
-- 7: dolphin highlights
|
-- entire thing as multiple
|
||||||
-- 8, 9: unassigned, layer specific
|
-- sprites, or only the tail?
|
||||||
-- 10: word primary (yellow 10?)
|
-- single sprite is bigger on
|
||||||
-- 11: word shadow (wood 132?)
|
-- the sprite sheet but easier
|
||||||
-- 12: dolphin eye
|
-- to render.
|
||||||
-- 13: light splashy water (12), maybe sky?
|
phin_nrm_pal = {
|
||||||
-- 14: dolphin primary color
|
[2]=2,
|
||||||
-- 15: highlight white (all layers)
|
[7]=7,
|
||||||
--
|
[14]=14,
|
||||||
-- 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 = {
|
phin_uw_pal = {
|
||||||
[0]=1, 0, 130, 140, 4, 5, 6, 13, 8, 9, 10, 132, 131, 12, 141, 7
|
[2]=130,
|
||||||
|
[7]=13,
|
||||||
|
[14]=141,
|
||||||
}
|
}
|
||||||
identity = {
|
identity = {
|
||||||
[0]=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
[0]=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||||
@ -490,8 +474,8 @@ function setup_arcade_pal()
|
|||||||
memset(0x5f79,0xff,7)
|
memset(0x5f79,0xff,7)
|
||||||
pal()
|
pal()
|
||||||
pal(identity, 2)
|
pal(identity, 2)
|
||||||
pal(game_nrm_pal, 1)
|
pal(phin_nrm_pal, 1)
|
||||||
pal(game_uw_pal, 2)
|
pal(phin_uw_pal, 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
phinstate_nrm = {
|
phinstate_nrm = {
|
||||||
|
Loading…
Reference in New Issue
Block a user