Coder Social home page Coder Social logo

octopush's People

Watchers

 avatar  avatar

octopush's Issues

Challenge Repository

Read from assets/challenge.json and save in SQLite DB

Table challenge {
    time_interval PK NOT NULL
    name TEXT NOT NULL
    description TEXT NOT NULL
    lowest_reward INT NOT NULL
    highest_reward INT NOT NULL
    done BOOL DEFAULT false
}

ChallengeRepository will handle loading challenge from DB

When interval is incremented from Home, ChallengeRepository will be queried with param time_interval

Feature - Transaction History

Store user transactions in SQLite database

TABLE transaction_history {
    id INTEGER NOT NULL,
    title TEXT NOT NULL,
    subtitle TEXT,
    value DECIMAL(10,2)
}

Modify User to not include Job

After re-assessing the UI, it appears that the selecting job should not be included in Registration Page. Hence, field job will be removed from User model

Advance day mechanism

There will be 24 points in time in which user can do actions. There are 2 points in time / real life day, and every point increases the age by 2.5 years.

These points in time will be represented by an enum perhaps called TimePoint and will be stored in SharedPrefs as integer.

BLoC and Model for UserData

Description

UserData is a model for storing user's game progress, such as:

  • career choice
  • balance
  • assets

The BLoC will also contain do a check on whether the user has made a career choice or not, and yield State accordingly

UI Element - Page Header

Situated on top of pages accessible from Home's 5 Menus. Contains a greetings "Hi, Welcome to <page_name>!" and an icon to its right

image

Home Page v1

Version 1 which includes:

  • All UI elements with minimum effort in styling
  • Almost correct placement of UI elements
  • Dynamic user, career and age shown

New Bloc for Home?

Currently GameData is provided by UserBloc. However, while adding feature for advancing the day, I realized that it's impossible to put the logic into UserBloc as adding new states will affect the navigation logic in RootPage.

Instead, there will be a separate Bloc that handles day advancement logic. Might incorporate GameData into this Bloc and call it HomeBloc instead

Rename UserBloc

Rename it to something else as it no longer controls user only

Redo UserBloc, UserDataBloc and navigation

The navigation between Registration -> Game Rules + Career -> Home is very clunky, and splash screen is shown multiple times during this time. RootPage has to serve as the first page opened and control navigation.

And redo the BLoCs because they are very awkward to use

Challenge Detail Page

A page that describes the event the user is currently encountering. There will be 2 types of events:

  • Positive ( Gives player cash ) : No payment option, just a button to "Claim".
  • Negative ( Deducts cash from player ) : There will be a few payment options.

5 Options like Home Page, but only OctoSavers is available as a payment method.

image

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.