From 828df8b9bf1f05e00dfed18e7e7a562a46f2969a Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 28 May 2023 17:28:34 -0400 Subject: prettify --- src/enemies.c | 4 ++-- src/player.c | 8 ++++---- src/wall.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/enemies.c b/src/enemies.c index 388c05f..d4eb085 100644 --- a/src/enemies.c +++ b/src/enemies.c @@ -52,7 +52,7 @@ spawn_enemy(float x, float y) return cvec_enemy_t_push( enemy_collision_world, (enemy_t){ - .hp = 50.0, + .hp = 20.0, .move_speed = ((float)(rng % 3) + 1.0f) * 0.3f, .behavior = enemy_ai_follow, .weapon = { @@ -498,7 +498,7 @@ attempt_random_enemy_spawn( { spawn_cooldown -= rodeo_frame_time_get(); if (spawn_cooldown <= 0) { - spawn_cooldown += (float)rodeo_random_double_get() * 500.0f + 150.0f; + spawn_cooldown += (float)rodeo_random_double_get() * 1500.0f + 450.0f; return random_enemy_create(bounds); } return NULL; diff --git a/src/player.c b/src/player.c index 02c583c..3f0b100 100644 --- a/src/player.c +++ b/src/player.c @@ -55,8 +55,8 @@ init_player(void) player.collision_id = rodeo_collision_2d_world_item_create( &player_collision_world, (rodeo_collision_2d_world_item_t){ - .x = 100, - .y = 100, + .x = 1600/3, + .y = 900/3, .width = orc_size[0], .height = orc_size[1] } @@ -282,9 +282,9 @@ void player_bullet_resolver( ); player.hp -= 10; player.damage_timer = 0; - bullet_t *bullet = get_bullet_by_id(bullet_collision->id); - bullet_destroy(bullet); } + bullet_t *bullet = get_bullet_by_id(bullet_collision->id); + bullet_destroy(bullet); } diff --git a/src/wall.c b/src/wall.c index d3c9d3f..46b2401 100644 --- a/src/wall.c +++ b/src/wall.c @@ -136,7 +136,7 @@ void draw_level(void) { rodeo_rectangle_t rect = (rodeo_rectangle_t){0,0,1600,900}; - rodeo_texture_2d_draw(&rect, &rect, NULL, &wall_texture); - rodeo_texture_2d_draw(&rect, &rect, NULL, &floor_texture); + rodeo_texture_2d_draw(&rect, &rect, &(rodeo_color_RGBAFloat_t){ .array = {0.96f, 0.41f, 0.1f, 1.0f} }, &wall_texture); + rodeo_texture_2d_draw(&rect, &rect, &(rodeo_color_RGBAFloat_t){ .array = {0.52f, 0.31f, 0.73f, 0.33f} }, &floor_texture); } -- cgit v1.2.3