Skip to content

Commit

Permalink
Update PlayState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 15, 2024
1 parent cac7097 commit 4543d30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ class PlayState extends FlxState {
bg.scrollFactor.set();
add(bg);

add(background.loadMapFromCSV(Paths.csv('levels/test-background'), Paths.image('tiles_bg'), 16, 16));
background = new FlxTilemap();
background.loadMapFromCSV(Paths.csv('levels/test-background'), Paths.image('tiles_bg'), 16, 16);
background.scrollFactor.x = background.scrollFactor.y = .5;
add(background);

map = new FlxTilemap();
map.loadMapFromCSV(Paths.csv('levels/test-map'), Paths.image('tiles'), 16, 16);
Expand Down

0 comments on commit 4543d30

Please # to comment.