diff options
| author | Prakxo <87568477+Prakxo@users.noreply.github.com> | 2024-08-12 19:36:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-12 10:36:07 -0700 |
| commit | eb99af89c88005c8e300b76e1b5d93467b98aafd (patch) | |
| tree | d888a89809981f43e791ba63351e2ae2d5f239ab /src/code/m_actor.c | |
| parent | c3164cd99c3eb764a63171253af14126be77b1e7 (diff) | |
m_kankyo OK (#207)
* implement kankyo
* m_kankyo OK
Diffstat (limited to 'src/code/m_actor.c')
| -rw-r--r-- | src/code/m_actor.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/code/m_actor.c b/src/code/m_actor.c index 0ed22bb..53c22f9 100644 --- a/src/code/m_actor.c +++ b/src/code/m_actor.c @@ -60,7 +60,7 @@ void Actor_position_move(Actor* actor) { speedRate = game_GameFrame_2F; - kankyo->unk_C0(actor); + kankyo->nature.proc(actor); actor->world.pos.x += actor->velocity.x * speedRate + actor->colStatus.displacement.x; actor->world.pos.y += actor->velocity.y * speedRate + actor->colStatus.displacement.y; @@ -1111,26 +1111,26 @@ Hilite* HiliteReflect_light_init(xyz_t* object, xyz_t* eye, xyz_t* lightDir, Gra Hilite* Setpos_HiliteReflect_init(xyz_t* object, Game_Play* game_play) { xyz_t sp24; - sp24.x = game_play->kankyo.unk_02; - sp24.y = game_play->kankyo.unk_03; - sp24.z = game_play->kankyo.unk_04; + sp24.x = game_play->kankyo.sunLight.lights.diffuse.x; + sp24.y = game_play->kankyo.sunLight.lights.diffuse.y; + sp24.z = game_play->kankyo.sunLight.lights.diffuse.z; return HiliteReflect_init(object, &game_play->view.eye, &sp24, game_play->state.gfxCtx); } Hilite* Setpos_HiliteReflect_xlu_init(xyz_t* object, Game_Play* game_play) { xyz_t sp24; - sp24.x = game_play->kankyo.unk_02; - sp24.y = game_play->kankyo.unk_03; - sp24.z = game_play->kankyo.unk_04; + sp24.x = game_play->kankyo.sunLight.lights.diffuse.x; + sp24.y = game_play->kankyo.sunLight.lights.diffuse.y; + sp24.z = game_play->kankyo.sunLight.lights.diffuse.z; return HiliteReflect_xlu_init(object, &game_play->view.eye, &sp24, game_play->state.gfxCtx); } Hilite* Setpos_HiliteReflect_light_init(xyz_t* object, Game_Play* game_play) { xyz_t sp24; - sp24.x = game_play->kankyo.unk_02; - sp24.y = game_play->kankyo.unk_03; - sp24.z = game_play->kankyo.unk_04; + sp24.x = game_play->kankyo.sunLight.lights.diffuse.x; + sp24.y = game_play->kankyo.sunLight.lights.diffuse.y; + sp24.z = game_play->kankyo.sunLight.lights.diffuse.z; return HiliteReflect_xlu_init(object, &game_play->view.eye, &sp24, game_play->state.gfxCtx); } |
