This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Angel-yjc.h" | |
| #include <fstream> | |
| #include <iostream> | |
| #include <cmath> | |
| #include <string> | |
| #include <stdio.h> | |
| void file_in(std::string document); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Angel-yjc.h" | |
| #include <fstream> | |
| #include <iostream> | |
| #include <cmath> | |
| #include <string> | |
| #include <stdio.h> | |
| void file_in(std::string document); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Angel-yjc.h" | |
| #include <fstream> | |
| #include <iostream> | |
| #include <cmath> | |
| #include <string> | |
| #include <stdio.h> | |
| void file_in(std::string document); |
NewerOlder