Skip to content

Instantly share code, notes, and snippets.

View pastagatsan's full-sized avatar

gatsan pastagatsan

View GitHub Profile
@pastagatsan
pastagatsan / orzosimplesurface.c
Created June 30, 2018 13:10
OrzoEngine - loading TGA images and displaying them in xterm256-color
#include "orzosimplesurface.h"
#include "targa.h"
#include <stdlib.h>
#include <math.h>
void SetupColorPairs()
{
int i;
@pastagatsan
pastagatsan / fraggame.cpp
Created June 6, 2017 10:52
frag engine test
#include <GL/glew.h>
#include <fragengine.hpp>
#include <window.hpp>
#include <math.h>
#include <resource.hpp>
#include <drawing.hpp>
#include <game.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
@pastagatsan
pastagatsan / penne-helloworld.c
Last active April 21, 2017 09:33
Penne Hello World example
#include "penne.h"
#include "time.h"
#include "elements/string.h"
#include <ncurses.h>
int main()
{
srand(time(0));
@pastagatsan
pastagatsan / fragshader.glsl
Last active November 4, 2016 13:26
Frag Engine Demo
#version 150
in vec3 Color;
out vec4 outColor;
void main()
{
outColor = vec4(Color, 1.0);
}
DU Achievements
Fired to Earth:
Kill someone by causing them fall
damage with The Grill.
Team Doctor:
Heal 100 HP in one life.
Sharp Shooter:
Kill someone more than 30 blocks
away.
@pastagatsan
pastagatsan / main.lua
Created October 28, 2014 16:11
Accuracy test
local x = 0
local points = 0
local presses = 0
function love.update(dt)
x = x + 1
end
function love.draw()
love.graphics.print("X: ".. x .. " PRESSES: ".. presses .. " | POINTS: ".. points, 100, 100)
/* Compilation Process:
*
* - Label Seeking (Look for labels and add them to the list)
* - Producing bytecode (The output which can be run by spank)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
@pastagatsan
pastagatsan / aw yis
Last active August 29, 2015 14:07
nailed it
Desktop:fun-games user$ ./drill-1a
-- SUBTRACTION SPREE --
Welcome to drill "Subtraction Spree".
In this one, you'll have to attempt to subtract two or
more numbers together within a certain time. limit.
Good luck!
@pastagatsan
pastagatsan / default.tp
Created September 14, 2014 21:04
do they taste like cardawd? lol
# Animation info
# name delay frames...
grass: 0, 0-0
water: 60, 2-0, 3-0, 4-0, 3-0
# Tile information
# ID name solid anim
$0: Grass false grass
$1: Water true water
@pastagatsan
pastagatsan / eyenado.zma
Created September 11, 2014 21:06
Plans for muh animation file
#Name=xtile, ytile, tilewidth, tileheight, width, height, *flip*
Eyenado_Left:
0, 3, 8, 8, 16, 16, X