Skip to main content

Posts

Showing posts with the label UI

Play Test Write-up Number 2

The second play test of the Alpha build went well, lasting about 30 minutes of real play before an unexpected crash. There were a number of small issues and things that need to be re-balanced, but overall, the game was great fun. When comparing to the real-time version of the game from 6 months ago, there is a marked improvement is fun, and real moments of excitement, at least for this play tester. The mission chosen was one with multiple small groups of enemies scattered around the map. The player had limited artillery and air support, one unit of each. Both sides had a combat support unit for de-buffing opposing troops, and the enemy also had a general support unit for buffing friendly troops. A short time limit meant that the player had to split their troops to tackle several objectives at once. This made the mission quite interesting as several small combat arenas were active simultaneously. The small map size (32x32) wasn't a problem, it never felt that cramped, and at t...

Skynet

Ok, so it's not exactly skynet, but I have got my first AI state working, kind of. The first state is "HOLD" in which case the agent stays in place where they are and shoots at any unit that comes in range. When I started writing this module, I found that the existing method of triggering actions wasn't good enough to allow the AI to choose the best weapon or target. It worked by simply sending a command to the unit to trigger the currently selected action. If the action is valid, it triggered, if not it didn't. That's fine for play controlled units, as that's all they need to do. But AI needs to know in advance if the action is valid. The player can get that info from UI feedback, but that wasn't available to the AI player. There were three problems: 1. The UI feedback duplicated code in the action trigger function. These  two sets of code could get out of phase so that UI feedback was wrong. 2. The action trigger didn't give enough ...

Map screen designs

I've been working some more on the map window. Right now you can only see the base, it doesn't show items, enemies or even doors on the map yet. These would be decals. In the top window you can see the modified result of last night's tile based map. It looks good but there are some visual artifacts related to the problems I encountered yesterday, and as well it takes much more code and time to calculate. The second window uses a cheap trick to fake an beveled look from a smoothed version of the 32x32 map. It uses black to mask unexplored areas. Finally the third version is meant to look like a had drawn map. I'm using a cross hatching texture to distort it and unexplored areas are shown as blank map paper. There's going to be a mechanic in game where you need to use some paper every level in order to activate the map for that level. From there it will fill it in automatically. Paper will be pretty rare so it might be worth keeping it safe for the more com...

Viewports

Treasures of the deep dwellers is not a triple A game. It's going to be pretty old fashioned, with a small viewport and a map on the same screen. Much of the rest of the screen is going to play host to the UI which will have a lot of the stuff you need all on one screen. I love the great graphics of modern games like Legend of Grimrock, but the blender game engine isn't really up to the task of making games of that caliber. I also don't have that much time to devote to asset creations, meaning my game simply wouldn't look as good even if I was as talented as the guys from the major studios. Anyway, after working on the viewports I found happily that it greatly increases the performance of the game. Rasterizer usage is way down, and the viewports mechanism also allows people with slower computers to reduce the resolution of the viewport without changing the main window. If you wanted you could ramp it way up too and enjoy my dated graphics. After a few tries I ...

Modernizing the UI.

I'm revisiting the vehicle editor currently, partly because of some issues what have cropped up with how vehicles are saved and loaded. If I'm going to go back and dig in to it that deeply, it's better to rewrite it.. and update the visual elements at the same time. Here's a preview of some of the elements of the UI, I've simplified and cleaned them up a little. I think it looks better already. On the writing front I blocked out the chapters for the story, I'm pretty happy with it. This is the first time I've approached writing like this, with writing a chapter summary for each chapter and then going back and expanding the scenes to fill in the chapter. It makes much more sense than just starting writing from page one and going with the flow. That's why all my previous stories failed probably. :)

Happy New Year!

Happy New Year! It's hard to believe I started the germ of an idea that became my current project over 2 and a half years ago! Over the last few weeks I've done a lot of work to get the UI up and running and to get infantry movement modes functioning. You can watch my latest video Diary here . And here's a GIF of the infantry movement modes and UI status bar in action:

More Health Bars

Something I didn't point out yesterday was that the status icons only display when the specific status is valid. You won't see them most of the time. I decided to go with more transparent health bars in the end, the previous version looked nice and crisp, but it was too obvious, it preoccupied the eye, taking it away from what's really happening on screen. The new version is a little less obtrusive, there will be different color schemes available depending on your faction, or your personal preference. The rectangle with an "X" in it is the state icon. I've chosen 4 icons to show which state / stance (aggressive, sentry, defending, flanking) the unit is set to. I'll have to change the control buttons to match these new icons though otherwise it could be confusing.

Health Bars

Today I implemented health bars, which seems like an easy thing to do, but in a game like this health bars need to display quite a lot of information without becoming overwhelming. I'm not quite happy with them yet, but I'm getting there: There are 5 elements to look at here: The first is the health bar, a simple green bar with a black background. I'm not sure I like the shad of green though. Also there may be multiple health bars for vehicles to show engine damage, crew casualties etc... or I may leave that up to the info-icons. The second bar is the red one, this is the shock bar. As a unit comes under fire they will suffer shock. If the shock bar is too high the unit will become pinned. Enemy units might run away too. The bar will drop down naturally depending on the experience of the troops. Some other actions can clear the bar too. The third element is the group number. Using control and number keys you can set selection groups, and then select units by pre...

Engagement distances.

Today I did some work on the mini-map. It's working great. Later I'll be using some textures to make it look better, but for now it's just in the testing phase. You can already see that it shows the location of friendly units and their viewing range. Line of sight is currently dealt with as a radius only. I've thought of using obstacles to block sight but I think it's one of the things that was really unpopular with the original blitzkrieg. When an enemy was shooting at you but you couldn't see it to shoot back or even guess where it was. Very realistic, but also highly annoying. I think there's going to have to be a compromise. If something is far beyond your line of sight, you can't see it (though it might see you). If something is blocked by a building, you might see it, but can't shoot it. You need to get a direct line of sight. I'm also thinking of making out of range or blocked units invisible but represented by a question ma...

UI buttons.

UI design, and 2d artwork in general is one of my weaknesses. I'm trying to improve my work in this area and one thing I've been told is that it looks better to have cleaner textures, not so much grunge as I've been adding. Also thinner borders with more room for the icons. Here's a mock-up of the buttons I've been working on: The top ones are deactivated or not clicked, the bottom ones are when something is selected or clicked. I think they look pretty good, even when small on screen. Let's compare them to some other games: One game UI I like the look of is "Order of battle". The icons look clean, the faded paper texture is nice. It's similar to the UI adopted for the Blitzkrieg spin off, Stalingrad: I like this three tone effect. it doesn't detract too much from the main game action and it's pretty easy to tell one icon from another even if it's not easy to tell what they mean. The blitzkrieg 3 UI goes back to...

Vinland UI

Starting work now on the UI for the game. I need to get on with this as it's going to handle controls for things like changing infantry formations, giving orders to your units, targeting and combat etc... Here's an early version of the UI command buttons: The commands will also be accessible by hotkey. For example the first 4 are A, S, D, F: 1. Attack, 2. Sentry, 3. Defend and 4. Flank. These will set the overall state of the selected units. Attack will make the unit move to the selected destination or enemy, trying to shoot whenever possible. Sentry will go in to observation mode and for infantry they will go prone. Tanks will open their hatches to get a better look around. They won't attack unless first attacked, and will get a better visual range in this mode. You can use the ambush mode as well (second row, number 6), in which case they won't get the visual bonus, but will be harder to spot. Defenders will try to turn automatically to face the nearest...

Radial menus

A lot of work this week, but you can't really see any of it. I've been setting up the interface between the player and all the controls. Now I have a way of entering any kind of command I need in a way which is (IMHO) pretty easy to get to grips with. Here's the early concept: [radial menu with two levels] This was my first concept, that you would use the radial menu to switch to a non-game state and from there you could use direction keys and space to set up various parts of the game. But I thought it would be better if the radial menu could be expanded with multiple layers to handle things directly in game without entering a non-game state. So now you can control the camera, perform actions and feats, give orders, switch characters, set default AI behavior and other things right in the game. [8 level radial menu] And all layers lead back to the main layer, so hopefully you can't get lost in the menus. Some interactions though still need to enter ...

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...

More UI concepts.

I've been doing some coding, nothing to show right now, but it's essential stuff. You know, the stuff that doesn't show up right away in game, but lays the ground work for actually being able to do stuff like attack and pick things up... As part of that I'm still working towards a working concept for the UI. There's the portrait (1) which tells you which character this is. Next (2) is the stats. Simple outline here, you can get more info by clicking on the portrait, but here you can see health, focus, fatigue and experience. Here (3) is the action buttons. These are contextual and change depending on character or target situations. The target window (4) is an important one. this could be a monster, or it could be some gear on the floor, or a door or another player. You can click here to get more info about it. The available actions will change depending on the type of target. Because you can have multiple characters selected at any one time, I need a way ...

UI experiments and default zoom.

After some feedback about the game in it's current state, it's obvious that the camera was zoomed out too much and the level textures are too high contrast. That's actually something I've talked about before, when talking about how I was going to rework the tile set textures to be lower contrast. The final tilesets will be quite low contrast and perhaps a little flat and boring, but that was always part of the plan. The background is not supposed to be the star of the show. Take a look at this, it's one of my favorite Korean traditional paintings. The background is just background, the figures stand out, except of course for the two guys hiding behind the rocks. :) The artist has used the plain texture of the paper as an element of the painting, not to be covered up, but to be masked and veiled, being here a tree and there a rock and elsewhere the skin of a bathing woman. I've tried to show a little of how the game would look like with low contrast bac...

Props, Tooltips and Animated Doors.

From now on I hope to set a routine of releasing short video updates on progress. I've pushed through the pathfinding and most of the movement AI programming. I'm pretty comfortable with how the agents are working out. I made some changes to the A star algorithm to make it faster and generate better routes. It's now possible to add props to the game, they block movement and can be moused over for some feedback about what they are, but they can't contain anything yet. I think I should probably work on the inventory and item system next. Once a player can pick things up and equip them we can get started on prototyping combat. Stats will stay rigid at first, levels and skills will come later. Click the image for a link to the video blog. I also did some work on my 3d design work flow. I had been baking textures on to my characters and then touching them up in the GIMP, but I learned a bit about projection painting and after trying it I found it's a good fit fo...

Making comparisons.

After several weeks I've finally got back on the project. I spent some time on another game which may help supply some graphical effects later, as well as perhaps speeding up loading time, if I can work out the bugs. Anyway, I also spent some time playing some classic D&D games to get a feel for what's good and bad about the genre. Temple of Elemental evil. Short and sweet, one of my all time favorites, it has its flaws but I really enjoyed it. It still looks really nice too, but I could wish for more kinds of weapons and armor. Baldur's gate. Perhaps it's because the original was designed for a low res monitor, but I couldn't really like this one visually. The backgrounds are nicely rendered, but the big glowing circles surrounding the players were too intrusive, and the method of showing player damage was horrible. Some things I want: Characters who are easy to differentiate on screen and have personality. That means having some ite...

Starting work on the user interface.

I've finally had some time to spend on coding so I've moved forward with player movement and added the beginning of a player UI. Right now you can see the player's health bar and status light, showing who is selected and who has movement points or actions still to perform. These are going to be essential for the next stage, the beginning of combat. I've learned a lot about tile set design too, notably not to make the door recesses too deep, as it makes it hard to find characters or objects which are in a doorway. I've also worked on camera control so you can tilt the camera in to an overhead view to get a really classic roleplaying game feel. I reworked footprints so they are dependent on player actions, they will look much more natural now. You can see the new version in the video:  You can see the health bar shows fortitude, focus and stamina in yellow, cyan and magenta colors. Having three main types of health bar will not be strange to elder scro...