Code Monkey home page Code Monkey logo

atari-core's Introduction

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

atari-core's People

Contributors

mariammali273 avatar minatoma avatar

Stargazers

Mahmoud Mehisen 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.