rgb_invaders

RGB Invaders

A small arcade game for Android and iOS, written in Flutter.

Invader-style monsters in seven colours fall from the top of the screen. Use the Red, Green and Blue buttons to fire a circle that grows out from the bottom of the screen:

Sounds

Sound effects play through flutter_soloud, the same engine as rigobert. The clips in assets/sounds/ are generated by a script; edit tool/make_sounds.py and run python3 tool/make_sounds.py (needs numpy) to change them. Each colour’s firing sound uses the same note as that colour combination in rigobert. The speaker button in the top-right corner mutes the game, and the setting is remembered.

App icon

The icon is the game’s invader in rainbow rows of the six colours. Every size is generated by tool/make_icons.py; edit it and run python3 tool/make_icons.py (needs Pillow) to regenerate:

Ads and tipping

Set up the same way as rigobert:

Before a release:

  1. Create the RGB Invaders app in AdMob with one interstitial unit per platform. Put the app IDs in android/app/src/main/AndroidManifest.xml and ios/Runner/Info.plist, which currently hold Google’s test IDs. Put the unit IDs in lib/services/ad_service.dart. Release builds show no ads until this is done.
  2. Create three consumable in-app products:
    • App Store Connect: com.mermik.rgbinvaders.tip_small, …tip_medium, …tip_large
    • Play Console: tip_small, tip_medium, tip_large

Leaderboard

One global leaderboard, using Game Center on iOS and Play Games on Android:

Before a release (the leaderboard is hidden until this is done):

  1. App Store Connect: enable Game Center for the app and create a Classic leaderboard, com.mermik.rgbinvaders.highscores, sorted high to low. The Game Center entitlement is already in ios/Runner/Runner.entitlements.
  2. Play Console: set up Play Games Services, create a leaderboard, add the SHA-1 fingerprints (debug, upload and app signing key) to the credentials, and publish the Play Games configuration. Put the project ID in android/app/src/main/res/values/games-ids.xml.
  3. Put both leaderboard IDs in lib/services/leaderboard_service.dart.

Release signing

Running

flutter run            # on a connected device or simulator
flutter test           # game-logic tests

Code