Giter Club home page Giter Club logo

steroids's Introduction

A casual game in Flutter intended as a web app, based on Flutter's Casual Game toolkit and Flame.

Steroids

Status

Getting started

This link launches a web app in your browser.

Launch the web app

Tap play, select a level, and fly your ship to collect minerals from asteroids. Use the arrow keys for movement:

  • turn left (arrow up).
  • turn right (arrow up).
  • thrust (arrow up).
  • Use the space bar to fire a dumb torpedo.
  • Collect small blue asteroids by scooping them up.
  • Blast larger asteroids into smaller ones. Avoid hitting larger asteroids as they damage your ship.
  • Dock with the space station at the center to deposit your booty and get more ship power.
  • Watch for powerups: power restore and fire faster.
  • Watch out for Aliens and Pirates! Pirates take your booty. Aliens want to blow you out of space.
  • Don't let your ship power fall to zero. You'll lose the level.

Screenshot

Development

To run the app in debug mode:

flutter run

This assumes you have an Android emulator, iOS Simulator, or an attached physical device.

To run in a browser:

flutter run -d chrome

Code organization

Code is organized in a loose and shallow feature-first fashion. In lib/src, you'll therefore find directories such as ads, audio or main_menu. The main game code is built with Flame, under game.

lib
├── src
│   ├── ads
│   ├── app_lifecycle
│   ├── audio
│   ├── crashlytics
│   ├── game_internals
│   ├── games_services
│   ├── game
│   ├── in_app_purchase
│   ├── level_selection
│   ├── main_menu
│   ├── play_session
│   ├── player_progress
│   ├── settings
│   ├── style
│   └── win_game
├── ...
└── main.dart

The state management approach is intentionally low-level. That way, it's easy to take this project and run with it, without having to learn new paradigms, or having to remember to run flutter pub run build_runner watch.

Building for production

Once a PR is merged to main, the web app will automatically build and deploy to the app link above. This repo uses the Git actions by bluefireteam

Integrations

See Flutter's Casual Game toolkit.

steroids's People

Contributors

cybaker avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.