Skip to content

RaycasterV3

Choose a tag to compare

@ZachBeaupre ZachBeaupre released this 19 Sep 04:16
· 13 commits to master since this release
23c5f31

image

this version has keys and doors

keys :
image

doors :
image

I also applied a fix to the fisheye problem after scouring the scratch raycaster forums lol (if you press F you can toggle between fisheye being on and off)

also i forgot to mention but the way i am calculating distances is heavily inspired by the ways people do it on scratch.

this is the one I submitted to the teacher, I added a "pointerlock" for looking with the mouse.
i used the java robot to teleport the mouse to a certain spot on the screen and then in a defined timespan measure how much the mouse has moved away from that point on the x axis and then apply that to direction and teleport it back.

When I was presenting this in the class, everybody went over to the table that had a simon game with sound because i guess a circular microsoft logo is cooler than the beautiful work of art I created.
(still sad lol)

also made the screen wider

and made the resolution a lot better by switching all of the lines to Line2D.Double, allowing for double precision instead of int.

NOTE
The source code listed in the bottom of the release tabs is no where close to this version is is multiple versions ahead.