Skip to content

fbgoode/spacex-royale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


SpaceX Royale

A spaceship fighting game with a misleading name.


AboutUsageFeatures


! Disclaimer: Rapid prototyping - Not clean code

About

This app was developed as a training exercise. Check out the result here.

SpaceX Royale is a two player game built with HTML5, CSS3 and JS ES6. The objective with this exercise was to quickly build any sort of fighting game with zero external libraries and interesting mechanics. The result includes a physics engine with collision detection, particle support and more.

The game may be played in any modern browser. It can be played on any device in landscape orientation, as long as a keyboard is available. Limited support for GamePad is provided.


Screenshot (PC, Chrome v87)

About the game

The year is 2035. With an exponential growth in wealth, in the last 15 years Elon Musk has gone from being the richest man in Earth to accumulating more wealth than 50 years worth of the planet's GDP. Musk, who already is president of Mars, decided to buy planet Earth in order to take down goverment's regulations in benefit of his business operations. In his infamous campaign to buy the Earth he persuaded voters of the "Earth Sale Referendum" to vote Yes by promising to take care of climate change once and for all. With an overwhelming majority of 92%, it was democratically decided that planet Earth would be sold to Musk, and that he would have the last word in the organization of Earth's resources and inhabitants. What nobody expected, is Musk's plan to end climate change was based on cutting the planet's population in half, and not exactly by the traditional means... The whole world population was divided into Team Blue and Team Red, and everyone would have to take part in a one of the millions upon millions of organized battles aboard SpaceX's brand new Battle StarShips. Whoever survived their battle would get to live in Musk's New Earth.

Are you ready for your battle?

Usage

You may play the game directly from its GitHub Pages deployment.

The game is a 2-player 3vs3 spaceship battle. Player 1 and 2 select their 3 spaceships and their weapons in a given order. With each selection, it's important to pick the combinations that will give you the best chance to defeat your enemy's ship.


Screenshot - PVP Menu (PC, Chrome v87)

Once the selections are confirmed the battle starts. Your ships can shoot, yaw and propell sideways and backwards, but they're faster when moving forward using the main booster. The objective is to destroy all 3 enemy ships before your oponent destroys yours. Look out for the special items too!


Screenshot - Controls (PC, Chrome v87)


Features

  • Game for two players on same device
  • Game physics & graphics engine built from scratch
  • One gamemode: 3 vs 3 battle
  • 3 different spaceships to choose from: Tincan, Trooper & Heavy
  • 3 different weapons to choose from: Classic, Double & Cannon
  • Game controls with keyboard + limited GamePad/Joystick support for a better 2 player experience
  • Menu navigation with keyboard, GamePad or mouse
  • Responsive (although designed for landscape-oriented devices)
  • Only requires browser with HTML5, CSS3 and JS ES6 support
  • Includes music and sounds

About

A spaceship fighting game with a misleading name.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published