Code Monkey home page Code Monkey logo

game-engine's Introduction

Game-Engine

A Simple Game Engine coded in Java using only native libraries

Project Idea

This project started out as a way to help teach others Java through coding a game. It provides the user the ability to create a simple 2D, top down game quickly. I also wanted to learn more about game development so the only libraries used were native to Java (ie Java2D).

Demo

Examples for creating a simple game are included under src/example

The below demo is running at ~120 FPS for a little over 100 game objects (10 x 10 grouping of water objects). The game has been tested to run at roughly the same FPS with over 1000 game objects (Game objects include trees, players, water blocks, etc) Demo

Usage

Setup just requires including this project into your code base, no external libraries / dependencies are required.

Current Capabilities

  • Player and object creation
  • Camera following an object
  • Easy IO handling for keyboard (mouse support currently not implemented)
  • Fast drawing (Only draws visible objects to improve game speed)
  • Animations (Allows for a game object to "move" through images at different speeds) (Used to the spider's movement and the water)

TODO

  • Implement a sound manager
  • Expand demo to include a platformer game
  • Ability to easily import and export levels into the game
  • General optimizations for game loop

game-engine's People

Contributors

matthewlevy97 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.