First cut at a replica of the python raycaster. Left side almost works the same but have to sort out math differences.

This commit is contained in:
Zed A. Shaw 2025-01-04 12:20:41 -05:00
parent 6b181382bd
commit ca80736d7c
21 changed files with 2165 additions and 90 deletions

View file

@ -1,34 +0,0 @@
/*
Copyright (c) 2004, Lode Vandevenne
All rights reserved.
*/
#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include "quickcg.h"
using namespace QuickCG;
using namespace std;
//place the example code below here:
int main(int argc, char *argv[])
{
screen(256, 256, 0, "Small Test Script");
for (int x = 0; x < w; x++)
for (int y = 0; y < h; y++)
{
pset(x, y, ColorRGBA(x, y, 128, 255));
}
print("Hello, world!", 8, 8);
std::string test;
test.resize(20);
redraw();
sleep();
return 0;
}