Giter VIP home page Giter VIP logo

levy-old-attempt's Introduction


title: L.E.V.Y abstract: | A game ...

Progress

Disparity Engine

  • ECS
  • collision system
    • backed collision tree for static

Game mechanics

Introduction

lang: zig esc: none file: src/lib.zig
-------------------------------------

pub const aecs = @import("aecs.zig");
pub const sort = @import("sort.zig");
pub const geometry = @import("geometry.zig");
// pub const kd = @import("kd.zig");

comptime {
    _ = aecs;
    _ = sort;
    _ = geometry;
    // _ = kd;
}

Building

lang: zig esc: none file: build.zig
-----------------------------------

const std = @import("std");

pub fn build(b: *std.build.Builder) void {
    const exe = b.addExecutable("levy", "src/main.zig");
    exe.single_threaded = true;
    exe.addCSourceFiles(&.{
        "vendor/raylib/src/rcore.c",
        "vendor/raylib/src/rmodels.c",
        "vendor/raylib/src/raudio.c",
        "vendor/raylib/src/rglfw.c",
        "vendor/raylib/src/rshapes.c",
        "vendor/raylib/src/rtext.c",
        "vendor/raylib/src/rtextures.c",
        "vendor/raylib/src/utils.c",
    }, &.{
        "-std=c99",
        "-DPLATFORM=DESKTOP",
        "-DPLATFORM_DESKTOP",
        "-DGRAPHICS=GRAPHICS_API_OPENGL_33",
        "-D_DEFAULT_SOURCE",
        "-Iraylib/src",
        "-Iraylib/src/external/glfw/include",
        "-Iraylib/src/external/glfw/deps",
        "-fno-sanitize=undefined",
    });
    exe.addIncludeDir("vendor/raylib/src");
    exe.linkSystemLibrary("X11");
    exe.linkSystemLibrary("gl");
    exe.linkSystemLibrary("m");
    exe.linkSystemLibrary("pthread");
    exe.linkSystemLibrary("dl");
    exe.linkSystemLibrary("rt");
    exe.linkLibC();
    exe.install();

    const run = exe.run();
    run.step.dependOn(b.getInstallStep());
    if (b.args) |args| run.addArgs(args);

    const lib = b.addTest("src/lib.zig");

    const run_step = b.step("run", "run the game");
    run_step.dependOn(&run.step);

    const test_step = b.step("test", "run unit tests");
    test_step.dependOn(&lib.step);
}

Map

Blocks

levy-old-attempt's People

Contributors

tauoverpi avatar

Watchers

James Cloos avatar  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.