--- /dev/null
+{
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
+ // for the documentation about the tasks.json format
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "Run Game",
+ "type": "shell",
+ "problemMatcher": "$onyx",
+ "options": {
+ "cwd": "${workspaceFolder}/run_tree",
+ },
+ "presentation": {
+ "echo": true,
+ "reveal": "silent",
+ "focus": false,
+ "panel": "shared",
+ "showReuseMessage": false,
+ "clear": false
+ },
+ "windows": {
+ "command": "run.bat",
+ },
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ }
+ }
+ ]
+}
\ No newline at end of file
--- /dev/null
+Version 0.0.1a - Initial Setup
+Getting the basic game engine working on Windows and Linux.
+
+ADDITIONS:
+
+REMOVALS:
+
+CHANGES:
+
+BUGFIXES:
\ No newline at end of file
--- /dev/null
+@echo off
+
+\dev\onyx\onyx run ..\src\build.onyx -I ..\src
\ No newline at end of file
--- /dev/null
+#local runtime :: package runtime
+
+#load "core/std"
+
+// These paths are very specific to where I keep Onyx on my system.
+// In the short-term, Onyx modules should be copied locally to this
+// project.
+#if runtime.OS == runtime.OS_Windows {
+ #load_path "\\dev\\onyx\\"
+}
+#if runtime.OS == runtime.OS_Linux {
+ #load_path "/home/brendan/dev/c/onyx"
+}
+
+#library_path "./lib"
+#load "modules/glfw3/module"
+#load "modules/opengles/module"
+
+#load "main"
\ No newline at end of file
--- /dev/null
+
+use package core
+use package glfw3
+use package opengles
+
+main :: (args) => {
+ if !glfwInit() {
+ println("Failed to initialize GLFW");
+ os.exit(1);
+ }
+
+ window := glfwCreateWindow(800, 600, #cstr "Voxel Shooter");
+ glfwMakeContextCurrent(window);
+ glInit(glfwGetLoadProcAddress());
+
+ while !glfwWindowShouldClose(window) {
+ glClearColor(.2, .2, .2, 1);
+ glClear(GL_COLOR_BUFFER_BIT);
+
+ glfwPollEvents();
+ glfwSwapBuffers(window);
+ }
+}
\ No newline at end of file