tangled
alpha
login
or
join now
stanislaw.malolepszy.org
/
goodluck
1
fork
atom
A hackable template for creating small and fast browser games.
1
fork
atom
overview
issues
pulls
pipelines
The player faces right
Staś Małolepszy
2 years ago
f46c1ff8
16369918
+2
-2
1 changed file
expand all
collapse all
unified
split
Platformer2D
scenes
sce_platforms.ts
+2
-2
Platformer2D/scenes/sce_platforms.ts
···
2
2
import {children} from "../components/com_children.js";
3
3
import {control_always2d} from "../components/com_control_always2d.js";
4
4
import {draw_arc, draw_rect} from "../components/com_draw.js";
5
5
-
import {local_transform2d, set_position} from "../components/com_local_transform2d.js";
5
5
+
import {local_transform2d, set_position, set_scale} from "../components/com_local_transform2d.js";
6
6
import {move2d} from "../components/com_move2d.js";
7
7
import {spatial_node2d} from "../components/com_spatial_node2d.js";
8
8
import {Game, WORLD_CAPACITY} from "../game.js";
···
56
56
}
57
57
58
58
// Player.
59
59
-
instantiate(game, [...blueprint_player(game), set_position(0, 7)]);
59
59
+
instantiate(game, [...blueprint_player(game), set_position(0.5, 7), set_scale(-1.5, 1.5)]);
60
60
}