Code Monkey home page Code Monkey logo

moonengine's Introduction

MoonEngine - An engine used to make (semi-)powerful games.

MoonEngine (or Moon) is a 70KB game engine/framework that I've (oti) been working on, that's quite modular with help of backends (i.e. SDL2 and derivs).

NOTE: Because this engine is under rapid development, this is Alpha (expect breaking changes!).

Some features of the engine include:

  • Camera - A camera system
  • Font - A font rendering system
  • Input - An input handler
  • Map - A Tiled renderer and parser
  • Sound - A sound system

...and more!

Questions (and stuff)

Go here!

Example

Plugging these 10 lines of code into a working environment will give a blank window:

#include "MoonEngine.h"
int main() {
	Window window;
	InitWindow(&window, 1024, 720, "Moon");
	while (WindowIsOpen(60)) {
		printf("Window open, running at 60 fps!\n");
	}
	End(window);
	return 0;
}

This is the same code in "main.c".

Compilation

To compile Moon, you need:

  • SDL2_ttf
  • SDL2_image
  • SDL2
  • SDL2_mixer
  • SDL2_gpu
  • SDL2main (on Windows)

If you're running Windows

Extract all of the files from the Github repos, them leave them as is. You'll need the original folders in the CMake.

Photos

Photo of Blit, my game

moonengine's People

Contributors

otidev avatar

Watchers

 avatar

moonengine's Issues

TODO

NOTE: it would be greatly appreciated if you'd help with these!

  • Docs
  • CMake support
  • Examples
  • More detailed/better collision code
  • Code of Conduct
  • Better camera system (like the one used for the rendertargets)
  • Take away fg and bg limitations in Map

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.