So the world is going to be made up of dungeons, yeah obviously. The dungeons will have been created from a simulation of AI dwarves starting from just two in a random area. I plan on creating some unique monsters that spawn in order to slow or stop the dwarves quest to build meaningful dungeons. Build in some magical items and of course hopefully some humorous history generated for NPCs, books, spells, and items in the dungeon crawl.
The world currently is all dirt except for a 5x5 area of grass where the dwarves will start out, need to add in minerals and rare metals etc. Also little hazards ;)
Tools I'm using:
- Java 8
- Eclipse
- BehaviorTree
- All current art done with Pixly for android
Heres a snippet from the Dwarves current behaviortree
public static AICreature createMaleDwarf(final World world) {InOrderSequenceroot = new InOrderSequence<>(); SelectorNodeisHealthy = new SelectorNode<>(); SelectorNodeisDanger = new SelectorNode<>(); isDanger.addChild(context -> {return world.findHostiles(context, context.getAwarenessDistance()).length > 0;}, isHealthy);Actionattack = context -> { return NodeStatus.FAILURE;};isHealthy.addChild(context -> {return context.getHealth() > 80;}, new LeafNode(attack)); LeafNodeisBored = new LeafNode<>(context -> { if (world.every(context, 0.3)) {world.moveToRandomAdjacent(context);}return NodeStatus.RUNNING;});root.addChild(isBored);root.addChild(isDanger);return new Dwarf(root, world.zero());}
Teaser
No comments:
Post a Comment