Monday, 25 January 2010
Friday, 15 January 2010
Thursday, 14 January 2010
Wednesday, 13 January 2010
Great Balls of Fire
Tuesday, 12 January 2010
Monday, 11 January 2010
Third Eye for the Norse Guy
var target : Transform;
var distance = 10.0;
var xSpeed = 250.0;
var ySpeed = 120.0;
var yMinLimit = -20;
var yMaxLimit = 80;
var zoomRate = 20;
private var x = 0.0;
private var y = 0.0;
@script AddComponentMenu("Camera-Control/Mouse Orbit")
function Start () {
var angles = transform.eulerAngles;
x = angles.y;
y = angles.x;
// Make the rigid body not change rotation
if (rigidbody)
rigidbody.freezeRotation = true;
}
function LateUpdate () {
if (target) {
if (Input.GetMouseButton(0))
{
x += Input.GetAxis("Mouse X") * xSpeed * 0.02;
y -= Input.GetAxis("Mouse Y") * ySpeed * 0.02;
var test = 0;
test = y;
}
distance += -(Input.GetAxis("Mouse ScrollWheel") * Time.deltaTime) * zoomRate * Mathf.Abs(distance);
if (distance < 2.5)
{
distance = 2.5;
}
if (distance > 20)
{
distance = 20;
}
y = ClampAngle(y, yMinLimit, yMaxLimit);
//Debug.Log("y: "+y+" test: "+test);
if( y == yMinLimit && test == yMinLimit)
{
// This is to allow the camera to slide across the bottom if the player is too low in the y
distance += -(Input.GetAxis("Mouse Y") * Time.deltaTime) * 10 * Mathf.Abs(distance);
}
var rotation = Quaternion.Euler(y, x, 0);
var position = rotation * Vector3(0.0, 2.0, -distance) + target.position;
//Debug.Log("Distance: "+distance);
transform.rotation = rotation;
transform.position = position;
}
}
static function ClampAngle (angle : float, min : float, max : float) {
if (angle < -360)
angle += 360;
if (angle > 360)
angle -= 360;
return Mathf.Clamp (angle, min, max);
}
Norse Gods Can't Jump
private var walkSpeed : float = 1.0;
private var gravity = 100.0;
private var moveDirection : Vector3 = Vector3.zero;
private var charController : CharacterController;
function Start()
{
charController = GetComponent(CharacterController);
animation.wrapMode = WrapMode.Loop;
}
function Update ()
{
if(charController.isGrounded == true)
{
if(Input.GetAxis("Vertical") > .1)
{
if(Input.GetButton("Run"))
{
animation.CrossFade("run");
walkSpeed = 25;
}
else
{
animation["walk"].speed = 1;
animation.CrossFade("walk");
walkSpeed = 6;
}
}
else if(Input.GetAxis("Vertical") < -.1)
{
animation["walk"].speed = -1;
animation.CrossFade("walk");
walkSpeed = 6;
}
else
{
animation.CrossFade("idle");
}
// Create an animation cycle for when the character is turning on the spot
if(Input.GetAxis("Horizontal") && !Input.GetAxis("Vertical"))
{
animation.CrossFade("walk");
}
transform.eulerAngles.y += Input.GetAxis("Horizontal");
// Calculate the movement direction (forward motion)
moveDirection = Vector3(0,0, Input.GetAxis("Vertical"));
moveDirection = transform.TransformDirection(moveDirection);
}
moveDirection.y -= gravity * Time.deltaTime;
charController.Move(moveDirection * (Time.deltaTime * walkSpeed));
}
This doesn't work for a Third Person Controller.
Sunday, 10 January 2010
Saturday, 9 January 2010
Not Admitting Defeat ......yet
On the bright side I have created a playable 'quest' element (the first of many I hope) for my game and I am currently working on interaction with NPC's, I will post screeshots of my quest sometime today. (It's only little but it works!)
I have also decided to create a pathway for the character to follow as the game level itself is huge and the player could get lost and ultimately bored with the game play.
Tuesday, 5 January 2010
Thursday, 17 December 2009
Unity and Cinema 4D
Hence the lack of updates on my blog. scripts seem to be the most difficult thing so far. I am also having trouble importing materials with the models that I have built in Cinema 4D.
However working through tutorials has helped me to get a greater understanding of both Unity and Cinema 4D.
Tuesday, 8 December 2009
Thursday, 26 November 2009
Game Engine
The level that I will be creating will be a staging level and you will leave it by entering a portal. Minimal threats will be within this staging area but nothing too threatening.
The game will work like an RPG and with that there will be no levels to complete, however your character will level. Once your character has reached level one you will be able to use the portal to move on to the real game area.
In the staging area you will play Magni however after the staging area you can play as your own character from one of the nine worlds.
The staging area will show you how to work the controls, navigate the area and how to use your items.
The choice of characters will be split into factions and you can choose a character from either side.
The Åésir (gods) will lead one faction and The Jøtnar (giants) will lead the opposing faction
Within the gods faction will be The Vanir, The Ålfar (elves) & The Ice Elements of Niflheim
Within the giants faction will be The Dead of Hel, The Svartålfar (black elves) & The Fire Elements of Muspellheim.
The Humans of Midgard are split and can choose either side as their destiny is unknown as their world is the only one of the nine worlds to survive Ragnarøk.
Friday, 13 November 2009
Central Characters
Móði and Magni - The sons of Thor and Jarnsaxa and the main protagonists in the game. They will inheirit their father's hammer Mjollnir after Ragnarok.
Loki - The sly, trickster god. Son of two giants. Also known as the Sly One, the Trickster, the Shape Changer and the Sky Traveller. He has become increasingly more evil. He is responsible for the death of Balder (son if Odin) and he is bound until Ragnarok.
Odin/Habard - God of poetry, battle and death. Chief god of the Aesir. Also known as the "all-father", the "terrible one", "one-eyed" and "father of battle". He will visit the brothers and help them in their quests.
Þrúðr (aka Thrud) - Daughter of Thor, brother to Magni and Modi. Promised to the dwarf Alvis. She is also one of the Valkyries. She will appear and heal the brothers when they are weak after or during battle.
Freyr - Important god of the Vanir. Son of Njord and brother of Freyja. Freyr was highly associated with agriculture, weather and, as a phallic fertility god, Freyr "bestows peace and pleasure on mortals".
Freyja - Main goddess of the Vanir (fertility gods). Daughter of Njord and sister of Freyr. In the Eddas, Freyja is portrayed as a goddess of love, beauty, and fertility, Blonde, blue-eyed, and beautiful, Freyja is described as the fairest of all goddesses, and people prayed to her for happiness in love.
Side Characters
Thor - God of Sky, thunder and fertility. Associated with law and order in Asgard and guardian of the gods. Son of Odin and Earth, husband of Sif and father of Þrúðr, Móði and Magni . Also known as the "thunder god" and "charioteer". Thor will not feature much as he will be leading the Aesir into war.
Freyr and Freyja


Freyr (sometimes anglicized Frey, from *frawjaz "lord"[1]) is one of the most important gods of Norse paganism. Freyr was highly associated with agriculture, weather and, as a phallic fertility god, Freyr "bestows peace and pleasure on mortals". Freyr, sometimes referred to as Yngvi-Freyr, was especially associated with Sweden and seen as an ancestor of the Swedish royal house.
Freyja (sometimes anglicized as Freya), is a major goddess in Norse Paganism, a subset of Germanic Paganism. Because the documented source of this religious tradition, the Norse Mythology, was transmitted and altered by Christian medieval historians, the actual role, pagan practices, and worship of the goddess are uncertain.
In the Eddas, Freyja is portrayed as a goddess of love, beauty, and fertility, Blonde, blue-eyed, and beautiful, Freyja is described as the fairest of all goddesses, and people prayed to her for happiness in love. She was also called on to assist childbirths and prayed to for good seasons.
Freyja was also associated with war, battle, death, magic, prophecy, and wealth. She is cited as receiving half of the dead lost in battle in her hall Fólkvangr, whereas Odin would receive the other half at Valhalla. The origin of Seid was ascribed to Freyja.
Jötunn

A 'Jotun' (sometimes spelled Jotunn or Jötunn, pronounced /ˈjoʊtən/, /ˈjoʊtʊn/, /ˈjɔːtʊn/, or [ˈjøːtun][1][2]), is a giant in Norse mythology, a member of a race of nature spirits with superhuman strength, described as sometimes standing in opposition to the races of the tribes of the Æsir and Vanir, although they frequently mingle with or intermarry with these. Their otherworldly homeland is Jötunheimr, one of the nine worlds of Norse cosmology, separated from Midgard, the world of humans, by high mountains or dense forests. Other place names are also associated with them, including Niflheimr, Utgarðr and Járnviðr. In some legends and myths they are described as having the same height as humans.



























