[Add] Adding a nice sprite into the mix.
This commit is contained in:
parent
6241b32288
commit
51502ccd3a
BIN
Data/Img/Player.png
Normal file
BIN
Data/Img/Player.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 117 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1005 B |
@ -12,7 +12,7 @@ Player::~Player(void) {
|
||||
void Player::Prepare(void) {
|
||||
_player = new Sprite();
|
||||
_playerTexture = new Texture();
|
||||
_playerTexture->Load("../Data/Img/test.png");
|
||||
_playerTexture->Load("../Data/Img/Player.png");
|
||||
_player->SetTexture(_playerTexture);
|
||||
_player->SetPosition(Vec2(800/2, 600/2));
|
||||
_player->SetScale(Vec2(4.5f, 4.5f));
|
||||
|
Loading…
Reference in New Issue
Block a user