Giter VIP home page Giter VIP logo

space-empires's Introduction

Dart Flutter Awesome Flutter style: lint

Space Empires ๐Ÿ›ธ

Introduction ๐Ÿš€

Space Empires A 4X Space themed Strategy Game made with Flutter

Complete Rules and Instruction can be accessed from the game or here

Before we start, you can take a look at the app:

Attributions ๐Ÿ™

All the assets used in this product belong to their rightful owners and were available for Non-Commercial Use

Usage ๐ŸŽจ

To clone and run this application, you'll need git and flutter installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/SatyamX64/space_empires

# Go into the repository
$ cd space_empires

# Install dependencies
$ flutter packages get

# Run the app
$ flutter run

Features โšก

  • Cross Platform
    • Web (Tested)
    • Android (Tested)
    • Ios (Not Tested)
  • Responsive (Works in both Orientations)
  • Adaptive (Works Beautifully in almost all screen sizes)
  • A basic custom Computer AI

Current Progress โœ”๏ธ

  • All the Essential Screens/Views are done
  • All the required actions for Player and Computer are defined and working
  • All the Buildings/Stats/Upgrades/Ships have the desired effect
  • The game follows all the defined rules
  • Computer AI can take all the actions, just like a regular player
  • Null-Safe and follows Lint Guidlines

Things that need attention ๐Ÿ”ง

  • A better budget allocation strategy for computer AI
  • The AI can be too aggressive sometimes
  • A better chat and relations strategy for Computer AI
  • A more balanced Stats allocation and reward system
  • Audio Effects
  • Refactoring and Optimization
  • Your health and happiness :)

Most of these can be fixed by just tweaking the constant values and numbers. (services>game.dart) Associated TODO tags can be found over the Project, so feel free to play around with the values. The Project will remain open-source and any contribution or feedback will be highly appreciated

Packages ๐Ÿ“ฆ

These are the packages used in this Project

Package Description
after_layout Helps execute code after the first layout of a widget has been performed
animated_text_kit Provides Cool and Beautiful Text Animations
carousel_slider For Slidable Cards
flutter_animated_dialog For Animated Dialogs
flutter_staggered_grid_view For Planets Alignment
flutter_svg To render SVG
provider Provider State Management
lottie For Lottie Animations
sizer Helps with Responsiveness
rive For Rive Animations
shared_preferences For Data Persistance
lint Rules handler for Dart

Directory Structure ๐Ÿข

The project directory structure is as follows:

โ”œโ”€โ”€ android
โ”œโ”€โ”€ asset
โ”œโ”€โ”€ build
โ”œโ”€โ”€ ios
โ”œโ”€โ”€ lib
โ”œโ”€โ”€ analysis_options.yaml
โ”œโ”€โ”€ pubspec.lock
โ”œโ”€โ”€ pubspec.yaml

image

Directory Description
models Contains Model Class for Ships, Planets, Rulers
screens Contains the UI class for all the Screens
services Contains the Game Service, Player Service and all Core Logic
utility Contains app-wide constants, common functions
widgets Contains UI Blocks and Other Functional Elements

Some shots from the Game (old)

welcome_screen_landscape

Game Screen

Control Panels

Planet Info

planet_stats_landscape planet_upgrades_landscape planet_defense_landscape

space-empires's People

Contributors

satyamx64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

space-empires's Issues

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.