Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (48 sloc) 2.6 KB
title brief github
War battles tutorial
In this tutorial you will create the embryo of a small shooter game. This is a good starting point if you are new to Defold.

War battles tutorial

In this tutorial you will learn how to create a small playable game featuring movement and firing mechanics.

The tutorial is integrated with the Defold editor and easily accessible:

  1. Start Defold.
  2. Select New Project on the left.
  3. Select the From Tutorial tab.
  4. Select the "War battles tutorial"
  5. Select a location for the project on your local drive and click Create New Project.

new project{srcset="images/new-war-battles@2x.png 2x"}

The editor automatically opens the "README" file from the project root, containing the full tutorial text.

icon{style="display:inline;margin:0 0.5rem 0 0;vertical-align: middle;"} You can also read the full tutorial text on Github

To get an idea about what you are about to build, you can try the game here. Move with the arrow buttons and fire with space.

START GAME <script src="//storage.googleapis.com/defold-doc/assets/dmloader.js"></script> <script src="//storage.googleapis.com/defold-doc/assets/dmengine_1_2_106.js" async></script> <script> /* Load app on click in container. */ document.getElementById("game-button").onclick = function (e) { var extra_params = { archive_location_filter: function( path ) { return ("//storage.googleapis.com/defold-doc/assets/war-battles" + path + ""); }, load_done: function() {}, game_start: function() { var e = document.getElementById("game-preview"); e.parentElement.removeChild(e); } } Module.runApp("game-canvas", extra_params); document.getElementById("game-button").style.display = 'none'; document.getElementById("game-button").onclick = null; }; </script>

If you get stuck, head over to the Defold Forum where you will get help from the Defold team and many friendly users.

Happy Defolding!