... day 2
Hello and welcome back!
This post is a day late! I took a day off and went go-karting! Brilliant fun for the day. I'm reliefed to report no injuries, although I'm sore and walking around with my arms taught like a Tyrannosaurus Rex!
Miner
The Miner has been added!
- Implemented movement per tile not pixel (for now).
- Miner cannot pass over impassable tiles, i.e. Granite.
- No collision detection between him and the Spiders (yet).
- No animation.
Spiders
The spiders have now been given independent thought! Although, very rudimentary, i've implemented a very simple AI algorithm. It will be improved, to create different 'breeds' of spider. I.E. different characteristics and aggression, such as chasing, stalking, sneaky, shy, etc will be assigned.
The initial algorithm is extremely simple (for now):
- Place the forward, left and right position into an array.
- Loop whilst there are positions in array.
- Randomly pick one of the new positions.
- If valid, move into new position and finish looking.
- Remove move and try another.
- If no valid move found:
- turn the spider to face the opposite direction.
The result
The Spiders and Miner are now happily moving around the maze!
Next
The next plan of action is to add gold nuggets to the maze floor and cover them in soil. The Miner will be required to dig the gold out, as he moves into each tile.
I'm deliberately ignoring collisions between the Miner and Spiders because I would like all the Actors available in the maze first.
Smooth movement betweeen tiles and the animation of the sprites will be added later, because they are 'nice to have' rather than 'need to have'. The mechanics of the game are more important than asthetics; for now.
Thank you for taking the time to read this!
NOTE: Speedi Tech Ltd & Crazy Career Games reserves copyright to all artwork shown. You may not replicate it, without strict permission.
- If you appreciate this post, and would like more, please rememer to upvote this post!
- Do follow me!
- If you have any questions or requests, please don't be shy! Use the comment section below. I'd love to hear from you!
Nice i'll follow and track the progress!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi Nerddad, its great to hear from somebody! I'm worried that my time is being wasted here rather than coding. It's a way of allowing me to communicate my progress to the team, whilst providing to a wider audience too. The problem seems to be Steemit, which is very hard to drum up any followers. It's also frustrating to see external viewers increasing the view count, but don't contribute to upvotes etc. Still, I'll complete this game and see how it fairs. I will also write the tutorials that show the tilemap and AI in action.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit