Friday 26 April 2013

UDK Units version 2


  • Max Height Jump = 52 udku
  • Max Double Height Jump = 89 udku
  • Max Distance Jump = 322 udku
  • Max Double Distance Jump = 499 udku

The actual udku conversions to real world measurements are not exact and do differ over different games.


  • Unreal Tournament games :  1 udku = 2 cm.
  • Gears of War : 2 udku = 1 inch.
  • Most licensees use a scale of 1 Unreal Unit to 1 cm.



The important thing is that unit conversions between development engines 
UDK 3DS and Maya are 1 for 1.

So for most cases :       1 udku  =  1 3dsu  =  1 mayau  =  2 cm.


The overriding premise though is that what ever unit calculation you choose to use you must be consistent and all objects within the space must be relative to your chosen unit calculation.

 I have some further reading links.
http://udn.epicgames.com/Three/ChangingUnits.html
http://forums.epicgames.com/archive/index.php/t-762204.html
http://wiki.beyondunreal.com/Legacy:Unreal_Unit
http://wiki.beyondunreal.com/Unreal_Unit
http://www.worldofleveldesign.com/categories/unreal3/setup-grid-scale-in-maya-for-unreal3.php

And a link to a unit converter that converts real world measurements into standard UDK units. 
http://www.moddb.com/engines/unreal-development-kit/downloads/unreal-unit-converter1



Friday 19 April 2013

Tuesday 16 April 2013

Arrrggg - From This Moment On

Changed to Blogger from Tumblr.
All posts previous to this are the recreation of the original.

Man Play & Games


http://en.wikipedia.org/wiki/Man,_Play_and_Games

Original Post Mar 14th 2013

Game Warning

“Game Experience May Change During Online Play”

Original Post Feb 14th 2013 

TDSB


Original Post Feb 13th 2013

Monday 15 April 2013

The Sunk Loss Cost Fallacy

http://youarenotsosmart.com/2011/03/25/the-sunk-cost-fallacy/

Original Post Jan 16th 2013

Laetus Domus


Original Post Dec 12th 2012

Mazzy - The Golden Child



Original Post Dec 5th 2012

Java JPanel JFrame


I am still trying to get hold of the Aero Glass window borders on to my JPanel and JFrame.

But I have found some help to make JPanel borders translucent.

http://stackoverflow.com/questions/7035583/how-to-add-windows-aero-effects-to-a-jpanel/7036346#7036346

http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html


Original Post Oct 16th 2012


Java Color


Java basic colors are heavy and few.

eg.   setBackground(Color.orange);


But if you want your frames to match your OS colors you can access them;

eg.   setBackground(SystemColor.inactiveCaption);

http://nadeausoftware.com/node/105#UsingJavasSystemColors


Or even better yet use a hex code; 

eg.   setBackground(Color.decode(“#FFFF00”));

Original Post Oct 15th 2012

Ascii Key - print to Console


This line of code will display the Ascii key number for each key pressed.

console.log(evt.keyCode);

Original Post Oct 31st 2012

Lies

Click To Play SWF

Original Post Sep 22nd 2012

WWNSD

New & Improved Release 



Original Post Sep 22nd 2012


Arrrggg


"Duty. Death is lighter than a feather, duty heavier than a mountain."

— Rand al’Thor the Dragon Reborn, Car’a’carn, Coramoor and King of Illian. 

Original Post Sep 13th 2012

Fibonacci - revisited


Wow, Grey Wolf continues to astound me.

He rewrote the Fibonacci JavaScript so that it builds an array and then returns the index value you wanted.
This allows for greater calculation values and no longer crashes your pc.
Negative values are a bit strange and huge numbers will more than likely return infinity.
var fibTicks = 0;

var FibonacciTerms = new Array();

 function fibonacciR(term) {

// recursive fibonacci method (the higher the number the more times the method gets called until we get to 1)

// we could use an array and iterate the array to find the value this would then be known as an iterative method.

// values greater than 30 are likely to crash javascript, for large numbers it is advised to use a language such as python using the recursive method.

fibTicks++;

if (term<=1) return term;

else return fibonacciR(term-1)+fibonacciR(term-2);

}

 function fibonacciI(n) {

// iterative method, here we are creating a loop which will determine what the next term is, append it to an array of terms until it reaches the dssired number

var neg = false;

if (n < 0) { n = n - n - n; neg = true; } // deal with negatives (we could just return an error here)

fibTicks = 0;

var i = 2; // we already have the 0th and first term so start counting from the 2nd term

FibonacciTerms = new Array(0,1); // clear the list of terms, add the 0th and 1st term

while (i <= n) { // loop through until we reach the desired term

fibTicks++;

FibonacciTerms.push(FibonacciTerms[i-1]+FibonacciTerms[i-2]); // add the term to the array

i++; // add 1 to our loop incrementor

} // end of loop

var r = FibonacciTerms[n]; // put the N’th term in to variable ‘r’

if (neg == false) return r; // exit the function giving back the number stored in ‘r’

else return r-r-r; // exit the function giving back the negative value for the number stored in ‘r’

}

Original Post Sep 2nd 2012

Action Script 3 - Play Symbol Children


This script is an example of how to play a symbol within a symbol

The AA symbol contains the AB symbol

The AB symbol contains the AC symbol

//Stop clip playing
stop();

//Create Listener
AA.addEventListener(MouseEvent.CLICK, C_AA);

//Mouseover button mode
AA.buttonMode = true;

//Create function
function C_AA(event:MouseEvent):void {

//Play AA Symbol
AA.play();

//Play AB Symbol which is a child of AA
AA.AB.play();

//Play AC Symbol which is a child of AB which is a child of AA
AA.AB.AC.play(); }

Original Post Aug 27th 2012

Campus Project Team A


UML Model


  • There are many buildings on campus.
  • Each building has a building number, a number of exits, and contains many rooms.
  • Each room has a room number, a room size, and a seating capacity.
  • Some rooms are computer labs and have many computers.
  • Each computer has an asset number and a tag & test date
  • Some rooms have a single overhead data projector.
  • Each overhead data projector has an asset number and a tag & test date.


Additional functionality/notes:

  • Add & remove buildings from campus.
  • Add & remove rooms from building.
  • A building must have a unique building number.
  • A room must have a unique room number.
  • Campus rooms can be searched by room number, to return the matching room.
  • Campus rooms can be searched by seating capacity, to return the matching rooms.
  • Computers & overhead data projectors must have a unique asset number.

Original Post Aug 20th 2012

Fibonacci



Fibonacci just blows my mind

Grey Wolf is amazing and helped me greatly with the following HTML + Javascript to test fibonacci principals based on a couple khanacademy video’s

Caution entering a value of 45 and above may cause serious lag or even crash issues

<body>
<h1> Fibonacci </h1>
<br><br>
<form>
<table>
<tr>
<th style=”text-align:center”>Enter Number</th>
</tr>
<tr>
<td><input type=”text” id=”fn” autocomplete=”off”/></td>
</tr>
<tr>
<td align=”center”><input type=”button” value=”Fibonacciate” onclick=”runFib();”/></td>
</tr>
</table>
</form>
<br><br>
<form>
<table>
<tr>
<th style=”text-align:center”>Fibonacci Jumps</th>
</tr>
<tr>
<td><input id=”fibonacci” readonly=”readonly”/></td>
</tr>
</table>
</form>
</body>

<script>
//Fibonacci function
fibonacci = function(fib) {
if (fib<=1) return fib;
else return fibonacci(fib-1) + fibonacci(fib-2);
}
//Run fibonacci function
runFib = function() {
var fib = document.getElementById(“fn”).value;
var v = fibonacci(fib);
document.getElementById(“fibonacci”).value=v;
}
</script>

Original Post Aug 15th 2012

Flash Action Script


//Stop the flash playing 
stop();

//Listen for Home Button
Home.addEventListener(MouseEvent.CLICK, onClickHome);

//Function for Home Button
function onClickHome(myEvent:MouseEvent):void {gotoAndStop(“Home”);}

//Listen for Game Button
Game.addEventListener(MouseEvent.CLICK, onClickGame);

//Function for Game Button
function onClickGame(myEvent:MouseEvent):void {gotoAndStop(“Game”);}

//Listen for Billy Button
Billy.addEventListener(MouseEvent.CLICK, onClickBilly);

//Function for Billy Button
function onClickBilly(myEvent:MouseEvent):void {gotoAndStop(“Billy”);}

//Listen for Olaf Button
Olaf.addEventListener(MouseEvent.CLICK, onClickOlaf);

//Function for Olaf Button
function onClickOlaf(myEvent:MouseEvent):void {gotoAndStop(“Olaf”);}

//Listen for Fido Button
Fido.addEventListener(MouseEvent.CLICK, onClickFido);

//Function for Fido Button
function onClickFido(myEvent:MouseEvent):void {gotoAndStop(“Fido”);}

Original Post Aug 7th 2012

UDK Units


1 udku = 1 inch

Max Height Jump = 52 udku

Max Double Height Jump = 89 udku

Max Distance Jump = 322 udku

Max Double Distance Jump = 499 udku

Original Post Aug 7th 2012

Animoto Example

http://animoto.com/play/8Y009Fs13pTh5Y50FDtKHw

Original Post Aug 6th 2012

The Periodic Table of Storytelling


Original Post Jul 30th 2012

Group Activity - Inheritance



A Player has the following attributes: 

  • Name
  • Health
  • Strength
  • intelligence
  • Location
    • X coordinate
    • Y coordinate
  • Inventory
    • a collection of InventoryItem's - each InventoryItem has the following attributes
      • ID
      • Price
      • Weight.
A Weapon is a type of InventoryItem. It has a single int attribute: DPS. 
  • An object of Weapon type may be constructed with or without providing a value for this attribute. 
    • A Gun is a type of Weapon. It has a single int attribute: ammoCount. A value for this attribute must be provided in the constructor. 
    • A Stick is a type of Weapon. It has a single int attribute: stickLength. A value for this attribute must be provided in the constructor.


A Tool is a type of InventoryItem. It has a single int attribute: numberOfUses. 

  • An object of Tool type may be constructed with or without providing a value for this attribute. 
    • A Key is a type of Tool. It has a single String attribute: keyName. A value for this attribute must be provided in the constructor. 
    • A Mirror is a type of Tool. It has a single String attribute: mirrorName. A value for this attribute must be provided in the constructor.


Original Post Jul 29th 2012

Scale of Universe

http://scaleofuniverse.com/

Original Post Jul 29th 2012

Inheritance Scenario: XYZ



yClass is a type of xClass. 

A XClass has 3 int states, x,y & z. 

An object of the xClass may be created by providing a value for all 3 of these states and also by providing only x & y. 

The yClass has 2 int states, a & b. 

An object of the yClass may be created by providing a value for a, or values for both a & b. 

The zClass is a type of yClass and has 1 int state called c. 

An object of the zClass may be created with or without supplying a value for c.

Original Post Jul 23rd 2012

Delimiters, Splits, Tokens, and Meta- Characters



So we have this text file that is full of World information on 10 players.

Each Player has the following information;

  • World Name
  • Player Name
  • Player Health
  • Player Strength
  • Player Intelligence
  • Player Location   -   each Player has a starting location
    • each location has 2 coordinates
      • X co-ordinate
      • Y co-ordinate
  • Player Inventory   -   each Player has 10 Items in their Inventory
    • each Item has 5 bits of Information 
      • Item Name
      • Item ID
      • Item Weight
      • Item Value
      • Item Level 

Now this information is all held in this World text file, but how do we read it effectively, it just seems to be a random wall of text.

We use a Delimiter.

In this case the delimiter is set as   ;

What that means is when we scan the text file each character preceded by   ;   will be recorded as a string.

Each of these strings is called a token.

Each token can be broken down further into smaller tokens using the split function.

In this case we have

  First split     :
  Second split     @
  Third split     *
  Fourth split     #
  Fifth split     ?

The issue we come across is that some characters already have assigned functions; these are called Meta- Characters, and using them as delimiters and splits will cause hang and crash issues.

Meta-Characters      .  ^  $  |  *  +  ?  (  )  [  {  \  

If you precede Meta-Characters with two forward slashes \\ it will turn them into a literal character.

eg.    scan.useDelimiter(”\\? “)     or    String[] StringName = Token.split(”\\* “)

Original Post Jun 30th 2012

Blog Task - The Constructor



Wow this turned out to be a big class.

I viewed this Player Account and treated it in a way similar to World of Warcraft.

Each player has a Player Account that must be set up before you can create avatars to play.

Each Player Account has required parameters and also have data types that are themselves class objects.

The DOB class has 3 states, dd, mm, and yyyy.

The Avatar class has 4 states, name, race, sex and class.

Original Post Jun 23rd 2012 

Blog Task - Encapsulation and Visibility


Accessors and Mutators allow exterior objects read or modify access to an objects public states and behaviours.

In UML diagrams each Accessor and Mutator is preceeded by a plus sign, ( + ), which identifies that the object state or behaviour is public.

In UML diagrams a minus sign, ( - ), denotes a state or behaviour is private, and as such is not acceable by on outside object.


What is an Accessor?

An Accessor allows outside objects to read the state or behaviour of an object. 
Accessors are also known as Getters.


What is a Mutator?

A Mutator allows outside objects to modify the state or behaviour of an object.
Accessors are also known as Setters.

Original Post Jun 23rd 2012 

Wonder


Original Post Jun 21st 2012

Arrrggg


Java is still really testing me.

Every now and again I feel that I am on the cusp of understanding, but then another thing happens and I revert to confusion.

Maybe I am just to thick to get it.

Original Post Jun 11th 2012

Barbie


Original Post May 29th 2012

Shoes


Original Post May 23rd 2012

Friday 12 April 2013

UML - Group Task - Class Diagram - Courtyard



I have scanned the original but it is very faint so I redrew it 

Original Post May 3rd 2012

UML - Data Types In The Wild - Class Diagram - Quiver



As my Avatar in the previous post is an Archer I created a Quiver class

The quiver has a maximum arrow capacity and weight 

It can also only be equipped by an Archer

It increases the Archer accuracy skill

Original Post May 3rd 2012

UML - Data Types In The Wild - Class Diagram - Player



I have a main class called Player Account 

  • The main class has many states
  • The main class can have many objects 


I have an object of the main class called Player Avatar 

  • Each object of the main class has its own states and behaviours


Original Post May 3rd 2012

UML - First Class Diagram - Aeroplane


Original Post May 3rd 2012

Thursday 11 April 2013

Java Task: URL


Original Post Apr 29th 2012

Java Task: Scores


Original Post Apr 29th 2012

Blog task: Questions


1. What keyword implements inheritance?

extends


2. What is the name of the Component library we have used this week?

javax.swing.   java.awt.


3. Provide the following links:

1.    java specification 7                 
http://docs.oracle.com/javase/7/docs/api/overview-summary.html

2.    java specification 7 - javax.swing                   
http://docs.oracle.com/javase/7/docs/api/javax/swing/package-summary.html

3.    java specification 7 - JPanel
http://docs.oracle.com/javase/7/docs/api/javax/swing/JPanel.html

4.    java specification 7 – Jframe
http://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html

5.    java specification 7 – OptionPane
http://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html


4. Describe/show a for loop that has been primed to start at 0 and continue 10 times.

int i;  
    for (i = 0; i <=10; i++) { }


5. What is a constructor?

The first method called when instantianting an object/class
A constructor sets variables for a class/object


6. What is the difference between a class and an object?

A class is an overall type of a thing     eg  Dog is a class
An object is an item of the class          eg  Terrier is an object of the Dog class


7. What keyword do we use to instantiate an object from a class?

new


8. Describe the parameters required by the drawOval method.

x and y coordinates  -  for the start position of the draw 
width and height       -  to set the size of the oval/circle


9. What do X & Y screen coordinates mean/refer to?
x is the horizontal axis of the screen 
y is the vertical axis of the screen


10. What is the top left coordinate of the screen?

0,0     or      x=0 , y=0

Original Post Apr 29th 2012

Update Environment Variables 2: Implementation & Blog Task



1.    What is the value of X & Y if

  • a.    R = 400, T = 10           X = 1400         Y = 910
  • b.    R = 4000, T = 20         X = 5000         Y = 920
  • c.    R = 4010, T = 50         X = 0               Y = 0


2.    How many packages may a Java project contain?
There is no concrete limit to how many packages are allowed per project.  


3.    How many classes may a Java package contain?

There is no concrete limit to how many classes are allowed per project.


4.    What are the two types of methods?

Procedure & Function


5.    Explain the differences and similarities between the two types of methods.

Both of the methods execute code, but the Function method will return a value where the Procedure method will not


6.    Of the two types of methods, which one is the Main method?

Procedure


7.    What does the keyword void mean & where is it generally seen?

The keyword Void is contained within the main method Procedure, and it identifies that the procedure does not return a value


8.    What is the special purpose of the Main method?

The main method is where the program execution begins


9.    Explain the purpose of a method parameter?

A parameter is the input value to a method


10.  How is the semi-colon used in the Java syntax?

A semi-colon is used to terminate a statement line


11.  How are the curly braces used in the Java syntax?

Curly brackets, { }, are used to begin and end blocks


12.  What data type stores whole numbers?

Integer      int


13.  What data type stores a collection of keyboard characters?

String       string


14.  What data type stores a single character?

Character     char


15.  What data type stores a True/False value?

Boolean


16.  What is a variable used for?

A variable is used to store a non fixed value in memory 


17.  What is the syntax for a literal string?

string exampleString = “I do love chocolate”;


18.  What is the syntax for a literal character?

char exampleChar =”A”;


19.  What is the syntax for a literal whole number?

int exampleInt = “7”;


20.  What is the increment operator?

+=


21.  What is the decrement operator?

-=


22.  What is the concatenation operator?

+


23.  What keyword is used between each case in a Switch, to stop execution of the Switch?

break


24.  What should always be the last case of a Switch?

else


25.  How is an object defined?

A class is a definition of all state and behaviours belonging to a group or item

Eg     Cake is the Class,    Chocolate, Lemon, Banana, Carrot are all objects of the class

Original Post Apr 25th 2012

Algorithm 2 & Java: Part 1



Problem description:

Each frame, X is incremented by R and Y is incremented by T. If X becomes greater than 5000 then Y is decremented by 1000. If Y becomes less than 0, Y and X are set to 0.

Inputs

R, T, X, Y

Outputs

X, Y

Processing / pseudocode

get/set X = 1000

get/set Y = 900

prompt user for value of R

prompt user for value of T

X += R

Y += T

get R

get T

If X > 5000

Y = Y - 1000

if Y < 0

Y = 0

X = 0

End if

End if

Original Post Mar 26th 2012

Java UML

Original Post Mar 18th 2012

Multivax

Multivax - The Last Question by Isaac Asimov © 1956

http://www.multivax.com/last_question.html

Original Post Mar 14th 2012

The Hero’s Journey

Original Post Mar 13th 2012

5 Heroic Qualities

Original Post Mar 4th 2012

If …Then … Else statements


If …Then … Else statements

The If Then statement tests whether an If condition is true or false - if it is true Then will execute  

The If Then Else statements test whether an If condition is true or false – if it is true Then will execute – if it is false Else will execute  

These can be used to test input values and match it against multiple conditions to provide an outcome based on whether the value is validated as true or false

The value will be tested against each condition, in order, until it is found true

If none are true Else will execute

Eg.       if Y = 1 then print 1
            if Y = 2 then print 2

            If Y = 3 then print 3    

            else print fail


Original Post Mar 4th 2012

Humanmetrics - Jung Typology Test


ISFJ

56,1,12,67

Protector - Defender

http://www.humanmetrics.com/cgi-win/jtypes2.asp

Original Post Mar 2nd 2012

Group Activity 2

Original Post Feb 28th 2012

Activity 4.4 Blog Task: Switch


Create the pseudocode for a switch statement that checks the value of a variable named Color.
The possible values include Pink, Green, Purple, Orange, Black.
The switch statement should display the color. Include an Else Case.




Original Post Feb 27th 2012

Activity 4.3 Blog Task: And


1. Read the following pseudocode:

If Number > 8 And Number < 10

Display “This number meets the condition.”

Else

Display “This number does not meet the condition.”

End If


2. Answer the following question:

What number would need to be stored in Number to make this program display the message “This number does not meet the condition”? Why?


Answer

To get the message “This number does not meet the condition” the user would have to select any number that <=8 and >=10

The pseudocode requires the number 9 to meet the condition

Original Post Feb 27th 2012

Activity 4.2 Blog Task: Or


1. Read the following pseudocode:

If Number > 8 Or Number = 10

Display “This number meets the condition.”

Else

Display “This number does not meet the condition.”

End If


2. Answer the following question:

What number would need to be stored in Number to make this program display the message “This number does not meet the condition”? Why?


Answer

To get the message “This number does not meet the condition” the user would have to select any number that <=8

The pseudocode requires any number greater than 8 to meet the condition

Original Post Feb 27th 2012

Activity 4.1 Blog Task: Apply Discount


Original Post Feb 27th 2012

Developing Algorithms


The 5 steps used to develop an algorithm 

1.    Define the problem
2.    Define the inputs
3.    Define the outputs
4.    Define processing
5.    Develop the algorithm  (pseudocode & flow chart)

Original Post Feb 27th 2012

Individual Activity: Update Environment Variables part 2




Original Post Feb 26th 2012

Individual Activity: Update Environment Variables Part 1


Step 1 : Define Problem

Each frame, X is incremented by R and Y is incremented by T. If X becomes greater than 5000 then Y is decremented by 1000. If Y becomes less than 0, Y and X are set to 0.



Original Post Feb 26th 2012