You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/learn/tutorial/01_platformer/page.html
+57-4Lines changed: 57 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,12 @@ <h3 class="black">Creating a level</h3>
114
114
115
115
<imgsrc="images/h.png" class="img-normal"></img>
116
116
117
+
<p>If you are having some trouble completing this part of the tutorial you can download the project fileou can download the <aclass="underline" href="steps/a.nsp">project file</a> or open it on the <aclass="underline" href="https://www.nunustudio.org/editor/editor?nsp=https://nunustudio.org/learn/tutorial/01_platformer/steps/a.nsp">Web Editor</a>.</p>
<p>If you are having some trouble completing this part of the tutorial you can download the project fileou can download the <aclass="underline" href="steps/b.nsp">project file</a> or open it on the <aclass="underline" href="https://www.nunustudio.org/editor/editor?nsp=https://nunustudio.org/learn/tutorial/01_platformer/steps/b.nsp">Web Editor</a>.</p>
<p>We got our player moving but we still cant die, and dont have any obstacles to avoid or enemies to kill. Dont worry we will take care of that now.</p>
<p>You should have now a moving enemy in your game, duplicate the created script and attach it to other object to make them move as well, try to create a moving platform like the ones in super mario games.</p>
371
382
383
+
<p>If you are having some trouble completing this part of the tutorial you can download the project fileou can download the <aclass="underline" href="steps/c.nsp">project file</a> or open it on the <aclass="underline" href="https://www.nunustudio.org/editor/editor?nsp=https://nunustudio.org/learn/tutorial/01_platformer/steps/c.nsp">Web Editor</a>.</p>
<p>To add support for gamepad input we can create a Gamepad object in our script, the gamepad object allows us to get input from an USB gamepad, different gamepads might have different button mapping you can use <aclass="underline" href="http://html5gamepad.com/">this website</a> to check you gamepad button mapping. To check the name of other buttons in the Gamepad check the <aclass="underline" href="../../../docs/classes/Gamepad.html">Gamepad API documentation</a>.</p>
<p>Now we already have all basic blocks to make a complete platformer level lets take them and build complete level with actuall game assets. To make it easier to overview our level we can use the 2D editor mode (can be toggled in the top right corner of the scene explorer).</p>
411
+
<p>Now we already have all basic blocks to make a complete platformer level lets take them and build complete level with actual game assets and tweak gameplay a little bit. To make it easier to overview our level we can use the 2D editor mode (can be toggled in the top right corner of the scene explorer).</p>
395
412
396
-
<imgsrc="images/n.png" class="img-normal"></img>
413
+
<imgsrc="images/n.png" class="img-big"></img>
397
414
398
-
<p>Were almost done now its the time to add textures and decoration to our level, this is a good time to experiment to use some of the decoration objects like Particles, LensFlare, etc. I haven't done much regarding decoration simply added a couple of materials and colored everything up.</p>
415
+
<p>Were almost done now its the time to add textures and decoration to our level, this is a good time to experiment to use some of the decoration objects like Particles, LensFlare, etc. I haven't done much regarding decoration simply added a couple of materials and colored everything up, added a LensFlare effect and some particles floating around the level.</p>
399
416
400
417
<imgsrc="images/p.png" class="img-normal"></img>
401
418
419
+
<p>Since the player movement was also a little slow i tweaked it a bit by adding the option to run using the keyboard shift key and tweaking the movement to have an acceleration curve instead of instant move.</p>
420
+
<p>At the beginning of this tutorial i was planning to change the cube for a ball or lock its rotation but since i find it kinda of funny to see the cube tumbling around so i will leave it like this.</p>
<p>If you were able to make it this far congratulations, you have created an awseome platformer game. This should cover all the basic aspects for platformer games. If you have any doubt about any of the steps in the tutorial, feel free to ask me about it.</p>
404
457
<p>You can try the final result of this tutorial bellow (wasd keys to move), you can also download the <aclass="underline" href="platformer.nsp">project file</a> or open it on the <aclass="underline" href="https://www.nunustudio.org/editor/editor?nsp=https://nunustudio.org/learn/tutorial/01_platformer/platformer.nsp">Web Editor</a>.</p>
0 commit comments