Skip to content

kasra73/tank-battle-city

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design Patters

Composite

  • com.simplegame.SideMenu
  • The Composite interface is Group or Pane from javafx.
  • Leaves are Node Objects. e.g. Text, ImageView, etc.

Observer

  • com.simplegame.Controller.PlayerOneController (Subscriber),
  • com.simplegame.KeyboardObserverManager (Manager),
  • com.simplegame.BasicGameApp (Producer in initInput method)

Template Method

  • com.simplegame.TankMaker.TankMakerTemplate (makeTank method)

      Implementations:
          com.simplegame.TankMaker.EnemyTankMaker,
          com.simplegame.TankMaker.PlayerTankMaker
    

Mediator

  • com.simplegame.Controller.GameController

      methods:
          enemyDestroyed
          playerDestroyed
          spawnReward
          rewardCollected
    

Singleton

  • com.simplegame.Controller.GameController,
  • com.simplegame.KeyboardObserverManager

Bridge

  • Entity and Components in FXGL,
  • TankControlComponent and TankController (bidirectional bridge)

About

A new version of Tank Battle City game using FXGL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages