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
// ORIGINAL BOH FILE 1 | |
/* | |
import boh.lang; | |
private class Program { | |
public static void main() { | |
Program p = new Extends(); | |
int i = p.getNumber(); | |
} |
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
private bool AreWallsBlockingSight(MainClass game, float playerDiffX, float playerDiffZ) { | |
Vector2 vec = new Vector2(playerDiffX, playerDiffZ); | |
vec.Normalize(); | |
vec /= 100f; | |
playerDiffX = vec.X; | |
playerDiffZ = vec.Y; | |
float x = 0; | |
float z = 0; | |
while (x * x + z * z < MainClass.WallsDisappearAt) { |
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
<project> | |
<configurations> | |
<configuration> | |
<name>Debug</name> | |
<debug>true</debug> | |
<outputdir>debug</outputdir> | |
<output><!-- insert suffix-less output binary name here --></output> | |
<desktop>true</desktop> | |
<allarchs>false</allarchs> | |
<alloss>false</alloss> |
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
The compiler for the Boh programming language. | |
Usage: bohc [options...] [input files...] | |
Options: | |
--help Displays this very message. | |
-c, --clean-progress Cleans compilation progress stored with the -s | |
option from the directory specified after the | |
option. | |
-d, --debug Compiles the binary for debug mode (optimizations | |
disabled). |
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
The project manager for the Boh programming language. | |
Usage: bohp [options] [operation] [project file] | |
Options: | |
--help Displays this very message. | |
Operations: | |
build Builds all configurations of the specified project | |
file. | |
build:conf Builds the speicified configuration of the project |
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
// typedef | |
typedef struct | |
{ | |
int x, y, z; | |
} asdf_t; | |
int main(void) | |
{ | |
asdf_t instance; | |
instance.x = 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
#include "vecf.h" | |
#include "rectf.h" | |
#include "circlef.h" | |
#include <assert.h> | |
int rect_collision(rectf_t left, rectf_t right) | |
{ | |
return (left.x + left.width >= right.x | |
&& left.x <= right.x + right.width |
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
#ifndef GRAPHICS_H | |
#define GRAPHICS_H | |
#define SCREEN_WIDTH 320 | |
#define SCREEN_HEIGHT 300 | |
#define SCREEN_SIZE ((unsigned long)SCREEN_WIDTH * (unsigned long)SCREEN_HEIGHT) | |
void initgraphics(void); | |
void destroygraphics(void); |
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
; The implementation of INPUT.H for the BIOS | |
BITS 16 | |
global initmouse | |
global getmouseinfo | |
initmouse: | |
mov ax, 00h | |
int 33h |
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/bash | |
# originaly from http://tinyurl.com/twitch-linux from taladan | |
# www.youtube.com/user/taladan | |
# gist created by brodul | |
INRES="1280x800" # input resolution | |
#OUTRES="1024x640" # Output resolution | |
OUTRES="800x500" # Output resolution |
OlderNewer