Giter Club home page Giter Club logo

durian's Introduction

Durian

A wannabe 2D game engine

Lua functions you can call

Logging

  • Durian_LogInfo
  • Durian_LogWarn
  • Durian_LogError

Component manipulation

  • Transform component
    • Durian_AttachTransform
    • Durian_DetachTransform
  • Sprite component
    • Durian_AttachSprite
    • Durian_DetachSprite
  • Sound emitter component
    • Durian_AttachSoundEmitter
    • Durian_DetachSoundEmitter
    • Durian_SoundLoad
    • Durian_SoundPlay
    • Durian_SoundVolume (doesn't work according to the comments in my code, didn't test it though)

Scene

  • Durian_GetEntityByName

Events

  • Keyboard
    • Durian_EventKeyDown
    • Durian_EventKeyUp
  • Mouse
    • Durian_EventMouseMoved
    • Durian_EventMouseButtonDown
    • Durian_EventMouseButtonUp
    • Durian_EventMouseScrolled
  • Window
    • Durian_EventWindowPos
    • Durian_EventWindowSize

Want to build Durian from source?

For Windows users

Clone the repository, run GenerateProjects.bat and a solution will be created for you.

Open the solution and hit the build button (make sure you build in Distribution mode)

For Linuwux users

First you'll need to install a few depedencies:

  • sdl2
  • glew

You'll also need to compile Lua from source since the pre-compiled binaries from their website are dynamically-linked and I can't figure out how to put that in premake :(

Once you've compiled Lua, place the liblua.a file in the libs/linux folder.

Clone the repository, open a terminal and run ./GenerateProjects.sh, then make config=distribution to build in distribution mode. You can also build in debug mode with make config=debug.

durian's People

Contributors

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