Solved those weird wall drawing issues. Only a few rounding issues with corners left, but that's a minor niggle for now. Sorry for the sort of monologue.
Type: Posts; User: oajfh
Solved those weird wall drawing issues. Only a few rounding issues with corners left, but that's a minor niggle for now. Sorry for the sort of monologue.
Ah, I can post some code. Essentially, the issues are with the raycast method.
(source code is unoptimised, and hopelly not too illegible).
This method is supposed to return the distance of a...
1. Website : takemetoanotheruselesswebsite
2. 3D modeller : Blender (I barely know how to use it, but I like it)
3. Free synthetiser : Synth1 (same)
4. Artist I've recently discovered :...
#117 : Caml Light
(probably works for OCaml, as well)
let print_nbrs = function i -> print_int(i); print_char(` `);;
for i = 1 to 10 do
print_nbrs(i); done;;
--- Update ---
All right, I've cleared up some more of the issues, but there still seems to be some problems with corners and such. a couple of walls come out of nowhere, and when one gets closer to the far walls,...
Here's a .jar so that people can better visualise my issue (I've cleared up the 180° problem, but I still have trouble with the wal drawing).
2252
One can move with the arrow keys. The level is...
I'm writing all this in Java, and I'm not sure all my issues are purely of an algorithmic nature.
Greetings.
I am writing a raycasting engine right now, based off the Permadi tutorial, and I seem to have encountered two problems concerning wall drawing.
The first is that when I turn 180°, I...
Greetings, my name is oajfh.
New here. I like making games in Java. Currently starting work on a basic raycasting engine, and will likely ask for help in the next few weeks (actually, if I could,...