Move player foot hitbox under the feet
This commit is contained in:
parent
91dfbd8db9
commit
1ebc08a294
16
switcher.c
16
switcher.c
|
@ -144,16 +144,16 @@ static char *stages[] = {
|
||||||
" A 1 111"
|
" A 1 111"
|
||||||
"@g "
|
"@g "
|
||||||
"gd ",
|
"gd ",
|
||||||
|
" @ "
|
||||||
|
"AggggggggB"
|
||||||
" "
|
" "
|
||||||
" "
|
" "
|
||||||
|
"1ggBgggCg1"
|
||||||
" "
|
" "
|
||||||
|
"gg2ggg3333"
|
||||||
" "
|
" "
|
||||||
" "
|
" ! "
|
||||||
" "
|
" ggg ",
|
||||||
" "
|
|
||||||
" "
|
|
||||||
" "
|
|
||||||
" ",
|
|
||||||
" "
|
" "
|
||||||
" "
|
" "
|
||||||
" "
|
" "
|
||||||
|
@ -416,8 +416,8 @@ static void update_stage(struct timespec now, struct timespec dt_timespec) {
|
||||||
|
|
||||||
px = player_x;
|
px = player_x;
|
||||||
py = player_y;
|
py = player_y;
|
||||||
size_t topbottom_left_cx = px;
|
size_t topbottom_left_cx = px + 1;
|
||||||
size_t topbottom_right_cx = px + TILE_SIDE - 1;
|
size_t topbottom_right_cx = px + TILE_SIDE - 1 - 1;
|
||||||
size_t top_cy = py - 1;
|
size_t top_cy = py - 1;
|
||||||
size_t bottom_cy = py + TILE_SIDE;
|
size_t bottom_cy = py + TILE_SIDE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue