Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Aug 18, 2023
1 parent 0165031 commit a2b8e0d
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/levels/commonObjects.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import Player from "../classes/Player";
import K from "../kaboom"


export const commonObjects = {
P: () => {
const player = new Player(
"dino",
{ x: K.width() / 2, y: K.height() / 2 },
100,
2
);
return player.sprite;
},
".": () => {
return null;
},
"O": () => [
K.sprite("obstacle"),
K.area(),
K.solid(),
]
};

0 comments on commit a2b8e0d

Please sign in to comment.