Skip to content

Instantly share code, notes, and snippets.

@Orpheon
Orpheon / gist:6196546
Last active December 20, 2015 21:18 — forked from arctic5/gist:6196534
//respawn timer here
if (global.respawntimer == 1)
{
if (time <= global.Server_Respawntime)
{
time += 1
}
else
{
instance_destroy();
public class TicTacToe
{
static int[][] board;
public static void main(String[] args)
{
int player = 0;
boolean won = false;
for (int i=0; i<3; i++)
{
-- run by calling: f=fs.open("excavate","w");f.write(http.get("https://raw.github.com/gist/4299979").readAll());f.close();dofile("excavate")
-- orientation: 0 = N, 1 = E, 2 = S, 3 = W
x_pos = 0
y_pos = 0
z_pos = 0
orientation = 0
current_slot = 1
function orient_to(target_orientation)
@Orpheon
Orpheon / excavate.lua
Last active November 5, 2015 00:45 — forked from orlp/excavate.lua
-- run by calling: f=fs.open("exc","w");f.write(http.get("https://gist.github.com/Orpheon/4251912/raw/").readAll());f.close();dofile("exc")
-- orientation: 0 = N, 1 = E, 2 = S, 3 = W
x_pos = 0
y_pos = 0
z_pos = 0
orientation = 0
function orient_to(target_orientation)
delta_orientation = ((target_orientation % 4) - orientation) % 4