Git Product home page Git Product logo

cjge's Introduction

CJGE

Compact Java Game Engine - One Abstract Class, All Native Imports.

This is a game engine meant to be writen as one single abstract class in Java using only Java's native libraries. This is for a matter of simplicity in the hopes that it will help people jump into game developement more easily. By not having to worry about messing with importing libraries and such, your life will be stress-free. Instead, simply download the class and add it to your project source. Extend the class just like you would a JFrame, and let your IDE add the unimplemented methods.

Getting Started

To use this game engine, follow these steps:

  1. Clone the repository: git clone https://github.com/JustBobinAround/CJGE.git
  2. Open the project in your preferred Java IDE.
  3. Extend the class just like you would a JFrame, and let your IDE add the unimplemented methods.
  4. Build and run the project.

Features

  • Window creation and management using JFrame and Canvas.
  • Rendering capabilities, including a buffer strategy and pixel manipulation.
  • Handling of keyboard and mouse input events, including key press/release, mouse button press/release, mouse movement, and mouse wheel events.
  • Game loop implementation for continuous game updates and rendering.
  • Utility methods for drawing images on the screen.

Usage

To create your game using this engine, follow these guidelines:

  1. Extend the GameEngine class and implement the abstract methods (preGameOperations(), preRenderUpdate(), renderUpdate(), and stop()).
  2. Add your game-specific logic in the implemented methods.
  3. Customize the rendering and input handling as needed.
  4. Run the game and test your implementation.

Contributions

Contributions to this game engine are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

cjge's People

Contributors

justbobinaround avatar

Watchers

 avatar

cjge's Issues

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.