Tuesday, December 9, 2014

3DBuzz and Unity2D tutorials.

I've been following a tutorial by 3DBuzz on how to program Unity2D games.

You can find the youtube playlist HERE.

I've been a fan of 3DBuzz VTMs (Video Tutorial Module) for many years now. I was an active member on the forums and even participated on an online class for Houdini (from Side Effects).
It was a great time and I learned a lot from that website.

These Unity2D videos are very good. If you have no previous knowledge of programming before this, it can be a little overwhelming at some points, but it is definitely worth watching and following along. On the other hand if you already know some programming, some part might be a little to slow and explanations a little to long, and again, definitely worth watching, no matter how much programming you know, you always find something new to learn.

In my case I know how to program with AS3 and Javascript, so I already know some programming principles and how to do some things. Following along doing the C# coding has been very instructional and a very good way to get to know how to program in Unity with C#.

I still have a few videos more to do before I cross the finish line and already I'm happy with how it is coming along. This will be a great way of starting my Unity programming experience.

The plan is to finish with this tutorial, tweak some things and add some more components and mechanics to the game, and then I'll ask illustrator friends if they want to skin the game and bring it to a higher level.

I'm wondering how different will be doing some Unity3D scripting.

Thursday, April 3, 2014

A matter of Perspective

I'm working on some test graphics for a level. I've been working on this for a few days and this is the result.


Don't worry, the grid is only for visualisation purposes and will be removed later. I used it while I was positioning all the elements on the map, so that their positioning was actually based on the grid.

Here is a progression of the creation of this level.

Wednesday, March 26, 2014

Render Update. Woods.

This is how the render test for clay like carton hyperrealism is looking.

CheerS!


Friday, March 21, 2014

Writing a research question.

I thought I already had my research question:

How to make a tower defense game as customisable as possible, while allowing for confortable game play for beginners and experts.

Then while speaking with my tutor, she said that the question is wrong, and that I have to come up with a new one. That it just doesn't work as it is.

So I did a quick search on google for "how to write a research question" and got many results back.

These are the ones that I read:

http://writingcenter.gmu.edu/?p=307
http://en.wikipedia.org/wiki/Research_question
http://www.esc.edu/online-writing-center/resources/research/research-paper-steps/developing-questions/
http://www.socscidiss.bham.ac.uk/research-question.html

They are good reads, and not all that long. After reading these articles about the research question, what it is and what it should entail, it is much easier to think of the research question. Before, it was quite hard, I didn't know how to think about it. Now, I can be a little more rational and objective about it.

The biggest problem I had was context. And the point of the research question is that you understand what the question is, otherwise we're talking about two or more different things. In my initial question I used the work customisable, the thing is that this work means different things depending on your background. You might think that customisable means changing cosmetic things, like having an avatar and changing the clothing or hair style, It doesn't affect the gameplay, it just changes the way you avatar looks. Then again, you could think of customisable as changing the world around you, like in Minecraft, that you build everything around you. Or like myself, you could think customisable as changing the stats of your character, not the way it looks.

Wednesday, March 12, 2014

Making a better prototype for testing 3

There is one upgrading mechanic that I left out in the previous analysis, upgrading stats independently, meaning that you can choose if you want to upgrade range, damage inflicted or fire rate independently.

When you see the tower upgrade options you have each one as a different button and you select which you want to upgrade.

So this prototype is basically the same as number 2 with two differences. First, it has the mechanic that I just described in the previous paragraph. Second, now in the sell button for each tower, you can see the amount of gold the tower will be sold for.

Update March 14: I started user testing with people yesterday and I have done some minor changes. The upgrade button doesn't completely disappear now, it's transparent when you don't have enough money for the upgrade. Only disappears when there is no more upgrades. The sell button also shows how much money you'll get back. And there was a bug with the range of some towers, which were not showing the real range of the tower so if you really looked at it you would thing something was wrong. (And it was). A new sound was added, you can hear it when a creep gets to the end goal.

Enjoy!





You can see the first and second prototypes here and here.

Tuesday, March 11, 2014

Making a better prototype for testing 2

This is the second Interaction design prototype for placement and upgrading of towers in Tower Defense games.

How it works:

There are building spots on the map, here and only here can towers be built.
You click/tap the building spot, a menu with options comes up. Select the tower you want to build and that's it.
To upgrade towers just tap them, a new menu appears with two options. Upgrade and Sell.
Upgrade has a number below it, indicating the price of the upgrade.
Click the option you want and that's it. Tower Upgraded. (if you have the money for it)
If you don't have enough money for the upgrade, the upgrade button is not be visible.

After taking a few days to make the first prototype, making the second only took a few hours.

Update March 14: I started user testing with people yesterday and I have done some minor changes. The upgrade button doesn't completely disappear now, it's transparent when you don't have enough money for the upgrade. Only disappears when there is no more upgrades. The sell button also shows how much money you'll get back. And there was a bug with the range of some towers, which were not showing the real range of the tower so if you really looked at it you would thing something was wrong. (And it was). A new sound was added, you can hear it when a creep gets to the end goal.

Enjoy.

 

You can see the first prototype here.

Monday, March 3, 2014

Making a better prototype for testing

Like I said in a previous post, I was doing some prototypes for user interaction testing and while doing them I realised they would not give me good data, because the experience would not be complete.

So I've been working on a new prototype, this one has actual TD mechanics, there are creeps going towards the exit, you place towers and kill them.

I'm using a base TD game that was already created, you can check it out here.

It has basic TD functionality, but no real scoring or economic system, so I'm adding to it.

I'm adding a currency counter, killing each creep will give money to the player. Towers cost a certain amount, it's not visible anywhere in the actual game but the towers cost 10, 15, 20 and 30. (not in that order). Also added a life counter, so that when 20 creeps get to the end point a big "GAME OVER" sign appears and everything stops. Last thing i'm adding today is a wave counter, though it still doesn't change. I'm still working on it, I want to make it so that ever x number of creeps, they will stop for a few seconds and then they will start again, as the next wave, with more health points. Tomorrow will see that done.

Update March 4: Added the waves mechanic to the creeps, the counter goes up every 13 creeps, and the next wave comes after a few seconds have passed. Creeps life also goes up every wave, but it's not very balanced right now, you get more money than you need.

Update March 7: Added collision detection when placing a new tower, so now towers cannot be placed on top of each other, nor on the path. Towers can be upgraded 3 times, each time the cost and the strength doubles. Only strength changes, range and speed stay the same. Also included a text to show how much the upgrade cost. Now the balance is on the other side. Money gained is not enough to kill all incoming creeps after some waves. I got to wave 40 before leaking the first creep, after that creeps leaked with every wave until I lost all lives. Enjoy!

Update March 10: Added 3 sounds. 1. when you place or upgrade a tower. 2. when a tower cannot be placed. and 3. When the game is over. Other than that, just tweaked towers stats to balance a little more the game, though still eventually you will die. I got to 1700 score before loosing, ohh, right, also added a score counter to have something to look up to other than wave number.

Update March11: Found a bug on the transparency update for the towers menu, only the Normal tower was working as it should, but the other towers didn't so thats fixed, and removed the clear button as the restart button replaced it's functionality. That's it for this prototype, now off to work on the second one.

Update March 14: I started user testing with people yesterday and I have done some minor changes. The upgrade button doesn't completely disappear now, it's transparent when you don't have enough money for the upgrade. Only disappears when there is no more upgrades. The sell button also shows how much money you'll get back. And there was a bug with the range of some towers, which were not showing the real range of the tower so if you really looked at it you would thing something was wrong. (And it was). A new sound was added, you can hear it when a creep gets to the end goal.

Here it is, as it is right now:

Thursday, February 27, 2014

Thinking of touch screen user interaction.

What is the difference in designing interactions for desktops and for touch screen devices?

Have you seen those apps/games that look like the whole app/game for browser was just taken as is on the browser and squeezed in size to fit the mobile screen, and that's it! Without redesigning the user interface or interaction at all. Well... it's been a few years since the arrival of smart phones and mobile touch screen devices so I think that by now almost everyone knows that apps/games need to be designed with that in mind. And if someone doesn't do it, the app/game just doesn't succeed, like... at all.

There are numerous websites with articles and papers on this, just a google search away
In the ones I've read about gestures and user interaction design for mobile games, you will find that games with great mobile gestures interaction design already have something going for it.

Examples? Temple Run (or any other running clone) and Fruit Ninja are games that make very good use of touch screen gestures as game controls, swipe the fruit in Fruit Ninja to cut it as if your finger was a blade. Or swipe left or right to have your avatar change directions in Temple Run (or clones).

So one of my tasks at the moment is analysing the tower defense genre and finding what it's lacking from a gestures point of view.is it lacking something? or is it as it should be even if it's designed with that in mind.

Swipe to the left to make time go faster?
Swipe up while a tower is selected to upgrade it? or pinch out?

The thing with gestures is that they should come naturally, like if you weren't even thinking about it and end up doing it.

I find my self trying to swipe the screen of my laptop after using my iPad for a while, I don't think about it I just have the impulse of doing it, it's natural.

That's what good implementation of gestures should be like. Something that the users will try to do because it just feels right. Right?

So the questions remains, what would a tower defense game be like, if it's designed with mobile gestures in mind?

Tuesday, February 25, 2014

TD tower user interaction prototype 2

So, for the second prototype the interactions goes as follows. First you click/tap one of the building sites and you'll get the building options, there are 4 different towers to select from, then you tap on the one you want and see the information about that tower, then you tap the same tower again and it's finally built. After building it, tapping the tower will give you the tower options, to upgrade or to sell. Towers can be upgraded 2 times to get to level 3.

Same as the first prototype, theres a clear button to clear the map in case you want to start over.

This interaction can be seen in Kingdom Rush, Kingdom Rush Frontiers and Pirates TD.

If you want to use the code below, be sure to download the fla for it by clicking here.

package {
 import flash.display.Sprite;
 import flash.display.MovieClip;
 import flash.events.*;

 /** 
  * @package 
  * @author Newen 
  * @copyright February, 2014 Under Base
  */
 public class Prototype_1 extends Sprite {

  public var point0:MovieClip; // MC positioned at top right left of the map
  public var tile:MapTile;  // tile MC class
  public var newTower:MovieClip; // new tower being created
  public var mcClear:MovieClip; // clear map button
  public var mcOptions:MovieClip; // tower options MC
  public var buildOptions:MovieClip; // tower options MC

  private var initX:int = 0;  // top left corner of the map x value
  private var initY:int = 0;  // top left corner of the map y value
  private var mapWidth:int = 15; // number of collumns on the map
  private var mapHeight:int = 10; // number of rows in the map
  private var aTiles:Array;  // array to store all map tiles
  private var aTowers:Array;  // array to store all created towers
  private var sID:int = 0;  // int variable to assign an id to all tiles
  private var selectedTile:MovieClip; // to reference clicked tile when opening build options
  private var selectedTower:MovieClip;// to reference clicked tower when opening options
  private var towerType:String = ""; // to reference clicked build option when showing description

  public function Prototype_1() {

   // set the top left corner of the map to the position of point0 MovieClip
   initX = point0.x;
   initY = point0.y;
   removeChild(point0);

   selectedTile = null;

   // hide tower options MC
   mcOptions.visible = false;
   buildOptions.visible = false;
   mcDescription.visible = false;

   // // assign tower types to each tower
   buildOptions.t1.towerType = "Tower1";
   buildOptions.t2.towerType = "Tower2";
   buildOptions.t3.towerType = "Tower3";
   buildOptions.t4.towerType = "Tower4";

   // create arrays for tiles and towers
   aTiles = new Array();
   aTowers = new Array();

   // create map depending on mapWidth and mapHeight
   for( var i = 0; i < mapWidth ; i++ ) {
    for (var k:int = 0; k < mapHeight; k++) {
     tile = new MapTile();
     tile.x = initX + i*tile.width;
     tile.y = initY + k*tile.height;
     aTiles.push(tile);
     tile.id = sID;
     sID++;

     if (sID == 17 || sID == 53 || sID == 67 || sID == 64 || sID == 82 || sID == 98 || sID == 86 || sID == 137) {
      tile.nextFrame();
      tile.addEventListener(MouseEvent.MOUSE_UP, showSelector);
      tile.busy = false;
      addChild(tile);
     }
    }
   }

   addEventListeners();
  }
  // add initial event listeners
  public function addEventListeners():void {
   mcClear.addEventListener(MouseEvent.MOUSE_DOWN, clearMap);
   stage.addEventListener(MouseEvent.MOUSE_DOWN, tappedOutside);
   mcOptions.mcSell.addEventListener(MouseEvent.MOUSE_UP, sellTower);
   mcOptions.mcUpgrade.addEventListener(MouseEvent.MOUSE_UP, upgradeTower);
   buildOptions.t1.addEventListener(MouseEvent.MOUSE_UP, placeTower);
   buildOptions.t2.addEventListener(MouseEvent.MOUSE_UP, placeTower);
   buildOptions.t3.addEventListener(MouseEvent.MOUSE_UP, placeTower);
   buildOptions.t4.addEventListener(MouseEvent.MOUSE_UP, placeTower);
  }
  public function showSelector(eve:MouseEvent):void {
   // set clicked tile as selected tile and show build options
   selectedTile = eve.currentTarget as MovieClip;
   buildOptions.x = selectedTile.x;
   buildOptions.y = selectedTile.y;
   addChild(buildOptions);
   buildOptions.visible = true;
   mcOptions.visible = false;
  }
  public function placeTower(eve:MouseEvent):void {

   if (towerType != "" && towerType == eve.currentTarget.towerType) {
    
    // make instance of new tower
    switch(towerType) {
     case "Tower1":
      newTower = new Tower1();
     break;
     case "Tower2":
      newTower = new Tower2();
     break;
     case "Tower3":
      newTower = new Tower3();
     break;
     case "Tower4":
      newTower = new Tower4();
     break;
    }
    // position new tower at selected tile location
    newTower.x = selectedTile.x + 5;
    newTower.y = selectedTile.y + 5;
    // insert new tower into towers array and show it on stage
    aTowers.push(newTower);
    addChild(newTower);

    buildOptions.visible = false;

    positionTower(newTower);
    newTower.addEventListener(MouseEvent.MOUSE_UP, showTowerOptions);

    towerType = "";
    mcDescription.visible = false;
   } else {
    // check towerType variable from clicked button
    towerType = eve.currentTarget.towerType;

    // position description near selected tile
    mcDescription.x = selectedTile.x - 40;
    mcDescription.y = selectedTile.y - 100;
    // show tower description
    addChild(mcDescription);
    mcDescription.visible = true;
    mcDescription.towerNum.text = towerType;
   }
   
   
  }
  public function showTowerOptions(eve:MouseEvent):void {
   // set selected tower
   selectedTower = eve.currentTarget as MovieClip;
   // show options for this tower
   mcOptions.visible = true;
   buildOptions.visible = false;
   mcOptions.x = eve.currentTarget.x;
   mcOptions.y = eve.currentTarget.y;
   addChild(mcOptions);
   if (selectedTower.currentFrame > 2) {
    mcOptions.mcUpgrade.visible = false;
   } else {
    mcOptions.mcUpgrade.visible = true;
   }
  }
  public function positionTower(tower:MovieClip):void {
   // check for position of closest tile, make it the new tower position

   // check towerType variable from clicked button
   // var towerType = eve.currentTarget.towerType;
   
  }
  // Clear all towers from map
  public function clearMap(eve:MouseEvent):void {
   // remove all towers from map
   for (var i:int = 0; i < aTowers.length; i ) {
    removeChild(aTowers[i]);
    aTowers.splice(i,1);
   }
  }
  public function tappedOutside(eve:MouseEvent):void {
   if (eve.target == stage) {
    // hide options
    if (selectedTile != null) {
     selectedTile = null;
     mcOptions.visible = false;
     mcDescription.visible = false;
     buildOptions.visible = false;
    }
   }
  }
  public function upgradeTower(eve:MouseEvent):void {
   // here we would upgrade the tower, but this is just a proof of concept so nothing will actually happen.
   selectedTile = null;
   mcOptions.visible = false;
   // show upgrade graphic
   selectedTower.nextFrame();
   // here we would upgrade the tower, but this is just a proof of concept so nothing will actually happen.
   selectedTower = null;
   mcOptions.visible = false;

  }
  public function sellTower(eve:MouseEvent):void {
   // remove the tower, and we would gain some currency back, but we don't have that here.
   //trace("tower:",eve.target);
   for (var i:int = 0; i < aTowers.length; i++ ) {
    if (selectedTower == aTowers[i]) {
     // trace("Is the same",i);
     removeChild(aTowers[i]);
     aTowers.splice(i,1);
    }
   }

   selectedTower = null;
   mcOptions.visible = false;

  }

 }
}

Monday, February 24, 2014

TD tower user interaction prototype 1


Here's the first prototype on how user interaction works in tower defense games right now.

It's a basic interaction where you drag towers from a list to the map. After placed it's fixed on that spot, can't drag it to another spot. If you cant to change position, you must sell it and then place a new one on the desired spot.

When clicking a placed tower you get 2 options, to upgrade or to sell. Upgrading is disabled as there is no actual game in place, this is just a user interaction proof of concept. Selling works so you can place and remove towers as you see fit.

If you want to clear all towers you can click the "Clear" button on the bottom right corner.

If you want to use the code below, be sure to download the fla for it by clicking here. This is the source code that makes this work. I've left empty lines for readability, and I wrote comments, if theres something that doens't make sense just let me know in the comments and I'll expand on it.

Edit: I added upgrading for the towers up to level 3.

package {
 import flash.display.Sprite;
 import flash.display.MovieClip;
 import flash.events.*;

 /** 
  * @package 
  * @author Newen 
  * @copyright February, 2014 Under Base
  */
 public class Prototype_0 extends Sprite {

  public var point0:MovieClip; // MC positioned at top right left of the map
  public var t1:MovieClip;  // towers 1 button
  public var t2:MovieClip;  // towers 2 button
  public var t3:MovieClip;  // towers 3 button
  public var t4:MovieClip;  // towers 4 button
  public var tile:MapTile;  // tile MC class
  public var newTower:MovieClip; // new tower being created
  public var mcClear:MovieClip; // clear map button
  public var mcOptions:MovieClip; // tower options MC

  private var initX:int = 0;  // top left corner of the map x value
  private var initY:int = 0;  // top left corner of the map y value
  private var mapWidth:int = 15; // number of collumns on the map
  private var mapHeight:int = 10; // number of rows in the map
  private var aTiles:Array;  // array to store all map tiles
  private var aTowers:Array;  // array to store all created towers
  private var sID:int = 0;  // int variable to assign an id to all tiles
  private var selectedTower:MovieClip; // to reference clicked tower when opening options

  public function Prototype_0() {

   // set the top left corner of the map to the position of point0 MovieClip
   initX = point0.x;
   initY = point0.y;
   removeChild(point0);

   selectedTower = null;

   // hide tower options MC
   mcOptions.visible = false;

   // assign tower types to each tower
   t1.towerType = "Tower1";
   t2.towerType = "Tower2";
   t3.towerType = "Tower3";
   t4.towerType = "Tower4";

   // create arrays for tiles and towers
   aTiles = new Array();
   aTowers = new Array();

   // create map depending on mapWidth and mapHeight
   for( var i = 0; i < mapWidth ; i++ ) {
    for (var k:int = 0; k < mapHeight; k++) {
     tile = new MapTile();
     tile.x = initX + i*tile.width;
     tile.y = initY + k*tile.height;
     addChild(tile);
     aTiles.push(tile);
     tile.id = sID;
     sID++;
    }
   }

   addEventListeners();
  }
  // add initial event listeners
  public function addEventListeners():void {
   t1.addEventListener(MouseEvent.MOUSE_DOWN, addTower);
   t2.addEventListener(MouseEvent.MOUSE_DOWN, addTower);
   t3.addEventListener(MouseEvent.MOUSE_DOWN, addTower);
   t4.addEventListener(MouseEvent.MOUSE_DOWN, addTower);
   mcClear.addEventListener(MouseEvent.MOUSE_DOWN, clearMap);
   stage.addEventListener(MouseEvent.MOUSE_DOWN, tappedOutside);
   mcOptions.mcSell.addEventListener(MouseEvent.MOUSE_UP, sellTower);
   mcOptions.mcSell.addEventListener(MouseEvent.MOUSE_UP, upgradeTower);
  }
  public function addTower(eve:MouseEvent):void {
   // check towerType variable from clicked button
   var towerType = eve.currentTarget.towerType;

   // make instance of new tower
   switch(towerType) {
    case "Tower1":
     newTower = new Tower1();
    break;
    case "Tower2":
     newTower = new Tower2();
    break;
    case "Tower3":
     newTower = new Tower3();
    break;
    case "Tower4":
     newTower = new Tower4();
    break;
   }

   addChild(newTower);
   // position new tower at mouse location and start dragging it
   newTower.x = mouseX - newTower.width/2;
   newTower.y = mouseY - newTower.height/2;
   newTower.startDrag();
   // insert new tower into towers array
   aTowers.push(newTower);
   newTower.addEventListener(MouseEvent.MOUSE_UP, placeTower);

  }
  public function placeTower(eve:MouseEvent):void {
   // stop dragging tower
   newTower.stopDrag();
   positionTower(newTower);
   newTower.removeEventListener(MouseEvent.MOUSE_UP, placeTower);
   newTower.addEventListener(MouseEvent.MOUSE_UP, showTowerOptions);
  }
  public function showTowerOptions(eve:MouseEvent):void {
   // show options for this tower
   selectedTower = eve.currentTarget as MovieClip;
   mcOptions.x = selectedTower.x;
   mcOptions.y = selectedTower.y;
   addChild(mcOptions);
   mcOptions.visible = true;
  }
  public function positionTower(tower:MovieClip):void {
   // check for position of closest tile, make it the new tower position

   var tintx:int = 0;
   var tinty:int = 0;
   var wintx:int = 0;
   var winty:int = 0;

   // check to see if tower is inside the map
   if (tower.x < initX - aTiles[0].width/2 || tower.x > initX + (mapWidth*aTiles[0].width) || tower.y < initY - aTiles[0].height/2 || tower.y > initY + (mapHeight*aTiles[0].height))  {
    // Tower not inside map. remove it
    tower.x = -100;
    tower.y = -100;
    aTowers.pop();
    removeChild(tower);
    return;
   }

   // search for closest positioned tile
   for (var i:int = 0; i < aTiles.length; i++ ) {
    // check half width and height of tiles
    tintx = aTiles[i].width/2;
    tinty = aTiles[i].height/2;

    // check difference in position between tower and tile
    wintx = aTiles[i].x - tower.x;
    winty = aTiles[i].y - tower.y;

    // make difference postive number
    wintx = Math.sqrt(wintx*wintx);
    winty = Math.sqrt(winty*winty);

    // check if difference less than half the tiles width and height. thus making it the closest
    if (winty <= tinty && wintx <= tintx) {
     // found closest tile
     tower.x = aTiles[i].x + 5;
     tower.y = aTiles[i].y + 5;
     break;
    } else {
     //i = i + mapWidth;
    }
   }

   // check if there are previous towers placed in the map
   if (aTowers.length > 1) {
    // check for collision between new tower and previous towers
    for (var k:int = 0; k < aTowers.length - 1; k++ ) {
     if (aTowers[k].hitTestObject(tower)) {
      // tower colliding with a previous tower, remove it.
      aTowers.pop();
      removeChild(tower);
      //trace("New tower colliding with previous tower. remove it");
      return;
     }
    }
   }
   
  }
  // Clear all towers from map
  public function clearMap(eve:MouseEvent):void {
   // remove all towers from map
   for (var i:int = 0; i < aTowers.length; i ) {
    removeChild(aTowers[i]);
    aTowers.splice(i,1);
   }
  }
  public function tappedOutside(eve:MouseEvent):void {
   if (eve.target == stage) {
    // hide options
    if (selectedTower != null) {
     selectedTower = null;
     mcOptions.visible = false;
    }

   }
  }
  public function upgradeTower(eve:MouseEvent):void {
   // here we would upgrade the tower, but this is just a proof of concept so nothing will actually happen.
   selectedTower = null;
   mcOptions.visible = false;
  }
  public function sellTower(eve:MouseEvent):void {
   // remove the tower, and we would gain some currency back, but we don't have that here.
   trace("tower:",eve.target);
   for (var i:int = 0; i < aTowers.length; i++ ) {
    if (selectedTower == aTowers[i]) {
     // trace("Is the same",i);
     removeChild(aTowers[i]);
     aTowers.splice(i,1);
    }
   }

   selectedTower = null;
   mcOptions.visible = false;

  }

 }
}

Friday, February 21, 2014

Gemcraft TD interaction design/mechanics

I forgot to include GemCraft in the my previous post "Upgrading towers in TD games".

GemCraft has a special interaction / Mechanic in play, I must say that it was the first time I saw this mechanic being used and it's from here that I took the initial inspiration for my TD game.

In GemCraft, besides the obvious, you build towers to kill creeps and so on, there is a specific difference between GemCraft and other TD games.

You build towers around the map, but they themselves don't attack the creeps. You need to install a Gem on top of the tower and it's the Gem that attacks the creeps. A nifty thing that this allows is that you can have a few towers spread around the map, and in game, you are allowed to move gems from one tower to another, with a penalty of time. The Gem stops attacking while it's being "installed" on the tower.

The colour of the Gem is what defines the type of damage it does. There is no upgrading on the towers themselves. There are different shape of Gems, the shape is what defines the power.

The currency in GemCraft is mana energy. Mana is slowly replenished over time, and just like in other TD games you get more when you kill creeps. There is a chart with Gem cost so when you want to craft a new Gem, you select it from the chart, then select the type of damage you want the Gem to have and that's it, you have that gem in your inventory, if there is an empty tower in the map you drag the Gem from your inventory to the tower and that's it, after the installing time it starts attacking the creeps inside its range.


Even tough there is dragging when placing a new tower of a Gem in a tower, this game is another example of a game that was initially for web browser, that got ported as is to mobile, without redesigning the user interaction. The 3 buttons, stacked vertically, are the menu, from top to bottom, the first one is the Gem library (last image to the right), the second icon opens the tower and spells list (second image from left to right) and the last icon, the axe, is to craft a new Gem (third and fourth images from left to right).

Tuesday, February 18, 2014

Beach test WIP

Looking into how to make the beach.


Friday, February 14, 2014

Upgrading towers in TD games

I'm looking into how tower defense games currently in the app store deal with the interaction on updating the towers.

Here's a description of how 7 different TD games deal with this.

In alphabetical order.

Carrot Fantasy

First tap on the selected place for the tower, a selection appears with the possible options, choose the one you want, (if you have enough money for it) and the tower is yours, then while playing, if you have enough money for the upgrade a green arrow will appear on top of the tower, showing the player that he/she can upgrade that tower. Select it again and click the upgrade button. Towers can be upgraded 2 times.



Tap on the place where you want to place the tower, select one of two options first, this two options are, first normal towers, (the castle icon with a flag) and then special towers that have powers (the star icon). After selecting one of the two, you get a new group of options, (normal towers are shown in the image) then tap the one you want, (again if you have enough money for it, won't repeat it anymore) and voila! you have your tower, then tap it again and click the upgrade button to upgrade the tower. Towers can be upgraded 2 times.


Fieldrunners2

Ok, here we have an extra thing, before going into the map/level, we have to choose from the range of towers, more than 30 options when you unlock them all. In the image we can see a couple of towers yet to be unlocked. So choose from all the towers you have, which ones you want to use in on this map. You can choose a max of 6 different towers.
Then we get a similar selection for special powers/items, these are limited, you can only use each up to 5 times during one match.
Now on to the actual map, you have your options of towers on the bottom of the screen, you tap and drag on to the place you want your tower to be. I've had some difficulty some times with this because sometimes I accidentally tap a tower and it searches for the closes position and places the tower, if you are in the middle o gameplay this can be devastating. If you want to cancel the placement of a tower you must drag the tower to a position that cannot be, say... like on top of another tower. If you are paused, then you can just place it anywhere select it and sell it for the same amount it costs, but if you're in mid play, you'll get a selling penalty and wont get all your money back.
Ok so I have the tower I want, in the place I want it, tap it to get the menu, tap the option you want, either to upgrade it or to sell it, or to see some info on the tower. i must say I looked at ALL descriptions for each of the 3 levels you can upgrade towers, there is some funny stuff in there.
Like i said (wrote) towers can be upgraded twice.


Kingdom Rush Frontiers

KDF has predefined spots where you can build towers, tap the spot you want, you get a selection with four options, tap the one you want and you can see a description and info on the damage it does and what type of damage it is. Then tap the same button again and your tower is built. Tap the tower when you want to upgrade it, you get a similar menu as before but for the first 3 levels you only get the option to upgrade the tower, again if you tap one on the upgrade button, you get a description of the damage increase, then if you want to get the upgrade you tap the same button again and you get your upgrade.
One thing KR does differently is that after the 3rd level of upgrade, each tower has more than one option, you can choose between 2 different types of tower, kind of like a specialty, each has it's own twist. And after you select this specialised tower, you can tap it again to get some special abilities, as far as I could see, they all had two different abilities and 2 or 3 upgrades for each ability. Though the first upgrade is actually getting the ability.
I should note here that in KRF there are heroes that affect the gameplay, I don't mention them here because this post is about the interaction design for the actual towers.


Pirate Legends TD

Interaction in PLTD is similar to the one we find in Kingdom Rush Frontiers. Tap a predefined building site, tap the tower type you want, see a description of it, then tap the same button again to actually get the tower, then tap the tower when you want to upgrade and tap the upgrade button.


Royal Defense

The same as in KRF and PTD, tap a predefined building spot, get a selection of options to choose from,  but went you tap next, you actually build it at once, there is no description phase. Tap again to get the upgrade button, tap it to upgrade the tower. Another difference I can see here is that when you're going to upgrade it, you can choose to double upgrade it at once instead of having to repeat the process of upgrading again. The price of doing it a double upgrade is the same as actually upgrading it twice. And same as most other TD games, only two upgrades for each tower. (For full disclosure, I haven't played the whole game or used all towers, I'm assuming all have 2 upgrades because the ones I have played do so. If anyone knows better, please let me know)


TapDefense

Ok, last game on the list, I wasn't sure to include it here, it's really not a nice interaction design, (IMHO)
Here you have a menu at the bottom of the screen to build a tower you tap the "BUILD" button, the get to the towers menu, tap the tower you want and you're back to the map and the tower you selected is around the middle of the map, you can now drag it around the map and place it where you want it. Are you happy with the placement? Tap the "Finalise" button at the bottom right corner of the screen to continue.
Tap the tower you want to upgrade to get a different menu at the bottom of the screen, there's an upgrade button in there, tap it to upgrade the tower.
Playing TapDefense i get the feeling that it was a browser game that was ported to mobile, but was done so without changing any interaction whatsoever, I don't think it's a good implementation on mobiles and if anything I'll use it as a "what NOT to do".


Looking at all the games in the list, only one of them has the selection of towers at the bottom (Fieldrunners2) all the others show the list of towers as a menu selection around the selected building spot. I like the drag aspect of Fieldrunners but can understand the choice to eliminate that permanent list of towers on the screen and instead free the space for other things.
On the other hand, I find so much tapping a little annoying, seeing the info of a tower should be easy and clear, available to whenever I want to see it, not only when I'm going to upgrade it. A missed tap and either I have to repeat the taps to get to the same point again, or I chose the wrong option and messed up my strategy (As there is hardly an undo option in these games).
I find only 3 or 4 options to be a little limiting, but then again the 30+ options of Fieldrunners2 is too much. There are some towers that I have never played in it. It might be a balance issue because I always end up using the same ones, they just work.
I like the twist the guys from Ironhide games did for KRF. Having specialities for the towers so 4 towers become 8 towers at the end of the day.

Do you know of any tower defense game that has a different approach to upgrade towers? or a TD game that holds a special place in your heart? Let me know in the comments.

CheerS!

Thursday, February 13, 2014

Trees WIP update.

I'm not working on this full time, have the design of the game as first goal right now. But doing this helps me focus my mind on the project, I have to think of more than one thing at any time, so doing this keeps my mind on task and I just like it too much. it's relaxing.

So here is the update, I made the surface a little round, played with the bend modifier in Modo for a while. At first I thought it didn't work but the thing is that by default the display of modifiers effect on the modelling pane are off, so to see the effect of the modifiers, you have to go to animating or render views. Or you can go into the display properties and turn the "display modifiers" to on. and that't it.
I didn't find the display properties. jeje.

Anyways... I wanted to give it a worldly feel, like we are seeing a big area, to help with the cartoony feeling. Also added some grass on the floor, not to happy with how it looks right now, will work some more on it. Ohh, and have to change the colour of the floor pane. it's the default grey right now.

Another thing that made me scratch my head for a little while was that I have the floor (the one you see), then I have a point cloud for the trees replicator, and then I have another point cloud for the grass replicator. i had to apply two bend modifiers to each one, by hand, I couldn't find a way to duplicate the modifiers I used for the floor to apply them to the point clouds.


I'd like to try using a weight map or a texture as the replicator input info. Specially for the grass. The point cloud is to uniform right now, and the random positioning right now doesn't do the trick.

Comments are welcome.

Wednesday, February 12, 2014

About Blizzards Heartstone.

First let me say that I'm not a card game fan. At least I wasn't. I didn't like Magic The Gathering, I played it once several years ago, but I didn't like it, or i'd better say, I wasn't hooked.

And then "Heartstone, Heroes of Warcraft" came along. I tried it because it's a Blizzard game, pure and simple, they are just to good game makers to not give it a chance. So I downloaded the client when the open beta started.

In HHW. The game makes you go through a few matches to get the basics of the mechanics of the game. And I mean it MAKES you go through those matches, you can't skip them and you have to win the matches to continue. I actually lost the third or fourth match and had to play it a second time (and win) to be able to continue.



Each of the 6 levels introduces a new mechanic to the gameplay, so if you have never before played a card game like this, it doesn't matter. These first matches ease you into the gameplay beautifully.

Long are gone the days when se saw "Tutorial, click here". For some time now, games have implemented the tutorial in the first level of gameplay, some done better than others, but the case is that we almost never see a real tutorial section anymore.

Well this first 6 matches of HHW is the tutorial, but you don't see the word tutorial, and if you don't really think about it, you might not even realise it's a tutorial.

After going through those first 6 levels it brings you to THE BOX. jejejej the interface that you will continue seeing, and you were already seeing, (the inside of it) now we see the outside, where the menu sits.

First time there, you are prompted to click practice, where you already have your hero selected, of course, you only have one. On the right you see the list of all heroes, you have to click and choose who you want to play against. Here you're also told that to unlock each hero you must battle them and win.


The image is from after I unlocked the hunter, first hero I won against. Now when in practice mode, you must select the hero you want to play first, and after that the space to the right, where the info of the selected hero is in the above image, changes to the list of heroes to select the opponent.

It does give a sense of "I want to unlock all heroes now!" feeling, seeing all those locked fields on the left. I must say, it's not very hard and just a couple of battles against each hero and you'll unlock them all. As usual, playing against the computer is not as challenging as playing against other people.


At one point you're also prompted to click the arena on the home menu, the first time you p lay the arena "it's on the house" and you don't have to pay, after that you need to pay 150 gold to play each time.

In case you don't know how it works, the arena is a fun mode where you first make a new deck from random cards. you get to select one out of 3 cards 30 times. You also select one out of 3 heroes, it's all random so each time you play it can be a very different experience. Every time you win you get a key, the higher level key you get, meaning the more matches you win, the petter the prize of the box it unlocks, the catch is that you an only loose 3 times, after loosing for the third time you get whatever prize you find behind the locked box you open with that little coloured key you won.
What I like about arena is that you discover new cards and new ways to play heroes, you have to play with whatever deck you make.

From an interaction design point of view I must give it to Blizzard, they did a great job with the menu and the process they show you around the game, the buttons that are below the box in the above image are not seen until you play the arena, and why should they be? you have no reason and no need to go into that just yet, it's actually very friendly the way they show you just one thing at a time.

I only got to notice those buttons after I did my initial arena play through, if you win at least one match, you'll get a deck of cards, so then you need to go into the "Open Packs" section, and open your new pack of cards. There was no need to go in there before, because you didn't have any packs to open. Also, the "My collection" was hidden because you didn't have any cards other than the base cards that you start with, so why show a button you can't use because you don't have cards to make a custom deck.

At the "Shop" button, yeah, you guessed it, that's where you buy more decks. And the one beside it is the quest lob. You click it to see what active quests there are for the day. Now this is great, from a design point of view, and to answer the question, How do we get players to play every day? as if the addictivness of the game wasn't enough, Why, let's give them daily quests so they log in every day and loose themselves in the "Just one more game" black hole.

Now I can't say I don't like these kind of card games, but I'm not a huge fan, and after play a couple of times in a row I get a little bored. Quests help me keep a goal oriented aproach to it, the thing is that after the quest is done, theres no more reason to stay in the game and that's when I log of. Quests are usually just winning 2 o 3 matches as a specific hero or something like that so it's pretty fast.

Do you play Heartstone? or another card game? what is it that you like about it? or dislike maybe?


CheerS!


Tuesday, February 11, 2014

3D time again!

After a long time of not doing any 3D except the occasional opening of modo to remember the interface and realise I don't have a 3D project to work on, then close it and continue whatever it is I was doing before.

I'm testing some texturing to see if I can get a special look I'm looking for. This would be for the graphics of the game i'm currently working on. Now I can say i DO have a project I can work on. jeje

Anyways, here's a little test, a render of simple cartoony trees.


CheerS and Have Fun!!!

About tower defense maps

As far as I can remember I've always seen two kinds of maps on tower defense games. Open maps and predefined paths. Curiously, I find that most of the successful TD games today are predefined pathways (#BloonsTD), and you only have to place towers around the path, sometimes you only have a handful of places where you can put them (#KingdomRush).

Personally I prefer the open maps where I can really go in and build a maze that creeps have to suffer through.

That I can remember, I've only found one game that mixes the two types, #Fieldrunners2.

Here's an image representing the 3 different types of maps. Open map, predefined pathways and mixed.


To avoid confusion, the "No Walk" square is the one that would go around the predefined path. In the bottom left image, (Predefined pathway) they would also be "No Walk" squares, but seeing as the path goes from spawn point to goal, I eft them as Empty tower spots. It IS possible to make towers in these "No Walk" squares.

Now, some real level examples of the different maps. These maps are from Fieldrunners2.
The first image is an open map. Fieldrunners come from the left, and try to get to the right.


Next image is a predefined path. Fieldrunners come from the left, go through the mud track and exit through the right side.


Next image is a mixed one. Though it's not what I had in mind exactly, here you can see how it mixes the open map with the predefined path but it does so by having two different spawn points and two different exits. So one row of fieldrunners will go through the predefind path and the other will go through the open field.
in the image you can see lines of arrows pointing the path that the fieldrunners will follow. purple line is the predefined path and the bluish line is the open map.


Now for the one I did have in mind, here we can see a mix of the open map and the predefined path, this map starts with the predefined path, graphically speaking it's a level below ground floor, so the fieldrunners follow that path until they get to ground level, then it's open map and the player can direct them however he places the towers.


Kingdom Rush has some cool ideas about how the environment can affect the gameplay, and also the idea of events, that after a certain wave number the map gets altered by something, as seen in Kingdom Rush Frontiers. I don't know if they have that in the first Kingdom Rush, I only played the first level, long ago when it was a web browser game.

If you have an opinion about how these maps could evolve leave a comment and we can talk about it.

It's clear that next gen quality tower defense games will focus on having more map based differences, by having events or other things that affect the gameplay. Thats my 2 cents.



Starcraft2 Arcade

I like Starcraft2. Not only the campaign and the multilayer online, but all the mods that other players have designed, not to mention all the tower defense games in there.

So, now anyone can download the Starcraft2 client and play all the arcade games in there for free. I think this is a great move for Blizzard because it will inject a lot of new players in there, making searching for other players to play the arcade games even faster.

Free players will also be able to make mods themselves, this might (I think it will) also increase the number of new games created for it. Which in turn will give it a longer life, making the experience of discovering new games last longer. Maintaining a healthy environment of Starcraft2 players.

Monday, February 10, 2014

Interaction - gameplay. TD.

Designing the way the player interacts with the game. not as an input device, but the actual clicks/instructions the player needs to do and the response from the game.

The main focus on my TD game is customisation, making any kind of tower type you want, depending on the types of attacks you have unlocked in the game. So that if you want to have a canon that shoots bullets that are on fire and explode on impact, you can do it. I haven't thought the numbers for it, or game balance yet, but the point is, you can do it.

The problem that arises here is that the user has to mix and match different attack types and modifiers to create the tower of his dreams.

Problem: Do I make a tower setup before a match, so the player designs what his towers will be like and then go from there? much like the way you choose what plans you want in Plans vs Zombies, or the way you choose towers in Fieldrunners2 before each mission. Or do I make it modular? Have the player just add blocks over blocks of modifiers? Have a few base towers and add modifiers to them?
Would that mean the base towers can't be mixed.

Here are the two flows in simple graphics.

First graphic show how the pre setup of towers would go. In a different screen you have the tower constructor, you build your towers/blueprints, save it, and go on to select the x number of towers allowed for the current map, then click/tap next to go on to the map and play the level. I'm not convinced this is the best approach to designing a tower. It restricts the player in the number of different towers he can have in a level. It does make the player have to think about it before going into it.
On the right side of the screen (or somewhere) you have your tower designs, you click and drag into the map to place them (if you have money or it). What I don't like is that this would be like most of the TD games you can find today.


In the second image we can see how the designing of your tower can happen inside the level, while you are playing the mission. What I like about this approach is that you can have as many different towers in a level as there are places to put them. (Ignoring the fact that there is just so many possible combinations)
The last frame of this image would be a tower fast build. In advanced moments of each level, sometimes you have a lot of gold (or whatever it's called in the game), so to make it as fast and fluid as possible and to avoid having to tap repeatedly, you can drag your finger along your selections and new options will arise depending on the previous selection (If applicable). While doing the graphic below, I realised that this would be similar to the way Kingdom Rush does it. Initially in Kingdom Rush you select the place where you want to build the tower and select from 4 different types of towers. but that's as far as it goes. after that you have normal upgrading until level 4, where you choose between two possibilities.


Right now I'm leaning towards the in-mission tower design, as opposed to having to design them in advance.

Plus, it goes better with what I have in mind for the attack.

Sunday, February 9, 2014

Games I'm playing right now.

Clash of Clans. I guess you already know this game. if not, then go check it out.
It's supposed to be a tower defense game. and I understand why people say that, but I just don't agree, or at least not in the usual TD game. The experience is just not the same. It's not about killing waves of creeps to see how far you can survive. It's about building your town as strong as possible to defend against other players, who want to get into your base to steal your resources so that they can build stronger defenses. that's it!

Castle Clash. Same kind of game as Clash of Clans, but it has a couple of differences in gameplay.
The units you have in your base actually defend your base when you're attacked.
There are a bunch of heroes who you can upgrade by using them in battles. They gain experience and level up. the higher level they are, the stronger they become. and you can have a bunch of different types, some stronger than others. So I find myself playing more CC than CoC because of levelling up my heroes.

Dungeon Keeper. A remake of the classical PC game. but updated to current social mechanics and freemium monetization setup. So you can level up everything but it takes time to do so, you can speed it up, and buy more minions (workers) to build/level up more things at the same time, the thing is that it's rather expensive to get more minions and the time it takes to build stuff goes up really fast. I don't see myself playing this game for too long.

Kingdom Rush, frontiers HD.
Tower defense game, it's one of the favourites for mobile TD games. Personally I don't like it THAT much, I like the graphics and inside jokes in the environments. It's a very well designed game, but I don't like the way the basic melee tower works, by putting soldiers in the path of the creeps. I can't put my finger on it, but I don't like it. I think I'm to used to actual towers that shoot the creeps. It does change the gameplay, to have those soldier towers. But, i'm currently stuck in one level and I can't get through. It's really frustrating. Only reason I continue playing it is because I'm making a TD game and I want to experience it all.