{-# OPTIONS_GHC -Wno-unused-imports #-} module Mischief ( -- * What is Mischief? -- $whatis -- * Our Values -- $values -- * \"AI\" Disclaimer -- $ai -- * What do I Need to Know? -- $know -- * Setting up -- $setup -- * Where to Start -- $howtouse -- * Libraries -- $libs -- * Community -- $community -- * Contributing -- $contributing ) where import Mischief.ECS qualified import Mischief.Input qualified import Mischief.Live qualified import Mischief.Math qualified import Mischief.Render qualified import Prelude () -- $whatis -- Mischief is a free, open-source, ECS Game Engine written in Haskell. It is a unique blend of -- data-oriented design and functional programming. -- $values -- Mischief is all about creativity and human expression and having fun. Is is a celebration of programming, -- art, and the creation of unique games and projects. -- -- It is not an engine meant to fit everyone, to be the "best game engine ever" or to make money. It is -- a project born of passion for data-oriented design, functional programming, and the art of crafting video games. -- -- You can read more about our values [here](https://codeberg.org/mischief/mischief/src/branch/main/Values.md). -- $ai -- Mischief uses no \"generative AI\" (in code or otherwise) and strives to be a space that fosters creativity and wholesome human interaction. -- $know -- You should generally be able to read through the official books and understand most logic without needing to have written Haskell before. -- However, you'll have a way better time if you have at least a basic knowledge of Haskell syntax, so it is recommended that you first follow a beginner -- tutorial for Haskell if you are not familiar with the language. -- -- The official books try not to assume any prior knowledge of ECS or game engines in general. -- $setup -- In order to use Mischief, you'll first need to install @GHC@ and @cabal@. We recommend doing so through the [ghcup](https://www.haskell.org/ghcup/) installer. -- For this version of Mischief, we recommend installing @ghc-9.12.2@. -- -- For easier setup, we recommend cloning the template found [here](https://codeberg.org/mischief/template/src/branch/0.1.2.0). You can do so using: -- -- @ -- git clone -b 0.1.2.0 --single-branch https://codeberg.org/mischief/template.git -- @ -- -- You can also clone the @-live@ branch which contains a template adjusted for live coding (hot-reloading code): -- -- @ -- git clone -b 0.1.2.0-live --single-branch https://codeberg.org/mischief/template.git -- @ -- -- The @.cabal@ and @.project@ files contain the recommended configuration: extensions, language standard, library versions. Only @mischief-ecs@ is -- imported. The other core libraries are commented out. Make sure to change all occurrences of @my-mischief-app@ to your app's name, including the @.cabal@ file's name. -- -- @text@ is also included as a dependency, as Mischief uses it over @String@ whenever possible. You might see stuff like @T.show@ throughout the tutorials. When you want to use such functions, you need to qualify Text: -- -- @ -- import "Data.Text" qualified as Text -- @ -- -- Alternatively, you can create a new project using @cabal init@ and manually copy the relevant parts of the @.cabal@ file into your own. -- $howtouse -- Mischief is made up of a fully decentralized ecosystem of libraries built on top of [mischief-ecs]("Mischief.ECS"). -- -- Most of the them are indeed made by the same people who also make the core ECS. But plugging libraries in and out is highly encouraged -- and one of the main focuses of the engine. So feel free to experiment with various libs to find what suits your game, or even make your own -- plugins to share with others! -- -- To get started, check out the [startup guide]("Mischief.ECS.Tutorial.Introduction.Startup") from the [Learn You an ECS for Great Mischief!]("Mischief.ECS") book. You can -- also click on each of the links in the next section to see their documentation / book and learn to use them! You don't need to read any one book to completion before moving on, -- feel free to switch between them depending on what you wish to learn about. -- -- If you want to skip ahead past the introductory stuff and get a feel for what Mischief can do, check out the [Rendering Book]("Mischief.Render"). -- -- Note that this library that you're reading right now, @mischief@, isn't meant to be added as a dependency or to be used directly. -- It exists just for centralizing documentation and helping keep the version of each library in check. -- $libs -- This is a list of the current libraries that exist within the ecosystem: -- -- * [mischief-ecs ^>=0.2.2](https://hackage-content.haskell.org/package/mischief-ecs-0.2.2.0/docs/Mischief-ECS.html). The core ECS library. -- * [mischief-assets ^>=0.1](https://hackage-content.haskell.org/package/mischief-assets-0.1.0.0/docs/Mischief-Assets.html). Load and play with assets. -- * [mischief-input ^>=0.1](https://hackage-content.haskell.org/package/mischief-input-0.1.0.0/docs/Mischief-Input.html). Read input from the player. -- * [mischief-math ^>=0.1.1](https://hackage-content.haskell.org/package/mischief-math-0.1.1.0/docs/Mischief-Math.html). Transforms and algebra. -- * [mischief-render ^>=0.1.2](https://hackage-content.haskell.org/package/mischief-render-0.1.2.0/docs/Mischief-Render.html). Render stuff and write shaders. -- * [mischief-live ^>=0.1](https://hackage-content.haskell.org/package/mischief-live-0.1.0.0/docs/Mischief-Live.html). Enables live coding. -- -- Feel free to open an issue or PR in the [official repo](https://codeberg.org/mischief/mischief) if you want your library to be added to this list. -- The [\"AI\" policy](https://codeberg.org/mischief/mischief/src/branch/main/AI_Policy.md) applies. -- $community -- You can keep in touch with the maintainers and the rest of the community by joining the official [discord server](https://discord.gg/WcpPqrwpuk). -- $contributing -- You can contribute to the official Mischief repository by opening issues to request features or report bugs. PRs may also be accepeted.