From 36c95e5273c415ef050506050e6f7da0b3e16d89 Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Sat, 2 Oct 2021 20:03:06 +0200 Subject: [PATCH] GameEnt: Change casing of entities methods --- Example.GameLib/src/GameEnts.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Example.GameLib/src/GameEnts.c b/Example.GameLib/src/GameEnts.c index 706e37f..472f6b3 100644 --- a/Example.GameLib/src/GameEnts.c +++ b/Example.GameLib/src/GameEnts.c @@ -34,7 +34,7 @@ int EntityApplyGravity(Entity e) { return (1); } -void player_proc(Entity e, int ft) { +void Player_Proc(Entity e, int ft) { float acel = 8.0f; float maxVel = 30.0f; float jumpVel = 50.0f; @@ -99,14 +99,14 @@ void player_proc(Entity e, int ft) { e->A = 0; } -void player_postproc(Entity e, int ft) { +void Player_PostProc(Entity e, int ft) { // Scroll View GameLib_MoveToPos(e->pos, 0.6f); // GameLib_MoveToPos(e->pos, 1.0f); } -int player_collision(Entity ent, Entity ent2, float t, vec2 n) { +int Player_Collision(Entity ent, Entity ent2, float t, vec2 n) { if (n[1] < 0 && fabs(n[1]) > fabs(n[0])) { ent->A = 1; } @@ -148,9 +148,9 @@ void GameEnts_Init() { ent_Player->flags = EntityFlag_Collision | EntityFlag_Overlap; ent_Player->zorder = 0; AnimPlay_SetImg(&ent_Player->anim, img_player); - ent_Player->proc = player_proc; - ent_Player->postproc = player_postproc; - ent_Player->collision = player_collision; + ent_Player->proc = Player_Proc; + ent_Player->postproc = Player_PostProc; + ent_Player->collision = Player_Collision; ent_Player->mass = 1.0f; ent_Player->radius = 12; ent_Player->width = 24;