Skip to content

Instantly share code, notes, and snippets.

View Dirk-Gentley's full-sized avatar

Benjamin Waters Dirk-Gentley

View GitHub Profile
@Dirk-Gentley
Dirk-Gentley / LineOfSight.cpp
Created December 3, 2012 10:03
Line of sight
#include "TileProperties.h"
#include "LineOfSight.h"
#include <iostream>
#include <cmath>
#include <cstdlib>
void rayTrace(int &playerXPos, int &playerYPos,
tileInformation rays[MAPSIZE][MAPSIZE],
tileInformation wallsGFX[MAPSIZE][MAPSIZE],
@Dirk-Gentley
Dirk-Gentley / LineOfSight.cpp
Created December 3, 2012 01:22
LineOfSight.cpp
#include "LineOfSight.h"
#include "TileProperties.h"
#include <iostream>
#include <cmath>
#include <cstdlib>
void rayTrace(int &playerXPos, int &playerYPos,
struct tileInformation rays[MAPSIZE][MAPSIZE],
struct tileInformation lineOfSight[MAPSIZE][MAPSIZE],
#include "TileProperties.h"
#include "LoadMaps.h"
#include <SFML/Graphics.hpp>
#include <fstream>
#include <iostream>
// loads the png for the wall GFX
int loadWallsGFX(sf::RenderWindow &gameWindowPtr, sf::Texture &textureSheetPtr){
#include <iostream>
#include <cstddef>
#include "linkedlist1.h"
using namespace std;
double NumberList::listToArray(double listArray, int &count)const{
ListNode *nodePtr;
nodePtr = head;