🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Defend The Castle - VR (Google Cardboard)

A topic by WeirdBird Games created Sep 02, 2017 Views: 191 Replies: 3
Viewing posts 1 to 3
(Edited 1 time)

Hello Everybody, 

I'm Daniele and I recently started learning game development. I have followed few online training courses and I recently started to mess around with Unity3D. I got really excited by recently developments in VR/AR, so I decided that my first real game will be a VR game. I bought a google cardboard and I just started to develop a simple "Defend the Castle" game. 

So the idea and gameplay are simple. You are on the top of a watchtower on an Island and you need to fight against the pirates coming from the sea and airplanes that will try to bomb you from the sky. You only weapon? A cannon. 

The idea is to develop the game from scratch trying to applying all the concepts learned.  The style is a 3D Low Poly with solid colors (I really like this kind of style plus it fits very well with VR and mobile devices). I'll keep you posted from time to time, as soon as I progress with the project. Hope you find the project interesting, please give me any feedback/advice/comment on anything you see on this devlog or anything that could be beneficial to the game. 

For now I'll leave you with a screenshot of how the Island looks like today... pretty boring I guess :)

(Edited 1 time)
Back for a quick update.  So this week I managed to figure out how to fire a cannon ball from the Castle Tower. When the player hits the fire button a cannon ball is fired. The ball speed depends on how long the button is pressed. Here is the first version of the script attached to the player: 
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerShooter : MonoBehaviour
    public float initialSpeed;
    float speed;
    float maxSpeed = 200.0f;
    GameObject prefab;
    void Start ()
        prefab = Resources.Load ("CannonBall") as GameObject;
        speed = initialSpeed;
    void Update ()
        if (Input.GetMouseButton (0)) {
            speed = speed + 10;
            speed = Mathf.Clamp (speed, initialSpeed, maxSpeed);
        if (Input.GetMouseButtonUp (0)) {
        //    Debug.Log ("Projectile speed: " + speed);
            GameObject projectile = Instantiate (prefab) as GameObject;
            projectile.transform.position = transform.position + Camera.main.transform.forward;
            Rigidbody rb = projectile.GetComponent<Rigidbody> ();
            rb.velocity = Camera.main.transform.forward * speed;
            speed = initialSpeed;

I managed also to add some details/trees to the Island environment (more work needs to be done here):

 For the explosion particle I'm using the standard ExplosionMobile from Unity standard assets. Hope I will find something more low poly maybe in the future. I'm also looking at the gameplay adding some idea for the enemies, at the moment:

  • pirates - able to transport different weapons on the battlefield. They will try to reach the Tower from the sea.
  • pirate shipfires cannon ball from the sea when the proper distance is reached
  • airship - fires bombs from the sky
  • air balloon - fires bombs from the sky
  • giant octopus - ?

I guess next step will be starting to add some enemy on the Island and more details. A low poly water would be good... :-) Looking forward to find the time for next update!! Here the first gameplay video, looks ugly but it is something :) 


Looks pretty good! I want to learn how to make a game for google cardboard! nice


thanks! If you want to learn there are a lots of useful resources online. I actually followed a course on Udemy, very well done. That's a good place where to start with Unity + Google Cardboard. I think google cardboard is good to start if you want to learn about making games for VR. You don't need to invest a lot of money in it, few dollars and you are good to go. Going forward you can the try other platform such as Daydream, Oculus and so on.