mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
make zombiez input faster
This commit is contained in:
parent
98312860a6
commit
a3234995db
1 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@ static void render_callback(Canvas* const canvas, void* ctx) {
|
|||
for(int i = 0; i < PROJECTILES_MAX; ++i) {
|
||||
Projectile* p = plugin_state->projectiles[i];
|
||||
if(p != NULL) {
|
||||
canvas_draw_circle(canvas, p->position.x, p->position.y, 3);
|
||||
canvas_draw_disc(canvas, p->position.x, p->position.y, 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -351,12 +351,12 @@ int32_t zombiez_game_app(void* p) {
|
|||
switch(event.input.key) {
|
||||
case InputKeyUp:
|
||||
if(plugin_state->player.position.y > (MIN_Y + 1)) {
|
||||
plugin_state->player.position.y -= 2;
|
||||
plugin_state->player.position.y -= 4;
|
||||
}
|
||||
break;
|
||||
case InputKeyDown:
|
||||
if(plugin_state->player.position.y < (MAX_Y - 1)) {
|
||||
plugin_state->player.position.y += 2;
|
||||
plugin_state->player.position.y += 4;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue