TIL
This commit is contained in:
1 parent
0fa915072d
commit
c7be057015
4 files changed
+15
-11
No files matched your search
@@ -43,7 +43,7 @@ animate((entity, ctx, delta) => {
|
||||
});
|
||||
|
||||
process((entity, delta) => {
|
||||
entity.position.x += entity.stuff * 0.05 * delta;
|
||||
entity.position.x += entity.stuff * 0.5;
|
||||
if (entity.position.x > viewport.canvas.width - 16) {
|
||||
entity.stuff = -1;
|
||||
entity.currentAnimation = "walk";
|
||||
|
||||
Reference in new issue
Block a user