Javascript tile engine: NPC (inter)action
In this second article on NPC's, we'll add two NPC events: one that enables the player to talk to the NPC, and another that makes NPC's walk around randomly.
This section holds all the articles I've written over the years. If you're looking for something specific, try the tags page. Click on a title to go to the article.
In this second article on NPC's, we'll add two NPC events: one that enables the player to talk to the NPC, and another that makes NPC's walk around randomly.
Today we'll cover different tile sizes (no more fixed 16x16 pixels!), floating tiles and game speed. I'll also cover 'general' tiles, to make game development easier.
In this article I'll show you how you can (relatively) easily implement animated tiles. At the end of this article the engine will be able to draw flowing water and animated flowers.
In this article I'll cover NPC (Non-Player Character) basics, as well as some changes in the engine's core functions. In the end we'll be able to load NPC's into the engine and draw them on the screen.
In this article we'll implement data files. This means that we'll move the map data, tiles, models and scripts of any one map into a single file which we'll be able to load dynamically.