Cut lib/render into its own package, change all imports
This commit is contained in:
parent
3824c9121a
commit
1d099b83f5
|
@ -16,12 +16,12 @@ function main() {
|
||||||
Vx = 0;
|
Vx = 0;
|
||||||
Vy = 0;
|
Vy = 0;
|
||||||
|
|
||||||
if (ev.Right.Now) {
|
if (ev.Right) {
|
||||||
if (!Self.IsAnimating()) {
|
if (!Self.IsAnimating()) {
|
||||||
Self.PlayAnimation("walk-right", null);
|
Self.PlayAnimation("walk-right", null);
|
||||||
}
|
}
|
||||||
Vx = playerSpeed;
|
Vx = playerSpeed;
|
||||||
} else if (ev.Left.Now) {
|
} else if (ev.Left) {
|
||||||
if (!Self.IsAnimating()) {
|
if (!Self.IsAnimating()) {
|
||||||
Self.PlayAnimation("walk-left", null);
|
Self.PlayAnimation("walk-left", null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user