Skip to main content

Nearing the end of player movement development.

I'm getting nearer to finishing the current part of development, handling player movement during the movement phase.

There's still a few parts that I'll have to come back to later, but for now the player's characters move as they should. They don't walk through walls, they don't fall in to pits or walk on water.


Here you can see a small party of adventurers.
Left clicking on an empty tile of the map will send the selected Character there if the path is valid. Left clicking on another Character will select that Character.

If the distance exceeds your normal movement range your character will run, if it exceeds it by double the amount you won't be given the option of moving there.

Improvements are needed, such as showing which character is selected. Being able to select characters by portrait if they are not on the screen (or using the in-game map).


For the next part of development I'm going to be saving a dungeon to disk and working from that dungeon each time. That will make it easier to track changes, compare results and continue the development arc.

I've planned carefully so that any one part of development can be carried out in any order without causing too much disruption, though the natural next step will be player and monster stats.

Once I have the ability to give stats to entities I'll be able to set them up with basic equipment for combat development. Monsters use most of the same code for movement as the players so it won't take much to set them up for movement, however I will have to give them a basic AI.

Here are some of the planned stages of development:
  • Basic player character and monster stats
  • Hand to hand combat Combat (+ Monster AI for that)
  • Ranged combat (+ Monster AI for that)
  • Magic (+ Monster AI for that)
  • Monster spawning
  • Player skills and development, leveling
  • In game UI (It's going to be quite minimal anyway, you'll get a lot of feedback from animations and player/monster behavior)
  • Inventory management and item usage (+ Monster AI for that)
  • Doors and keys
  • Map visibility
  • Traps
  • Secrets
  • Puzzles
  • Menu screens (and some graphics for them, probably some high poly versions of in game equipment laid out in still life)

Sigh, lots to do, but at least I've done a lot already. Most of those stages will be able to use some of the existing code so it's going to go a lot faster once I get going.

Before I go any further though I'm going to have to do some tests regarding the graphics for the game. There might be some big visual changes soon, but they're unlikely to affect the game play.

Comments

Popular posts from this blog

Advice needed on tilesets...

I need some advice on which is the best way to handle building the dungeon. Right now I'm using prefabs for my dungeon, they have a north south east and west section for each "room": The basic tileset. This has several advantages, and also several disadvantages. Firstly I can have curved rooms, I can have tunnels and other interesting shapes. The tilesets can look quite nice with a little work. On the other hand I can't easily get the navigation data before building the map and once the map has been built I can't make changes to the layout, like having active pit traps or believable secret doors. Although the rooms are interesting, they are quite repetitive, and it takes a lot of effort to make even a few different variations. Also rooms are constrained to one size. A newer version of the tileset with a lot of variant parts for making more interesting rooms. To create a tile set is a real headache too. Planning how to lay out the UVs, trying to cra...

Upstairs / Downstairs.

I've decided to make my prefabs multilevel. Later this should allow me to add pit traps and other great stuff. It also makes it easier to line up stairs so that you can exit them on the same co-ordinates where you entered them. The prefab editor is pretty much finished, it just needs some code for loading up prefabs from a saved dictionary, so that they can be checked or edited. The entries will need to be forwards compatible, so I'll be loading each tile and then translating the indexes to a new array, that way if I add extra indexes or extra info (like traps or puzzles) I'll be able to update existing prefabs to work with the new standard. Click for a video.

Video Diary 8

Things are moving along well, there's been a lot of progress on the action manager side of things. Actions have finally moved to the UI, so you can initiate actions by clicking the appropriate button. I've set up some dummy actions to show what happens visually when actions are taken, but the actual dice rolls and such are yet to be integrated. The UI objects are also being added, though some are non functional or empty at the moment. Click on the image to see this week's development video. Every time I add something big I also add about a dozen small things. Like the selection box visualization. Previously this was using render.drawline, and old fashioned Blender function which can be impossible to see at certain resolutions, or at certain frequencies. I replaced it with a function that adds planes of the right size and scale in the right location. I also made all characters a little bigger. I still need to do some work with vectors and final target locations t...