/SpaceHash

WWDC Swift Student Challenge submission

Primary LanguageSwift

SpaceHash

WWDC Swift Student Challenge submission - [Accecpted 🎉]

The challenge was:

Create an interactive scene in a Swift playground that can be experienced within three minutes. Be creative.

Title

SpaceHash

Description

It is a game to save the Earth by avoiding meteorites in space.

Rule

  • Earth can only move within the grid.
  • The Earth has 3 hearts.
  • When a Earth and a meteorite collide, you lose one heart.
  • Meteorite spawn off-screen and fly in the opposite direction.
  • If you eat the coins generated on the grid, you gain 100 points. And 10 points per second.

Avoid the meteorite as long as possible and save the planet!!

Screenshot

screenshot