Arrow keys to move. Press to place/delete blocks. (Blocks currently don't serve a purpose) Space to alter between "place" and "delete". The AI has 3 different modes: wander, aggressive, and attack. -Aggressive is when the player is in the sight range (8 tiles). It goes towards the player. -If the AI gets right near the player, it gets into the Attack mode. It stays still and "attacks" the player. -Wander is when the player isn't in sight range. The enemy randomly selects a target location and goes towards it until it either reaches there (which it then selects a new target location) or "sees" you.
I was inspired by the AI's of Minecraft mobs. I will add a pathfinding system so that the enemy doesn't have to phase through the blocks [hopefully :)] This probably doesn't even count as AI lol (But it might become one once/if I code the pathfinding system I just mentioned about)