mirror of https://git.sr.ht/~kikoodx/momento
22 lines
523 B
C
22 lines
523 B
C
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
/* Copyright (C) 2021 KikooDX */
|
|
|
|
#include "conf.h"
|
|
#include "level.h"
|
|
#include "player.h"
|
|
#include <gint/display.h>
|
|
|
|
extern struct Level level;
|
|
|
|
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);
|
|
dprint(2, 2, C_WHITE, "%d", level.gold);
|
|
}
|