Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(DrawStatus) Панель со статусом игры #21

Open
mchernigin opened this issue Apr 1, 2024 · 0 comments
Open

(DrawStatus) Панель со статусом игры #21

mchernigin opened this issue Apr 1, 2024 · 0 comments
Assignees

Comments

@mchernigin
Copy link
Member

Функция рисует панель сверху экрана со статусом игры. Свобода фантазии!

В самой панели должны отображаться следующие параметры:

  • Количество жизней игрока. Для этого следует использовать текстуру сердечка, которая сохранена в контексте игры. Для того, чтобы получить саму текстуру сердца можно написать
    Texture heart_texture = ctx.textures_storage[ctx.heart->hash];
    После этого текстуру можно использовать функцию DrawTexture.
  • Текущий счёт игрока. Он хранится в поле ctx.score.
  • Время с начала игры. Оно хранится в поле ctx.time в миллисекундах (!!!) Желательно выводить время отдельно в минутах и секундах.

При выполнении этого задания у вас есть возможность добавить текстуру сердечка Assets/heart.png

@mchernigin mchernigin converted this from a draft issue Apr 1, 2024
@vasthecat vasthecat moved this to Todo in MIT Game 2024 [1] Apr 11, 2024
@darienli darienli self-assigned this Apr 22, 2024
@nonseww nonseww moved this from Todo to In Progress in MIT Game 2024 [1] Apr 22, 2024
@ArtemFilin9 ArtemFilin9 moved this from In Progress to Done in MIT Game 2024 [1] May 8, 2024
@darienli darienli moved this from Done to Todo in MIT Game 2024 [1] May 29, 2024
@darienli darienli removed their assignment May 29, 2024
@Lifilim Lifilim removed the status in MIT Game 2024 [1] May 30, 2024
@Lifilim Lifilim moved this to Todo in MIT Game 2024 [1] May 30, 2024
@Lifilim Lifilim self-assigned this May 30, 2024
@Lifilim Lifilim moved this from Todo to In Progress in MIT Game 2024 [1] May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

3 participants