mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-26 15:58:12 +00:00
fixing rotation
This commit is contained in:
@@ -44,6 +44,6 @@ namespace RAY {
|
||||
|
||||
void Texture::drawOn(RAY::Window &)
|
||||
{
|
||||
DrawTextureEx(*this, this->_position, 0, this->_scale, this->_color);
|
||||
DrawTextureEx(*this, this->_position, this->_rotation, this->_scale, this->_color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,9 +75,9 @@ namespace BBM
|
||||
//animation.setAnimIndex(5);
|
||||
});
|
||||
|
||||
scene->addEntity("background image")
|
||||
.addComponent<Drawable2DComponent, RAY::Texture>(true, "assets/background_game.png", false, 2, 0)
|
||||
.addComponent<PositionComponent>();
|
||||
/* scene->addEntity("background image")
|
||||
.addComponent<Drawable2DComponent, RAY::Texture>(true, "assets/background_game.png", false, 3, 0)
|
||||
.addComponent<PositionComponent>();*/
|
||||
scene->addEntity("camera")
|
||||
.addComponent<PositionComponent>(8, 20, 7)
|
||||
.addComponent<CameraComponent>(Vector3f(8, 0, 8));
|
||||
|
||||
Reference in New Issue
Block a user