Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Code you wrote [Part II]

Name: Anonymous 2014-09-18 3:37

All I've worked on tonight is this dumb raycaster: http://hastebin.com/iyerililov.rs

I screwed up the projection something awful and I have no idea how, but otherwise it sort of works.

To compile: Install a recent Rust+Cargo nightly, save this file http://hastebin.com/huyobaripa.toml as "Cargo.toml," put the Rust source in "src/ray.rs," and type "cargo run." It will automatically download and build the dependencies.

Name: Anonymous 2014-09-19 1:57

>>5

Symta:
Dest = case Self.keys
[1 @_] Self.player.dir * walk_speed
[_ 1 @_] ...


Rust:
let dest = match self.keys {
[true,_,_,_, _,_,_,_] => self.player.dir * walk_speed,
[_,true,_,_, _,_,_,_] => ...,
...
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List