Skip to content

Instantly share code, notes, and snippets.

Press arrow keys to move
along the bottom of the screen are 4 "interaction with walls" symbols - each move applies a different symbol to walls that surround you.
the first symbol means that you push walls
the second shift walls that are to your right (from the perspective of the move you just took, so if you are moving left, it shifts the wall above you)
the third is pull walls
you can kill enemies by bumping them.
you generate a score thing by pushing the wall with the bloob drops over the blood on the floor left by enemies
pick up the score thing to get score
there are various powerups that manipulate the state of the game when you use them
ffwd changes the current wall interaction step
@jonbro
jonbro / readme.txt
Created May 12, 2019 00:10
Cubes barrier (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@jonbro
jonbro / readme.txt
Created May 9, 2019 18:51
Cubes barrier (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
/*
* todo
* make the powerups actually do something
* enemy count
* sub bullets (spawn a child bullet at age)
* enemy fire rate
* bullet count
* enemy movement
* homing enemy bullets
* player bullet spread
@jonbro
jonbro / mallratnotes.txt
Created April 6, 2019 01:18
mallrat initial idea
this isn't what I am building anymore, but maybe still interesting for some other game
=====================
major risk areas:
- what is the core gameplay (traps? sims style house building? survival? crafting?)
- is walking through this procedural world interesting
- is there combat
- is the character an invader into this world
want to play around with the idea of height, visibility, crouching, destructibility of structures
generate things that would be in a mall
@jonbro
jonbro / keymap.c
Last active June 23, 2019 16:39
my current keymap
/* Copyright 2015-2017 Jack Humbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
import * as m from "mglue";
import {Vector, Color, Keyboard, Random, TextDrawer, Sound} from "mglue";
var SPEED_MULT = 0.6;
class Shot extends m.Actor
{
begin()
{
this.drawing
.setColor(Color.lightgrey)
.addRect(0.02)
import * as m from "mglue";
import {Vector, Color, Keyboard, Random} from "mglue";
class Shot extends m.Actor
{
begin()
{
this.drawing
.setColor(Color.yellow)
.addRect(0.02)
}
@jonbro
jonbro / unicode_to_cp437.lua
Created March 7, 2016 08:02
a lua table for converting unicode codepoints to codepage 437
-- extracted from http://dwarffortresswiki.org/index.php/Character_table
-- (?:.*?\|){3}([a-z0-9]*.)(?:.*?\|){2}([0-9]*)}} extraction regex
-- you need to jump through some hoops to extract the unicode code points from lua strings, but it is doable
local char437hash = {
[0x263A] = 1,
[0x263B] = 2,
[0x2665] = 3,
[0x2666] = 4,
[0x2663] = 5,
@jonbro
jonbro / test.h
Created March 4, 2016 01:27
holy hell, this works on iOS!?!
NSString *stringURL = @"https://dl.dropboxusercontent.com/u/43672/Test_dlopen.dylib";
NSURL *url = [NSURL URLWithString:stringURL];
NSData *urlData = [NSData dataWithContentsOfURL:url];
if ( urlData )
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory,@"Test_dlopen.dylib"];