2 Commits

Author SHA1 Message Date
mtgmonkey
5585a49393 semantics, readability, relicense, initResource argument removal 2025-12-08 11:21:14 +01:00
mtgmonkey
e767a5ee5b semantics: change from Game/Main.hs to Game.hs 2025-12-08 05:57:20 +01:00
3 changed files with 22 additions and 26 deletions

View File

@@ -10,34 +10,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- test suite for non-`IO` functions
- test suite for non-IO functions
### Changed
- use rotors rather than `Linear.Quaternion` for rotation; easily extended to 4D
- move `Player` out of `Camera`
- configure with `Properties` objects in the Model
- use `Double` rather than `FLoat` for internal calculations
- `cursorPos`, `dt` natively `Double` already
- use Rotors rather than Quaternions for rotation; easily extended to 4D
- move Player out of Camera
- make effektiv all fields configurable
## [0.2.0-pre0] - 2025-12-07
## [Unreleased]
### Added
- 100% documentation coverage
- 4 outputs of Nix flake
- `debug`: compiles fast, no docs
- `release`: runs fast, no docs
- `docs`: only docs
- `default`: release binary with docs
- debug: compiles fast, no docs
- release: runs fast, no docs
- docs: only docs
- default: release binary with docs
### Changed
- `initResources` no longer takes a `GLFW.Window` argument
- initResources no longer takes a GLFW.Window argument
- BSD 3-clause license adopted rather than WTFPL
- reasoning: More professional, widely recognised, effectively identical
- `CHANGELOG.md` has more formatting, namely inline code
- clarify a couple entries in the `[0.1.0] - 2025-12-07 Changed` entry
### Fixed
@@ -47,17 +43,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- added `CHANGELOG.md`
- layer correctly drawn objects in `view`
- CHANGELOG.md
- layer correctly drawn objects in the view function
### Changed
- 8xMSAA rather than 4xMSAA window hint to improve AA
- todo and changelog in `CHANGELOG.md` rather than `README.md`
- a nubmer fo functions from `Game` now in `Game.Internal`
- `initResources` takes an `[V3 GL.GLfloat]` to draw rather than hardcoded arrays
- square the distance of the far plane of the perspective transform
- `loop` function takes delta time `dt :: Float`
- todo and changelog in CHANGELOG.md rather than README.md
- a nubmer fo functions from Game module now in Game.Internal
- initResources takes an array of objects to draw rather than hardcoded arrays
- square the far plane of the perspective transform
- loop function takes delta time
### Fixed

View File

@@ -2,8 +2,8 @@
{- |
- Module : Game
- Description : runs game
- Copyright : 2025 Andromeda
- License : BSD 3-clause
- Copyright : Andromeda 2025
- License : WTFPL
- Maintainer : Matrix @Andromeda:tchncs.de
- Stability : Experimental
-}

View File

@@ -1,9 +1,9 @@
{-# LANGUAGE DisambiguateRecordFields, NamedFieldPuns, OverloadedRecordDot #-}
{- |
- Module : Game.Internal
- Description : internal functions
- Copyright : 2025 Andromeda
- License : BSD 3-clause
- Description : 'hidden' functions
- Copyright : Andromeda 2025
- License : WTFPL
- Maintainer : Matrix @Andromeda:tchncs.de
- Stability : Experimental
-}