Skip to content

MinaToma/Atari-Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Atari-Core

Game Engine to facilitate designing java games.

How to use?

  • Helper Class

    • call Helper.Load() function to load all images from the res folder.
    • you can change any variable value to suit if needed.
  • Splash Class

    • provide frame title and font file path.
          public Splash(String title, String fontFile) {
            //class constuctor
          }
    • set buttons' actions
  • Game Class

    • initialise Keyboard & Mouse Actions.
    • implement required functions.
    • provide frame title.
          public Game(String title) {
            //class constuctor
          }
  • BaseObject Class

    • all game objects should inherit this class.
    • provide position, image and object behavior.
          public BaseObject(float x, float y, Image image, float velX, float velY) {
            //class constuctor
          }    
          protected abstract void tick();    
          protected abstract void render(Graphics g);
  • Handler Class

    • all objects should be inserted in this list
      private static CopyOnWriteArrayList<CopyOnWriteArrayList<BaseObject>> object = new CopyOnWriteArrayList<>();
    • add all game object lists of type CopyOnWriteArrayList<BaseObject>
      using
        public void addHandler(CopyOnWriteArrayList<BaseObject> list)
  • SelectPlayer Class

    • implement to set buttons' actions
          protected abstract void setActions();

Developers

Name Account
Mahmoud Medhat Mehisen @MahmoudMehisen
Mariam Mostafa @MariamMostafa27
Mina Toma @MinaToma
Youssef Sobhy @YoussefSobhy
Ziad Abd Elrahman @ZiadAbdElrahman

Notes

For further information read atariCore's javadoc and to see the core in action checkout AI-Atari

About

Game engine to facilitate designing java games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages