demo update
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
# _____ ____ ___
|
||||
# | \/ ____| |___|
|
||||
# | | | \ | |
|
||||
#-----------------------------------------------------------------------
|
||||
# Copyright 2022, tyra - https://github.com/h4570/tyra
|
||||
# Licensed under Apache License 2.0
|
||||
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <tyra>
|
||||
#include <memory>
|
||||
|
||||
using std::unique_ptr;
|
||||
using Tyra::Sprite;
|
||||
using Tyra::Texture;
|
||||
using Tyra::TextureRepository;
|
||||
|
||||
namespace Demo {
|
||||
|
||||
class Hud {
|
||||
public:
|
||||
Hud(TextureRepository* repo);
|
||||
~Hud();
|
||||
|
||||
TextureRepository* repo;
|
||||
Texture* hpTexture;
|
||||
unique_ptr<Sprite> hpSprite;
|
||||
Texture* crosshairTexture;
|
||||
unique_ptr<Sprite> crosshairSprite;
|
||||
};
|
||||
|
||||
} // namespace Demo
|
||||
Reference in New Issue
Block a user