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
CC := gcc | |
OBJS := main.c | |
COMPILER_FLAGS := -Wall -Wextra -pedantic -std=c11 | |
LINKER_FLAGS := -lSDL2 -lSDL2main -lSDL2_image | |
OBJ_NAME := "Game Name" | |
all: $(OBJS) | |
$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME) | |
clean: $(OBJ_NAME) |
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
#!/bin/sh | |
sleep 5 && echo "Adding the repository for graphics drivers" | |
sudo apt-add-repository ppa:graphics-drivers/ppa -y | |
sudo apt-get update | |
sleep 5 && echo "Getting you Google Chrome!" | |
sudo apt-get install libxss1 libappindicator1 libindicator7 | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*.deb |
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
solution "Fractals" | |
configurations { "Debug", "Release" } | |
project "Julia" | |
kind "ConsoleApp" | |
language "C++" | |
-- Files of the program | |
files { | |
"julia.cpp" |
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
solution "LearnOpenGL" | |
configurations {"Debug", "Release"} | |
project "002" | |
kind "ConsoleApp" | |
language "C++" | |
-- The main files to the program | |
files { | |
"main.cpp" |
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 <string> | |
using namespace std; | |
//Constant globals are okay, though you should avoid globals when possible | |
const int numItems = 6; | |
const string shopItemNames[numItems] = { | |
"Boots", | |
"Swords", |
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
import java.util.Random; | |
import java.util.Scanner; | |
public class Apply { | |
public static void main(String[] args) { | |
Random rand = new Random(); | |
int numberToGuess = rand.nextInt(100); | |
int numberOfTries = 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
// ================== Rates =================== | |
rate "128000" | |
cl_cmdrate "128" | |
cl_updaterate "128" | |
cl_interp "0" | |
cl_interp_ratio "1" | |
// ============== Video settings ============== | |
mat_monitorgamma "2" | |
fps_max "300" |