Basic gameplay?

This commit is contained in:
2026-03-07 13:01:52 -03:00
parent 3074316606
commit 5218fab55a
15 changed files with 239 additions and 28 deletions
+3 -2
View File
@@ -34,11 +34,12 @@ export function create_player(world: ClientWorld) {
// TODO: actual player ids
player.add(new PlayerInventory(player.id));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:pickaxe", 1, 1));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:sword", 1, 1));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:axe", 1, 1));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:hoe", 1, 1));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:watering_can", 1, 1));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:axe", 1, 1));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:sword", 1, 1));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:bomb", 64));
player.get(PlayerInventory)!.container.add_item(new ItemStack("bworld:tomato_seeds", 64));
player.add(new Camera(-100, -100));
world.add_entity(player);