Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
/ sails Public archive
forked from Feenposhleen/js13k23

Sails! - a js13kGames 2023 competition entry by @Feenposhleen.

Notifications You must be signed in to change notification settings

js13kGames/sails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sails!

You are an aspiring trader, fighting against the clock to make sweet, sweet deals. This game is a submission to the 2023 edition of the js13k competition. The theme was "13th century".

Tech

The game renders vector sprites onto a 2D canvas. The sprite engine allows to connect behaviors to sprites (like an ultra light ECS). The most novel thing is the custom vector sprite format and the editor that allows you edit it (found in the /dev folder). The vector sprite format simply concatenates polygon point data and colors into a single array, to save space compared to using SVGs or similar.

Bunding

Bundling and processing simply consists of concatenating all the .js files in /src (hence the naming of those), running the result through Closure Compiler, and then inserting the resulting code into the template file at the root of the project along with the CSS. The final artifact is a single index.html that has everything built in.