glouw / andvaranaut Goto Github PK
View Code? Open in Web Editor NEWA dungeon crawler
License: GNU General Public License v3.0
A dungeon crawler
License: GNU General Public License v3.0
retracted
https://github.com/yellingintothefan/water/blob/0e3ebf69d93d974ab0d08b48992723d11eaffb5a/Hero.c#L6
change scale to length. mod x, not y
offset can be simplified with the focal length. original xfocal() is wrongly named and can be removed. xfcast() can be removed too. fov changes must then change the focal length and not focal diameter.
const float weight = r.traceline.fov.a.x / r.traceline.corrected.x;
for(int x = 0; x < r.projection.clamped.bot; x++)
{
const float offset = weight / (1.0 - (float) x / r.projection.mid);
const Point where = wheres[sl.sdl.yres - 1 - x] = xlerp(r.traceline.trace, offset);
...
fov.a.x can be used instead:
https://github.com/yellingintothefan/water/blob/0e3ebf69d93d974ab0d08b48992723d11eaffb5a/Sdl.c#L60
https://github.com/yellingintothefan/water/blob/0e3ebf69d93d974ab0d08b48992723d11eaffb5a/Sdl.c#L64
https://github.com/yellingintothefan/water/blob/0e3ebf69d93d974ab0d08b48992723d11eaffb5a/Projection.c#L5
this can be removed altogether - the floor caster will be in scanline:
https://github.com/yellingintothefan/water/blob/0e3ebf69d93d974ab0d08b48992723d11eaffb5a/Line.c#L21
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.