Move player foot hitbox under the feet

This commit is contained in:
Juhani Krekelä 2022-01-16 15:21:26 +00:00
parent 91dfbd8db9
commit 1ebc08a294
1 changed files with 8 additions and 8 deletions

View File

@ -144,16 +144,16 @@ static char *stages[] = {
" A 1 111"
"@g "
"gd ",
" @ "
"AggggggggB"
" "
" "
"1ggBgggCg1"
" "
"gg2ggg3333"
" "
" "
" "
" "
" "
" "
" ",
" ! "
" ggg ",
" "
" "
" "
@ -416,8 +416,8 @@ static void update_stage(struct timespec now, struct timespec dt_timespec) {
px = player_x;
py = player_y;
size_t topbottom_left_cx = px;
size_t topbottom_right_cx = px + TILE_SIDE - 1;
size_t topbottom_left_cx = px + 1;
size_t topbottom_right_cx = px + TILE_SIDE - 1 - 1;
size_t top_cy = py - 1;
size_t bottom_cy = py + TILE_SIDE;