anarch/README.md

82 lines
4.5 KiB
Markdown
Raw Normal View History

2020-01-05 16:32:47 -05:00
# WIP
2020-01-05 17:48:05 -05:00
# ![](assets/logo.png) CorpoDearm
2020-01-05 16:32:47 -05:00
*suckless FPS, the best game ever made game, for the benefit of all living beings*
2019-10-03 18:04:14 -04:00
2019-12-26 09:43:54 -05:00
## This is going to likely be by far the best game in the universe.
Why?
2020-01-01 08:03:37 -05:00
- **Like Doom** but much better because of the following.
- **Extemely low HW demands** (much less than Doom, no GPU, no FPU, just kilobytes of RAM and storage).
2020-01-02 18:50:49 -05:00
- **Extremely portable** (much more than Doom). So far tested on GNU/Linux PC, TODO.
2020-01-01 08:05:42 -05:00
- Has **completely NO external dependencies**, not even rendering or IO, that is left to each platform's frontend, but every frontend is extremely simple (~100 LOC).
2020-01-01 08:03:37 -05:00
- Fits into **less than 256 kb** (including all content, textures etc.).
- Uses **no build system**, can typically be compiled with a single run of compiler.
- **Works without any file IO**, i.e. can work without config files, save files, **all content and configs are part of the source code**.
- **Doesn't use ANY floating point**, everything is integer math (good for platforms without FPU).
- **Pure C99**, also a **subset of C++** (i.e. runs as C++ as well, good for systems that are hard C++ based).
2020-01-02 18:50:49 -05:00
- **Completely public domain (CC0) free softare, free culture, libre game** for the benefit of all living beings in the Universe, **no conoditions on use whatsoever**. **All art is original** work and licensed CC0 (as well as code).
- **Suckless, KISS, minimal, simple**, short code (< 10000 LOC).
2020-01-01 08:03:37 -05:00
- Made to **last for centuries** without maintenance.
- Goes beyond technical design and also **attempts to avoid possible cultural dependencies and barriers** (enemies are only robots, no violence on living beings).
- **Creted with only completely free software** (Debian, GIMP, gcc, Vim, ...).
- **Single compilation unit** (only one .c file to compile, very fast and simple).
2020-01-02 18:50:49 -05:00
- Uses a **custom-made 256 color palette** (but can run on platforms with fever colors, even just two).
2020-01-01 08:03:37 -05:00
- **Well documented and commented code**, written with tinkering and remixing in mind.
2019-12-26 09:43:54 -05:00
early previews:
Pokitto:
![](https://talk.pokitto.com/uploads/default/original/2X/2/29c0e4f44688f801013ed5b8463e97772d4b203e.gif)
SDL:
![](https://talk.pokitto.com/uploads/default/original/2X/e/e69a5e26aee3bd726494e793770911ab83345187.png)
2019-10-03 18:04:14 -04:00
2020-01-02 18:50:49 -05:00
## code guide
TODO
source files
portability, only backend, avoiding dependencies
how to port to new platform, frontend, configs in files
all images are 32x32, image compression, transparency
integer math
raycastlib, 1D zbuffer
palette
rng, produces all byte values
AI
map format
main loop, constant time step
optimizations, move computations to compile time, approximations (taxicab, ...), precomputations, -O3
2019-10-03 18:04:14 -04:00
## usage rights
2020-01-02 18:50:49 -05:00
**tl;dr: everything in this repository is CC0 + waiver of all rights, completely public domain as much as humanly possible, do absolutely anything you want**
2019-10-03 18:04:14 -04:00
This work's goal is to never be encumbered by any exclusive intellectual property rights, it is intended to always stay completely and forever in the public domain, available for any use whatsoever.
I therefore release everything in this repository under CC0 1.0 (public domain, https://creativecommons.org/publicdomain/zero/1.0/) + a waiver of all other IP rights (including patents), which is as follows:
*Each contributor to this work agrees that they waive any exclusive rights, including but not limited to copyright, patents, trademark, trade dress, industrial design, plant varieties and trade secrets, to any and all ideas, concepts, processes, discoveries, improvements and inventions conceived, discovered, made, designed, researched or developed by the contributor either solely or jointly with others, which relate to this work or result from this work. Should any waiver of such right be judged legally invalid or ineffective under applicable law, the contributor hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to this right.*
Everything in this repository, including the code and assets, has been made completely by myself, Miloslav Ciz aka drummyfish, from scratch. I have **not** even reused any public domain material, as IP laws change and what has once been public domain may not be so in the future, so the only safe way for me to not infect this work with a potential disease I had to create it all myself.
Please support free software and free culture by using free licenses and/or waivers.
If you'd like to support me or just read something about me and my projects, visit my site: [www.tastyfish.cz](http://www.tastyfish.cz/).