-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path36_haxepunk_shooting_game_source_code.html
67 lines (34 loc) · 3.19 KB
/
36_haxepunk_shooting_game_source_code.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<html><head><style>body{font-family:Arial, Helvetica, sans-serif; padding:20px;}pre{ background:#eee; padding:20px; }footer{color:#666; border-top:1px solid #666; margin-top:20px; padding-top:20px; width:100%;}</style><title>36. HaxePunk shooting game: Source code</title></head><body><h1>36. HaxePunk shooting game: Source code</h1><h3>2014-10-07</h3><img class="thumb" alt="HaxePunk shooter game source code" src="img/71.png">
<p>Over the past 11 days I've been writing a tutorial series on creating a shooter game using Haxe, OpenFL and HaxePunk framework.</p>
<p>This is the final post, which contains links to the full source code and assets, as well as links to separate tutorial parts.</p>
<p>After following all the tutorial parts you will end up with a fully functional shooter game.</p>
<p>This aim of this tutorial series was to acquaint you with the basics of almost every aspect of the HaxePunk framework.</p>
<p>Let's take a look at the list of features that our game now has:</p><ol>
<li>Player's ship can be moved using the arrow keys.</li>
<li>Shoot by holding the space bar.</li>
<li>Destroy enemy ships for score.</li>
<li>Colliding an enemy ship results in a life loss.</li>
<li>The game is lost when there are no lives left, and can be restarted using the enter key.</li>
<li>The game can be paused at any time using the P key.</li>
<li>The game stores player's highscore locally, so it is saved even if you close and re-open the game.</li>
<li>Power ups can be collected for additional lives.</li>
<li>The game has stereo audio effects.</li>
</ol>
<p>All of the source code and assets can now be found at the <a href="https://github.com/KirillPoletaev/HaxePunk-shooter-game">GitHub repository</a>.</p>
<p>If you want to follow the step-by-step guide on creating this game from scratch, check out the links below.</p>
<p>You'll firstly need to install HaxePunk. The whole process is described <a href="24_haxepunk_tutorial_getting_started.html">in this tutorial</a>.</p>
<p>The tutorial series consists of 11 parts. Here they are:</p>
<ol>
<li><a href="25_haxepunk_shooting_game_tutorial_part_1.html">Project base, texture packing using Atlas, movement, debugging</a></li>
<li><a href="26_haxepunk_shooting_game_tutorial_part_2.html">Shooting</a></li>
<li><a href="27_haxepunk_shooting_game_tutorial_part_3.html">Destroyable enemies</a></li>
<li><a href="28_haxepunk_shooting_game_tutorial_part_4.html">Enemy health and particles using Emitter</a></li>
<li><a href="29_haxepunk_shooting_game_tutorial_part_5.html">Score display</a></li>
<li><a href="30_haxepunk_shooting_game_tutorial_part_6.html">Stereo sound effects using Sfx</a></li>
<li><a href="31_haxepunk_shooting_game_tutorial_part_7.html">Pause the game</a></li>
<li><a href="32_haxepunk_shooting_game_tutorial_part_8.html">Player's life counter</a></li>
<li><a href="33_haxepunk_shooting_game_tutorial_part_9.html">Losing and restarting the game</a></li>
<li><a href="34_haxepunk_shooting_game_tutorial_part_10.html">Powerups</a></li>
<li><a href="35_haxepunk_shooting_game_tutorial_part_11.html">Saving Highscore locally using Data</a></li>
</ol>
<p>Enjoy!</p><footer>© Kirill Poletaev</footer></body></html>