This file contains 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
CheckForFlag()<suspends>:void= | |
loop: | |
Sleep(1.0) | |
AllPlayers:=GetPlayspace().GetPlayers() | |
for(Player:AllPlayers): | |
# this casts to the player object to get an agent | |
if(IsAgent:agent = agent[Player]): | |
if(ConditionalButton.IsHoldingItem[IsAgent]): | |
class_granter.ChangeClass(IsAgent) | |
else: |
This file contains 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 <stdio.h> | |
#define MAXLINE 1000 | |
/* copy input to output; 2nd */ | |
main () | |
{ | |
int len; | |
int max; | |
char line [MAXLINE]; | |
char longest [MAXLINE]; |
This file contains 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
#OBJS specifies which files to compile as part of the project | |
OBJS = main.cpp | |
#CC Specifies which compiler we're using | |
CC = g++ | |
#COMPILER_FLAGS specifies the additional compilation options we're using | |
# -w suppressess all warnings | |
COMPILER_FLAGS = -w |
This file contains 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
syntax enable | |
" https://github.com/sainnhe/everforest | |
colorscheme everforest | |
set background=dark | |
set guifont=Source_Code_Pro_SemiBold:h12 | |
set guicursor+=a:blinkon0 | |
set guioptions-=m | |
set guioptions-=T | |
set guioptions -=r |
This file contains 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 <iostream> | |
#include <vector> | |
using namespace std; | |
// Defining rows and columns of | |
// vector of vectors | |
int main() | |
{ | |
int diagonalRight = 0; |
This file contains 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
sv_cheats 1; | |
bot_kick; | |
mp_warmup_end; | |
mp_freezetime 0; | |
mp_roundtime_defuse 60; | |
sv_grenade_trajectory 1; | |
sv_grenade_trajectory_time 10; | |
sv_showimpacts 1; | |
ammo_grenade_limit_total 5; | |
sv_infinite_ammo 1; |
This file contains 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 <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
#include <SDL2/SDL_ttf.h> | |
#include <SDL2/SDL_mixer.h> |
This file contains 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
# OBJS declares the files to be compiled | |
OBJS = Main.cpp Game.cpp | |
# CC declares the compiler (GCC) | |
CC = g++ | |
# COMPILER_FLAGS declares the additional compilation options | |
# -w suppresses warnings | |
COMPILER_FLAGS = -w |
This file contains 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 <stdio.h> | |
#include <string> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
#include <SDL2/SDL_ttf.h> | |
#include <SDL2/SDL_mixer.h> | |
const int SCREEN_WIDTH = 1280; | |
const int SCREEN_HEIGHT = 960; |
This file contains 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 "CircleComponent.h" | |
#include "Actor.h" | |
CircleComponent::CircleComponent(class Actor* owner) | |
:Component(owner) | |
, mRadius(0.0f) | |
{ | |
} |
NewerOlder