SuperAwtrix is the first bigger game for your awtrix. This thread is about to talk about the game, developing together and creating new maps.
You will find the game in the Appstore. After installation you can play it under "Extras->Arcade".
When you select the game the webinterface will transform to a gamepad on your smartphone.
If you access the page on your PC you can also connect a real USB Controller to your PC and play with it !
SuperAwtrix uses some new methods for playing sounds with the DFplayer. therefore you need at least Host 10820 and Controller 0.35
You can download the new soundpack here. Unzip it and copy the 2 folders to the root of your DFplayer SD-Card
at the start, SuperAwtrix doesnt come with any maps. To play with it a bit you can download my demomaps from here. This public folder is also for sharing your maps. If your using your own music you can also upload it (just zip it with your map together). Please note that the uploaded music file needs to be royalty free. So youre allowed to share it
Copy the levels to /Apps/SuperAwtrix of your Awtrix installation. This folder is generated after installing the Game.
Creating maps is really easy and you dont need to write any line of code. Every map is build from tiles wich is defined in a simple textfile. Every character stands for a differend type of block. For example:
Pretty simple, he?
Lets describe what you see in the picture:
The first line is just a free text area for description etc.
The second line contains the map music from the DFplayer
"_" Empty pixel, player and enemies can move there.
"G" Ground of the Map. A fix block with a green color.
"#" Platform. A fix block with a brown color.
"+" Breakable block. The player can destroy this block after the third hit from the bottom.
"O" Coin wich is collectable by the player.
"<" Enemy which starts to move to the left. This character needs to be follow by a number from . The number tells the enemy how fast it should move from 1 (slow) to 3 (fast) e.g <1. Enemies change their direction when they touch a block.
">" Enemy which starts to move to the right. This character needs to be follow by a number from . The number tells the enemy how fast it should move from 1 (slow) to 3 (fast) e.g <1. Enemies change their direction when they touch a block.
"T" is the goal of the map and is drawed as a flag. If the Player passes this flag the level is finish and the next level will be loaded.
"S" SuperFood. If a player collect this Item he gets the GodMode for 7,5 seconds. In this mode the player is invincible and kill enemies when he touches one. The Player also can jump 4 pixel high instead of 3.
- The textfile needs to be exactly 10 lines. The map is always 8 lines high (starting from line 3) but can be as long as you want for your map.
- You dont need to restart AWTRIX to load a new map. At every Map change the file will be loaded fresh from your mapfile.
- The mapfile name needs to be level-1.txt. Of course change the number as you like.
You will find the game sourcecode here