Giter Site home page Giter Site logo

coreenigne's Introduction

Core Game Engine

Mini project that I hope I can grow.

Requirements

Win32 and Make.

How to Build

  1. Clone the repo.
  2. Run the Build.bat. (Only works if you have make and MinGW / g++).

Vendor

  1. Glfw, using 64-bit, pre-build.
  2. Glad, using 4.6, not built.
  3. ImGui.

How to use the engine:

How to start an application.

#include "Core.h" // Main stuff
#include "Core/Launch.h" // Only once included

class Test : public Core::Application
{
public:
    Test(){};
    ~Test(){};

    // Setup configuration
    void OnPreInit()
    {
        this->p_Configuration.StartMaximized = true;
    };

    void OnInit()
    {
        // Add layers and other stuff
    }
}

// VERY IMPORTANT REPRESENTS THE APPLICATION TO USE, CRASH OCCURS IF NOT DONE RIGHT
Core::Application* Core::CreateApplication() {
    return new Test();
};

How to build:

  1. Open a Command Prompt.
  2. cd Into the directory where the Engine Folder and your code lives.
  3. Create a folder named Bin. (Manually or use "mkdir Bin" with cmd).
  4. Run: "g++ -DCORE_WINDOWS_PLATFORM -g YOUR_SOURCE_CODE_PATH/*.cpp -IYOUR_SOURCE_CODE_PATH -IEngine/Source -IEngine/Vendor/GLFW/include -IEngine/Vendor/ImGui -LBin -lEngine -lImGui -o Bin/Test"

Including GLFW for the Input system. Using ImGui only if wanted, recommended.

How to launch:

  1. Build. (Shown above).
  2. Go in the Bin folder and run the Test.exe (or whatever name you gave it).

Documentation:

How to configure an application: AppConfig

How to add layers to your application: Layer

How to render your first sprite: Sprite

I am 14 years old if anyone cares.

coreenigne's People

Contributors

infiteri avatar

Watchers

 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.