Coder Social home page Coder Social logo

softspecproj's Introduction

Lord of the click

Member

Natanon Poonawagul 5710546208
Natcha Pongsupanee 5710546224

Patinya Yongyai 5710547204

Use resolution as Genymotion Samsung Galaxy S6 6.0.0

1. Project explanation

    This project is the idle clicker game which you play as the swordmaster whose object is to kill the monsters
by click at them. When a monster die you got a gold. Gold use for upgrade your sword for a better damage , buy skills
for easier game play (Like double damage or critical) and hire a friends to help you fight with the monster (friend is auto attacking).

2. Design Pattern

2.1) Factory Pattern
    - MonsterFactory
    - FriendFactory

    Use index for create a monster or friend instead of call its classes itself.

2.2) Strategy Pattern
    - SkillHero
    - DoubleDamage_Skill
    - Critical_Skill

    A SkillHero interface use to represent those 2 concrete class that do similar thing.

2.3) State Pattern
    - PlayState
    - SkillMenuState
    - FriendMenuState
    - ListSkillMenuState
    - MenuState

    A State for swaping menu bar etc.

2.4) Observer Pattern
    - PlayState
    - SkillHero
    - TextDmg
    - TextDmgPool

    These classes update in the playstate for real time update in game.

2.5) Flyweight Pattern
    - MyFriend
    - All classes in package friends

    These classes implements the MyFriend interface and use the same method when use in other classes.

3. Design Principle

GRASP
    Creator : 
        - PlayState create Player
        - PlayState create monster
        - Player create Skill
        - TextDmgPool create TextDmg
        
    Information Expert :
        - MonsterFactory have all monster
        - PlayState have player , monsterfactory , hpbar, textdmg,etc.
    
    Low Coupling :
        - We Seperate skill classes (DoubleDamage_Skill,Critical_Skill).
        - We Use MonsterFactory to create monster so Playstate cant affect monster.
    
    Polymorphism :
        - SkillHero Have Concrete classes DoubleDamage_Skill and Critical_Skill.
        - MyFriend Have Concrete classes Legolas,Frodo,Gimli,Gandalf,Aragon,Saruman
        
    Controller :
        - Playstate control game play in usual way.
        - SkillMenuState control skills bought.
        - FriendMenuState control friends hired.
        - ListSkillMenuState control skills used.

softspecproj's People

Contributors

mindaryn avatar nottpty avatar artanzy avatar

Watchers

James Cloos avatar  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.