GithubHelp home page GithubHelp logo

polybiusproxy / hxraylib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from foreignsasquatch/raylib-hx

0.0 1.0 0.0 1.75 MB

Haxe bindings for raylib, a simple and easy-to-use library to learn videogame programming

Home Page: https://www.raylib.com/

License: zlib License

Haxe 1.38% CMake 0.24% Makefile 1.88% C 95.65% HTML 0.85%

hxraylib's Introduction

Raylib Logo

Haxe bindings for raylib, a simple and easy-to-use library to learn videogame programming, Currently works only for windows but feel free the expand to other platforms. This binding is worked on by two people but if you want to work on the binding feel free to add the feature and make a pull request.

Warning! The binding is in its early stage of development and may change at any moment, please use at your own risk

Requirements

  • Haxe 4.0.0 or above
  • Hxcpp (Haxe's C++ runtime) which you can install by using haxelib insall hxcpp
  • MSVC v142 - VS 2019 C++ x64/x86 build tools for Windows
  • (Windows only) Windows 10 SDK

Installation

  1. Clone this repository
  2. This repo can be used as a template
  3. To compile: haxe build.hxml

Example

This is a basic example of the binding which creates a window

import Raylib.*;
import Raylib.Colors.*;

class Main
{
    static function main()
    {
        InitWindow(800, 450, "hxRaylib");

        while (!WindowShouldClose())
        {
            BeginDrawing();
                ClearBackground(RAYWHITE);
                DrawText("Congrats! You created your first window using hxRaylib!", 100, 100, 20, RAYWHITE);
            EndDrawing();
        }

        CloseWindow();
    }
}

License

hxraylib is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check LICENSE for further details.

Thanks to:

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.