add little parallax

This commit is contained in:
Askou
2021-06-17 18:00:34 +02:00
parent 2ff8230c35
commit da448c49c9
5 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ namespace BBM
.addComponent<Drawable2DComponent, RAY2D::Text>("", 60, RAY::Vector2(), ORANGE);
scene->addEntity("background image")
.addComponent<Drawable2DComponent, RAY::Texture>(true, "assets/background.png", false)
.addComponent<PositionComponent>();
.addComponent<PositionComponent>()
.addComponent<TagComponent<Background>>();
MapGenerator::loadMap(16, 16, MapGenerator::createMap(16, 16, hasHeights), scene);
return scene;
}