Giter Club home page Giter Club logo

cs410p_raycaster's Introduction

CS410p_Raycaster

Final project for my CS410p: Full Stack Web Development course.

Overview

In this project, I set out to implement a raycast system. In brief, Raycasting takes a top down, 2D world, and renders it as though it were 3D. It was the algorithm used to implement Wolfenstein 3D's graphics.

The features this has includes: * Renders textured walls, floors, and ceiling * Renders sprites ("things" in the world) * Renders skys for outdoorsy areas. * Can walk around the world.

To Run

For the path of absolute least resistance, go to the following website: https://web.cecs.pdx.edu/~wynnliam

The final (for now) version of this can be found in two places:

  1. In the folder ./public/index.html. Open this with either Firefox or Internet Explorer. Chrome seems to be a mixed bag at the moment, and I've no idea with Edge.
  2. Use the command "make all" to make the most recent version, and then see the above item. See Compiling for more.

Compiling

There are two ways to compile: use "make all", or "make all_out". The former builds the raycaster for the browser, the latter as an executable.

make all

To run make all, you need the emscripten compiler installed, as well as the SDL 2 library. Open up the make file and make sure the location for CMP is set appropriately. Next, make sure the lines 3 and 68 in main.c are UNCOMMENTED. Then, make sure the while loop from line 60 to 65 is COMMENTED. After that, you should be able to run make all. Then, open the html file ./public/index.html.

make all_out

To run make all_out, you need just SDL 2. However, you will need to change some lines in main.c. You need to make sure the while loop on lines 60 to 65 is UNCOMMENTED and the lines on 3 and 68 are COMMENTED out. Then, you should be able to run make all_out. An executable a.out should now exist. Open that up and enjoy the raycaster.

cs410p_raycaster's People

Contributors

wynnliam avatar

Stargazers

HinodeCoder avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.