Compare commits
No commits in common. "6edbb30f1c2100cd72f14cd0ba053bc613cfa933" and "23c6822191ac0db10c55faf1500c733a44d1228f" have entirely different histories.
6edbb30f1c
...
23c6822191
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
@ -17,11 +17,8 @@ function process_player(state)
|
||||
input_action { name = "down", control = "S" }
|
||||
input_action { name = "right", control = "D" }
|
||||
|
||||
-- local right = vec3_norm(vec3_cross(state.player.camera_direction, { x=0, y=1, z=0 }))
|
||||
-- local up = { x = right.z, y = right.y, z = -right.x }
|
||||
|
||||
local right = { x=-1, y=0, z=0 }
|
||||
local up = { x=0, y=0, z=1 }
|
||||
local right = vec3_norm(vec3_cross(state.player.camera_direction, { x=0, y=1, z=0 }))
|
||||
local up = { x = right.z, y = right.y, z = -right.x }
|
||||
|
||||
local direction = { x = 0, y = 0 , z = 0 }
|
||||
|
||||
@ -43,14 +40,6 @@ function process_player(state)
|
||||
end
|
||||
|
||||
state.player.position = vec3_add(state.player.position, vec3_scale(direction, state.player.speed / (60 / state.blast.bpm)))
|
||||
|
||||
local wobble = sinease(24, state.time - state.beat * (60 / state.blast.bpm) , (60 / state.blast.bpm) / 1.5, 0)
|
||||
|
||||
draw_billboard {
|
||||
texture = "art/creatures/peanut/" .. string.format("dance-%s.png", pingpong(state.beat, 3)),
|
||||
position = { x = state.player.position.x, y = wobble / 64, z = state.player.position.z },
|
||||
size = { x = 1, y = (64 + wobble) / 64 },
|
||||
}
|
||||
end
|
||||
|
||||
function game_tick()
|
||||
@ -64,7 +53,7 @@ function game_tick()
|
||||
camera_direction = { x=-math.sin(math.pi / 4), y=-1, z=math.cos(math.pi / 4) },
|
||||
}
|
||||
}
|
||||
start_blasting("mod22")
|
||||
start_blasting("mod171")
|
||||
end
|
||||
|
||||
local state = ctx.udata
|
||||
|
Loading…
Reference in New Issue
Block a user