ray-casting

command module
v0.0.0-...-ce341c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

README

Ray casting algorithm in Go and SDL2

This is a bare minimum Ray casting implementation in Go.

img

Ray casting code is only ~50 lines of code. Rest of the code is for loading map, initializing SDL etc.

There is basic input handling and no collision detection. Map is a simple text file.

You can create a Wolfenstein 3D like game with ray casting. You should add features like simple texture mapping, a pair of hands holding gun, some enemy sprites and so on.

Here is a great tutorial about ray casting.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL