Skip to content

A space shooter built with Electron & Xethya components.

License

Notifications You must be signed in to change notification settings

joelalejandro/lagos-sector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lagos Sector

This is a proof-of-concept space shooter 2D game for testing several components of the Xethya framework. It uses Electron too, and has just ~700 JavaScript SLoC so far (as of commit 7963874).

As development advances with Xethya, this game will get updates.

┌───────────┬──────────┬────────┬─────────┬─────────────────────┬───────────────┬───────┬───────┬───────┐
│ Extension │ Physical │ Source │ Comment │ Single-line comment │ Block comment │ Mixed │ Empty │ To Do │
├───────────┼──────────┼────────┼─────────┼─────────────────────┼───────────────┼───────┼───────┼───────┤
│ - Total - │ 1719     │ 1413   │ 57      │ 42                  │ 15            │ 2     │ 251   │ 1     │
├───────────┼──────────┼────────┼─────────┼─────────────────────┼───────────────┼───────┼───────┼───────┤
│ scss      │ 782      │ 694    │ 8       │ 6                   │ 2             │ 2     │ 82    │ 0     │
├───────────┼──────────┼────────┼─────────┼─────────────────────┼───────────────┼───────┼───────┼───────┤
│ js        │ 897      │ 679    │ 49      │ 36                  │ 13            │ 0     │ 169   │ 1     │
├───────────┼──────────┼────────┼─────────┼─────────────────────┼───────────────┼───────┼───────┼───────┤
│ html      │ 40       │ 40     │ 0       │ 0                   │ 0             │ 0     │ 0     │ 0     │
└───────────┴──────────┴────────┴─────────┴─────────────────────┴───────────────┴───────┴───────┴───────┘

Check out current stats by running npm run code-metrics.

How to play

Until binaries are released:

git clone https://github.com/joelalejandro/lagos-sector
cd lagos-sector
npm install
npm run game

Screenshots

Screenshot 1 Screenshot 2

Components used

  • xethya-dice: Used for random-related actions (damage levels, spawners, etc.)
  • xethya-entity: Every element on stage is either a SkilledEntity or a plain, basic Entity.
  • xethya-native-extensions: Used to apply a mixin pattern.

Assets

Assets have been pulled off from OpenGameArt.org:

Sprites

Sounds

Music

Fonts