feat: helper for repl entity create
This commit is contained in:
parent
ad9042e047
commit
92cf4015b4
|
@ -26,7 +26,9 @@ instance.context.createBarrel = () => {
|
|||
instance.context.addEntityToRoom = (entity) => {
|
||||
game.room.addEntityToLayer(entity, 'everything');
|
||||
};
|
||||
|
||||
instance.context.ab = () => {
|
||||
instance.context.addEntityToRoom(instance.context.createBarrel());
|
||||
}
|
||||
|
||||
function createGame() {
|
||||
game = new Game();
|
||||
|
|
Loading…
Reference in New Issue
Block a user