|
|
@@ -1,27 +1,25 @@
|
|
|
# C# Beginner
|
|
|
-These tutorials cover the beginner principles of using C# when working with the Xenko game engine. Start here if you are new to Xenko or progamming. Althoug having some coding experience is useful, it is not mandatory to get started with these tutorials.
|
|
|
-
|
|
|
-
|
|
|
-You can create the C# beginner tutorial project by starting the Xenko launcher. Create a new project and select the template: Tutorials -> C# beginner. Every single scene is loaded as a child scene and demonstrates a sample script.
|
|
|
-
|
|
|
+These tutorials cover the beginner principles of using C# when working with the Xenko game engine. Start here if you are new to Xenko or progamming. Althoug having some coding experience is useful, it is not mandatory to get started with these tutorials. You can create the C# beginner tutorial project by starting the Xenko launcher. Create a new project and select the template: Tutorials -> C# beginner. Every single scene is loaded as a child scene and demonstrates a sample script.
|
|
|
|
|
|
+
|
|
|
|
|
|
+# All tutorials
|
|
|
<div class='tutorial'>
|
|
|
[
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Getting the Entity</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
+
|
|
|
<ul>
|
|
|
<li>Retrieve the entity</li>
|
|
|
<li>Retrieve the parent</li>
|
|
|
<li>Print debug text</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/getting-the-entity_thumb.png">
|
|
|
- </div>
|
|
|
](entity.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -30,17 +28,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Child entities</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Get a specific child entity</li>
|
|
|
<li>Get children in a list</li>
|
|
|
<li>Get children of children</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/child-entities_thumb.png">
|
|
|
- </div>
|
|
|
](childentities.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -49,17 +46,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>The transform</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Accessing the Transform component</li>
|
|
|
<li>Get the local postion</li>
|
|
|
<li>Get the world position</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/transform-position_thumb.png">
|
|
|
- </div>
|
|
|
](transformPosition.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -69,55 +65,52 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Editor properties</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Defining various editor properties</li>
|
|
|
<li>Defining lists</li>
|
|
|
<li>Hiding public properties</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/editor-properties_thumb.png">
|
|
|
- </div>
|
|
|
](editorProperties.md)
|
|
|
</div>
|
|
|
|
|
|
<div class='tutorial'>
|
|
|
[
|
|
|
<div class='tutorial_title'>
|
|
|
- <h2>Get a component</h2>
|
|
|
+ <h2>Getting a component</h2>
|
|
|
+ </div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
</div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Getting a component</li>
|
|
|
<li>Remove a component</li>
|
|
|
<li>Access methods of other components</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/getting-a-component_thumb.png">
|
|
|
- </div>
|
|
|
](getComponent.md)
|
|
|
</div>
|
|
|
|
|
|
<div class='tutorial'>
|
|
|
[
|
|
|
<div class='tutorial_title'>
|
|
|
- <h2>Add a component</h2>
|
|
|
+ <h2>Adding a component</h2>
|
|
|
+ </div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
</div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Adding a component</li>
|
|
|
<li>Removing all components of 1 type</li>
|
|
|
<li>Create a component if it doesn't exists</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/adding-a-component_thumb.png">
|
|
|
- </div>
|
|
|
](addComponent.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -127,17 +120,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Delta time</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Retrieving delta time</li>
|
|
|
<li>Making a simple timer</li>
|
|
|
<li>Making a simple countdown timer</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/deltatime_thumb.png">
|
|
|
- </div>
|
|
|
](deltaTime.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -146,17 +138,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Cloning an entity</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Cloning an entity</li>
|
|
|
<li>Adding an entity to the current scene</li>
|
|
|
<li>Adding an entity as a child to a parent entity</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/cloning-entities_thumb.png">
|
|
|
- </div>
|
|
|
](cloningEntities.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -165,17 +156,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Removing an entity</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Cloning new entities using a timer</li>
|
|
|
<li>Removing entities using a timer</li>
|
|
|
<li>Removing an entity from the scene</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/removing-entity_thumb.png">
|
|
|
- </div>
|
|
|
](removeEntity.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -185,17 +175,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Keyboard input</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Holding down a key</li>
|
|
|
<li>Clicking a key</li>
|
|
|
<li>Releasing a key</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/keyboard-input_thumb.png">
|
|
|
- </div>
|
|
|
](keyboardInput.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -204,17 +193,17 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Mouse input</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Holding down a mousebutton</li>
|
|
|
<li>Clicking or releasing a mousebutton</li>
|
|
|
+
|
|
|
<li>Using the mouse wheel </li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/mouse-input_thumb.png">
|
|
|
- </div>
|
|
|
](mouseInput.md)
|
|
|
</div>
|
|
|
|
|
|
@@ -223,17 +212,16 @@ You can create the C# beginner tutorial project by starting the Xenko launcher.
|
|
|
<div class='tutorial_title'>
|
|
|
<h2>Virtual buttons</h2>
|
|
|
</div>
|
|
|
+ <div class='xk-documentation-image'>
|
|
|
+ 
|
|
|
+ </div>
|
|
|
<div class='tutorial_description'>
|
|
|
- What do you learn?
|
|
|
<ul>
|
|
|
<li>Defining a virtual key configuration</li>
|
|
|
<li>Binding input to the configuration</li>
|
|
|
<li>Using the virtual buttons</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class='tutorial_thumb'>
|
|
|
- <img src="media/virtual-buttons_thumb.png">
|
|
|
- </div>
|
|
|
](virtualButtons.md)
|
|
|
</div>
|
|
|
|