1
0
Fork 0
mirror of https://git.sr.ht/~kikoodx/momento synced 2024-06-05 10:11:25 +02:00
momento/src/player/draw.c

18 lines
434 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2021 KikooDX */
#include "conf.h"
#include "player.h"
#include <gint/display.h>
extern bopti_image_t bimg_player;
extern bopti_image_t bimg_burst;
void player_draw(struct Player player)
{
dimage(player.x, player.y, &bimg_player);
if (player.air_state == AirRising &&
player.jumps_left < AIR_JUMPS)
dimage(player.x, player.y + PLAYER_HEIGHT, &bimg_burst);
}