3D Game Engine
FRAG is a WIP game engine written in the Nim programming language.
The current focus of development is on the 3D Vulkan renderer and tooling.
FRAG is being developed alongside a science-fiction roguelike game, so feature development will be limited in scope.
This document will be updated as new capabilities and examples are added to the project.
FRAG is being developed on a MacBook Pro, so macOS will be the first supported platform. Windows and Linux support will follow, in that order.
Compiler Tested With | Operating System |
---|---|
Use the Nimble package manager to install FRAG.
git clone git@github.com:zacharycarter/frag.git && cd frag
nimble deps
nimble install
frag
FRAG is still in early development, and doesn’t do much yet.
import frag
proc init() =
echo "initializing app"
proc frame() =
discard
proc event() =
discard
proc cleanup() =
echo "cleaning up"
proc main() =
var appDesc = AppDesc(
initCb: init,
frameCb: frame,
eventCb: event,
cleanupCb: cleanup,
)
run(appDesc)
when isMainModule:
main()
Copyright (c) 2020 Zachary Carter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.