Warriors Last Dance Documentation by slotgen


Warriors Last Dance

Created: 16/12/2025
Updated: 16/07/2026
By: Slotgen
Email: contact@slotgen.com

Thank you for purchasing my code. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Table of Contents

  1. About the Game
  2. Feature List
  3. Package Contents
  4. Technical Requirements
  5. Project Structure
  6. Event Sheets & Game Logic
  7. Modifying Game Variables
  8. Change Graphics
  9. Upload to Your Website
  10. Construct File (.c3p)
  11. Export as APK / Other Platforms
  12. Embed HTML5 Game WordPress Plugin
  13. Troubleshooting
  14. Extended License

A) About the Game - top

Warriors Last Dance is an HTML5 slot machine game built with Construct 3. It is a 5-reel, 3-row video slot with 20 fixed paylines, a scatter-triggered free spins feature, cascading (drop) symbols, and Big Win / Mega Win / Super Mega Win celebration sequences. The game runs in any modern browser on desktop and mobile, and the full Construct 3 source project (.c3p) is included so you can reskin, rebalance, and re-export it however you like.


B) Feature List - top


C) Package Contents - top


D) Technical Requirements - top

To play / host the game (HTML5 export):

To edit the game (.c3p source):

To export as a mobile app (optional): a Construct 3 subscription, plus the standard Android (Cordova) / iOS (Cordova) export workflow — see Export as APK.


E) Project Structure - top

Construct 3 project (.c3p):

ItemDescription
Layouts → mainThe game screen. Contains the reel grid, buttons (spin, turbo, auto spin, bet +/−), paytable, history panel, free-spin choice screen and menu.
Layouts → obsAn off-screen “object bank” layout that holds object instances so they can be created at runtime.
Event sheets → MainCore game logic (~180 event blocks) — see section F.
Event sheets → BigWinBig/Mega/Super Mega Win detection and celebration sequence (~30 event blocks).
Event sheets → HistorySpin history recording, paging and detail view (~40 event blocks).
Object typesAll sprites, texts and UI objects, organised in folders (BigWin, History). Families are used for symbols, buttons and big-win effects.
Sounds / MusicAll audio as .webm (opus): reel stops 1–5, drop, button, scatter, big-win stingers, background and free-spin music.
FontsCarre-JWja.ttf — the display font used by all text objects.

HTML5 export (inside HTML file/Warriors Last Dance.zip):

File / folderDescription
index.htmlEntry point — open this via your web server to run the game.
data.jsonExported project data (layouts, events, settings).
style.cssPage styling for the game canvas.
scripts/Engine and loader scripts generated by the Construct 3 exporter: c3runtime.js (the Construct runtime), main.js, c3main.js, dispatchworker.js / jobworker.js (web-worker rendering), supportcheck.js, modernjscheck.js, offlineclient.js, register-sw.js.
sw.js, offline.json, appmanifest.jsonService worker, offline cache list and web app manifest (PWA/offline support).
images/, media/, fonts/, icons/Sprite sheets, audio/music, font and app icons.

A note on the exported scripts: the files in scripts/ plus sw.js are machine-generated by Construct 3’s official exporter and are not hand-written code — the engine always emits them in compact form. They are not meant to be edited directly. The original, readable source of this game is the included Warriors Last Dance.c3p project: all game logic lives in the visual event sheets, which you open and edit in the Construct 3 editor. To regenerate the files in scripts/, simply re-export the .c3p from Construct 3 (Menu → Project → Export → Web).


F) Event Sheets & Game Logic - top

All game logic is implemented visually in three event sheets. Each sheet is organised into named groups so you can find and modify features quickly:

Main (core gameplay):

BigWin:

History:

There is also a small amount of JavaScript inside events (exported as scripts/project/javaScriptInEvents.js), used for helper calculations; it is readable in the export and editable inside the event sheets.


G) Modifying Game Variables - top

Open the .c3p in Construct 3, open the Main event sheet, and edit the global variables at the top of the sheet (right-click a variable → Edit). The most useful ones:

VariableDefaultWhat it does
balance1000Player’s starting credit.
BaseBet20Base bet amount. Total bet = BaseBet × BetLevel.
BetLevel1Starting bet level (changed in-game with the +/− buttons).
PayoutAPayoutHe.g. 3|10|50Payout table per symbol, formatted 3-of-a-kind|4-of-a-kind|5-of-a-kind. A is the lowest symbol, H the highest (e.g. PayoutH = 50|250|2500). Change these to rebalance the game — the in-game paytable updates automatically.
lines20 patternsThe paylines. Each payline is 5 grid positions (1–15, reading the 5×3 grid) separated by commas; paylines are separated by |. Add or remove patterns to change the number of lines.
ReelSpeed1500How fast symbols fall (pixels/second). Higher = faster spins.
Turbo1Speed multiplier applied in turbo mode.
DropMulti1Starting multiplier for cascade wins.
distanceV / distanceH140Vertical/horizontal spacing between symbols — only change if you resize the symbol art.
xTop, yTop, yBot77 / 420 / 980Reel grid geometry (left edge, top row Y, bottom row Y).

In the BigWin event sheet:

VariableDefaultWhat it does
PerBW20Big Win threshold — shown when win ≥ 20× total bet.
PerMG35Mega Win threshold (win ≥ 35× bet).
PerSMG50Super Mega Win threshold (win ≥ 50× bet).
timechange8,5,6Timing (seconds) of the Big → Mega → Super Mega transitions.

After changing variables, press F5 in the editor to preview, then re-export (Menu → Project → Export → Web) to update your hosted version.


H) Change Graphics - top

First, you open the .c3p file and determine the object to change the graphics.

Then follow the instructions below:


Select the image to replace stored in your folder.

Tip: keep replacement images close to the original dimensions (symbols are spaced 140px apart on a 720×1280 layout). If you change symbol sizes, adjust distanceV, distanceH, xTop, yTop and yBot in section G.


I) Upload to Your Website - top

You need hosting to upload it and share the link with your friend to play.

Some free hosting:

You can unzip HTML file/Warriors Last Dance.zip and upload its contents directly to your website. I would suggest using FileZilla for that. Login to your FTP account of your domain, create a new folder for the game and move all exported files onto the server in FileZilla.

Step 1: (Only if re-exporting yourself) From the Construct 3 window, click on the "Menu" button then select "Export" or press F6. Then select "Web".

Step 2: After the file has been downloaded, extract it.

Step 3: Open the FileZilla window and log in. You need to have the following information: Host, Username, Password; in the Port section type 21. Then right click and select Create Directory.

Finally, you proceed to import the previously extracted files. Then go to your server link and add the path "/game-name" after it.


J) Construct File (.c3p) - top

The Construct 3 file (.c3p) contains all sources and game mechanics and is included in this package for all buyers. Open it in the editor at https://editor.construct.net/ (install the free “Better Outline” addon first — see Technical Requirements).
In order to export your game, you are required to get a Construct 3 license. You can get the license here: https://www.construct.net/en/make-games/buy-construct


K) Export as APK / Other Platforms - top

Step 1.

Open the .c3p in the editor.

Step 2.

Go to Menu -> Project -> Export

Step 3.

Choose Android (Cordova), iOS (Cordova) or Web (HTML5) according to which platform you want to export to.


L) Embed HTML5 Game WordPress Plugin - top

Using the Embed HTML5 Game plugin, you can easily embed your HTML5 game into your WordPress post, page, or widget. Embed HTML5 Game can make your HTML5 game fit on any screen size.

Shortcode output is based on iframe, so your embedded content will be supported on any modern browser.

Installation:

Screenshots:


M) Troubleshooting - top

1. Black screen / nothing loads when I double-click index.html.
Construct 3 games cannot run from the file:// protocol — browsers block the game’s data requests for security reasons. Always run the game from a web server. For quick local testing use one of these in the game folder:

# Python
python -m http.server 8000
# then open http://localhost:8000

# Node
npx http-server -p 8000

or use XAMPP/WAMP, or the “Live Server” extension in VS Code.

2. CORS errors in the browser console (“blocked by CORS policy”).
This happens when the game files are loaded from a different origin (domain/port) than the page, or from file://. Fixes: serve all game files from the same domain as the page; if you must host the game files on a CDN or different subdomain, send the header Access-Control-Allow-Origin: https://your-site.com for the game files; when embedding with an iframe, point the iframe directly at the game’s own index.html URL rather than importing scripts across domains.

3. Audio or fonts don’t load (404 or MIME-type errors).
Some servers don’t know the correct MIME types. For Apache, add this to your .htaccess:

AddType video/webm .webm
AddType application/json .json
AddType font/ttf .ttf

For Nginx, add the equivalent entries to your mime.types. For IIS, add the MIME mappings in the site settings.

4. No sound until I tap/click.
This is normal: mobile and desktop browsers block autoplaying audio. Sound starts after the first user interaction — this is a browser policy, not a bug.

5. I replaced files on my server but the old version still shows.
The service worker (sw.js) caches the game for offline play. After updating files, do a hard refresh (Ctrl+F5), or clear site data in the browser (DevTools → Application → Clear storage). When re-exporting from Construct 3, the export gets a new version automatically and updates on the second load.

6. Offline / “install app” features don’t work.
Service workers require HTTPS (or localhost). Make sure your site has a valid SSL certificate and that sw.js is served from the game’s own folder.

7. Construct 3 says an addon is missing when opening the .c3p.
Install the free Better Outline addon by skymen (see Technical Requirements), then re-open the project. Also make sure you are on Construct 3 r466 or newer.

8. The game looks stretched or has black bars.
The project uses letterbox scale at 720×1280. Black bars on very different aspect ratios are expected; to change this behaviour, open the .c3p and change “Fullscreen mode” in Project Properties.


N) Extended License - top

If you bought the Extended License I will reskin the game (use your graphics, create a new logo) for free.

Once again, thank you so much for purchasing this code. As I said at the beginning, I'd be glad to help you if you have any questions relating to this code. No guarantees, but I'll do my best to assist. If you have a more general question relating to the code on Codecanyon, you might consider visiting the forums and asking your question in the "Item Discussion" section.

Slotgen

Go To Table of Contents