Difference between revisions of "Animation"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "==Creating Animation Class==")
 
Line 1: Line 1:
 
==Creating Animation Class==
 
==Creating Animation Class==
 +
You need to create a new class, so from the main menu click File, and select New File. Name the class Animation:
 +
 +
[[File:New file class.png|600px]]
 +
 +
You will have the following code:
 +
 +
<syntaxhighlight lang=csharp line>
 +
using System;
 +
namespace TestGame
 +
{
 +
public class Player
 +
{
 +
public Player()
 +
{
 +
}
 +
}
 +
}
 +
</syntaxhighlight>

Revision as of 20:57, 21 March 2017

Creating Animation Class

You need to create a new class, so from the main menu click File, and select New File. Name the class Animation:

New file class.png

You will have the following code:

 1 using System;
 2 namespace TestGame
 3 {
 4 	public class Player
 5 	{
 6 		public Player()
 7 		{
 8 		}
 9 	}
10 }