Skip to content

Instantly share code, notes, and snippets.

View Thassoun999's full-sized avatar

Tae (Sydra) HAssoun Thassoun999

View GitHub Profile
vertDir = argument0
horiDir = argument1
_x = argument2
_y = argument3
if vertDir == 1 && horiDir == 0 { // Going Up
this_var = instance_create_depth(_x, _y + 1, -1, obj_bullet)
this_var.ymspd = -16
// AIProject2.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <fstream>
#include <string>
#include <queue>
#include <vector>
// AIProject2.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <fstream>
#include <string>
#include <queue>
#include <vector>
floor();
// Create and initialize a vertex buffer object for floor, to be used in display()
glGenBuffers(1, &floor_buffer);
glBindBuffer(GL_ARRAY_BUFFER, floor_buffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(floor_points) + sizeof(floor_colors),
NULL, GL_STATIC_DRAW);
glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(floor_points), floor_points);
glBufferSubData(GL_ARRAY_BUFFER, sizeof(floor_points), sizeof(floor_colors),
floor();
// Create and initialize a vertex buffer object for floor, to be used in display()
glGenBuffers(1, &floor_buffer);
glBindBuffer(GL_ARRAY_BUFFER, floor_buffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(floor_points) + sizeof(floor_colors),
NULL, GL_STATIC_DRAW);
glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(floor_points), floor_points);
glBufferSubData(GL_ARRAY_BUFFER, sizeof(floor_points), sizeof(floor_colors),
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
/*--- Set up and pass on Projection matrix to the shader ---*/
mat4 p = Perspective(fovy, aspect, zNear, zFar);
/*----- Set up the Mode-View matrix for the floor and axis -----*/
mat4 mv = LookAt(c_eye, c_at, up);
glUseProgram(program);
model_view = glGetUniformLocation(program2, "model_view");
// AIProject2.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <fstream>
#include <string>
#include <queue>
#include <vector>
#include "Angel-yjc.h"
#include <fstream>
#include <iostream>
#include <cmath>
#include <string>
#include <stdio.h>
void file_in(std::string document);
#include "Angel-yjc.h"
#include <fstream>
#include <iostream>
#include <cmath>
#include <string>
#include <stdio.h>
void file_in(std::string document);
#include "Angel-yjc.h"
#include <fstream>
#include <iostream>
#include <cmath>
#include <string>
#include <stdio.h>
void file_in(std::string document);