Add inventory

This commit is contained in:
asraelite 2018-03-05 15:05:55 +00:00
parent 548fb99c8b
commit 469121e18a
8 changed files with 200 additions and 22 deletions

View file

@ -5,6 +5,7 @@ import GuiFrame from './frame.mjs';
import GuiImage from './image.mjs';
import GuiButton from './button.mjs';
import GuiEdit from './edit.mjs';
import GuiInventory from './inventory.mjs';
import * as events from '../game/events.mjs';
import {state} from '../game/index.mjs';
@ -53,5 +54,11 @@ export function game() {
edit.x -= 10;
edit.y += 10;
let inventory = new GuiInventory(0, 0, 0, 0);
shadow.append(inventory);
inventory.posRelative({x: 0, y: 0, w: 0.4, h: 0.6});
inventory.x += 10;
inventory.y += 10;
return shadow;
}