wongelz / zio3d Goto Github PK
View Code? Open in Web Editor NEWAn experimental 3D game built with ZIO and OpenGL (LWJGL)
License: Apache License 2.0
An experimental 3D game built with ZIO and OpenGL (LWJGL)
License: Apache License 2.0
Hi!
I was excited to find this project as a guide to updating an old project I was working on. I wonder if factoring out the zio3d/core code to a project might be beneficial? In any case, I can plan to just use the code as-is for now, so no worries.
I noticed that most of the functions in e.g. glfw\package.scala
have a return type like UIO[A]
or ZIO[GLFW, Nothing, A]
, implying that exceptions should not be possible. However, it seems that it like is possible - here's a case for NullPointerException
:
https://linustechtips.com/topic/584923-java-lwjgl-3-exception/?tab=comments
My understanding is that it may be more accurate to model these with the Throwable
error type, e.g. Task[A]
or RIO[GLFW, A]
, though there may be downsides to this I'm not aware of (likely related to needing to handle that rather ambiguous error type).
Hello! Interesting project, curious to run, but after compiling I see following in PowerShell or Ubuntu terminal:
[info] Done updating. [info] Compiling 69 Scala sources to C:\Users\albert.bikeev\Projects\zio3d\target\scala-2.13\classes ... [info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.0. Compiling... [info] Compilation completed in 6.335s. [info] Done compiling. [info] Packaging C:\Users\albert.bikeev\Projects\zio3d\target\scala-2.13\zio3d_2.13-0.1.jar ... [info] Done packaging. [info] Running (fork) zio3d.game.Main [error] Error: Could not create the Java Virtual Machine. [error] Error: A fatal exception has occurred. Program will exit. [error] Unrecognized option: -XstartOnFirstThread [error] Nonzero exit code returned from runner: 1 [error] (Compile / run) Nonzero exit code returned from runner: 1 [error] Total time: 22 s, completed Dec 6, 2019 6:00:23 PM
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.