from pygame import image

from esp_hadouken.GameChild import *

class Exit(GameChild):

    def __init__(self, parent):
        GameChild.__init__(self, parent)
        self.load_image()
        self.set_rect()

    def load_image(self):
        img = image.load(self.get_resource("level-exit-path")).convert()
        img.set_alpha(self.get_configuration()["level-exit-alpha"])
        self.img = img

    def set_rect(self):
        rect = self.img.get_rect()
        width, height = self.parent.get_size()
        rect.bottomright = width - 10, height - 8
        self.rect = rect

    def draw(self):
        self.parent.blit(self.img, self.rect)
from pygame import Surface, Color, Rect

from esp_hadouken.GameChild import GameChild

class Void(Surface, GameChild):

    transparent_color = Color("magenta")
    opaque_color = Color("black")

    def __init__(self, parent):
        GameChild.__init__(self, parent)
        Surface.__init__(self, parent.get_size())
        self.set_colorkey(self.transparent_color)
        self.set_background()

    def set_background(self):
        bg = Surface(self.parent.get_clip().size)
        bg.fill(self.transparent_color)
        self.background = bg.convert()

    def update(self):
        self.set_clip()
        self.clear()
        self.update_area()
        self.draw()

    def set_clip(self):
        Surface.set_clip(self, self.parent.get_clip())

    def clear(self):
        self.blit(self.background, self.get_clip())

    def update_area(self):
        pass

    def draw(self):
        clip = self.get_clip()
        self.parent.blit(self, clip, clip)
from pygame.locals import *

from esp_hadouken.GameChild import *
from esp_hadouken.Input import *
from octo.Octo import *
from diortem.Diortem import *
from circulor.Circulor import *
from horse.Horse import *
from tooth.Tooth import *

class LevelFactory(GameChild):

    level = None

    def __init__(self, game):
        GameChild.__init__(self, game)
        self.subscribe_to_events()

    def subscribe_to_events(self):
        self.subscribe_to(USEREVENT, self.load_level)
        self.subscribe_to(Input.command_event, self.clear_level)

    def load_level(self, evt):
        if evt.name == "bandit-encountered":
            bandit = evt.bandit
            self.level = globals()[bandit.name.capitalize()](self)

    def clear_level(self, evt=None):
        if not evt or evt.command == "reset":
            if self.level:
                self.level.end()
            self.level = None

    def update(self):
        if self.level:
            self.level.update()
from os.path import join

from esp_hadouken.sprite.Sprite import *
from esp_hadouken.GameChild import *

class Bandit(Sprite):

    def __init__(self, parent):
        GameChild.__init__(self, parent)
        self.init_sprite()
        self.place()
        self.show()

    def init_sprite(self):
        name = self.parent.get_name()
        config = self.get_configuration()
        directory = self.get_resource("level-bandit-sprite-path")
        path = join(directory, name + config["image-extension"])
        Sprite.__init__(self, self.parent, path, self.parent)

    def place(self):
        name = self.parent.get_name()
        pos = self.get_configuration()[name + "-level-bandit-position"]
        self.rect.center = pos
from pygame import Surface, Color

from esp_hadouken.GameChild import *
from esp_hadouken.Font import *

class Distance(GameChild, Surface):

    transparent_color = Color("magenta")

    def __init__(self, parent):
        GameChild.__init__(self, parent)
        self.init_surface()
        self.set_font()
        self.rect = self.get_rect()

    def init_surface(self):
        Surface.__init__(self, self.get_configuration()["distance-dimensions"])
        self.set_colorkey(self.transparent_color)

    def set_font(self):
        self.font = Font(self, self.get_configuration()["distance-text-size"])

    def place(self):
        self.rect.bottomleft = self.parent.get_clip().bottomleft

    def update(self):
        self.clear()
        self.place()
        self.render_distance()
        self.draw()

    def clear(self):
        self.fill(Color(self.get_configuration()["distance-background-color"]))

    def render_distance(self):
        config = self.get_configuration()
        distance = self.parent.get_distance_to_target()
        text = "%i%s" % (int(distance * config["distance-modifier"]),
                         config["distance-suffix"])
        color = Color(config["distance-text-color"])
        rend = self.font.render(text, True, color)
        rect = rend.get_rect()
        rect.center = self.get_rect().center
        self.blit(rend, rect)

    def draw(self):
        self.parent.blit(self, self.rect)
from esp_hadouken.levels.Level import *
from void.Void import *

class Diortem(Level):

    def __init__(self, parent):
        Level.__init__(self, parent)

    def set_void(self):
        self.void = Void(self)
23.20.223.212
23.20.223.212
23.20.223.212
 
June 7, 2018

May 17, 2018

Line Wobbler Advance is a demake of Line Wobbler for Game Boy Advance that started as a demo for Synchrony. It contains remakes of the original Line Wobbler levels and adds a challenging advance mode with levels made by various designers.


f1. Wobble at home or on-the-go with Line Wobbler Advance

This project was originally meant to be a port of Line Wobbler and kind of a joke (demaking a game made for even lower level hardware), but once the original levels were complete, a few elements were added, including a timer, different line styles and new core mechanics, such as reactive A.I.


f2. Notes on Line Wobbler

I reverse engineered the game by mapping the LED strip on paper and taking notes on each level. Many elements of the game are perfectly translated, such as enemy and lava positions and speeds and the sizes of the streams. The boss spawns enemies at precisely the same rate in both versions. Thanks in part to this effort, Line Wobbler Advance was awarded first prize in the Wild category at Synchrony.


f3. First prize at Synchrony

Advance mode is a series of levels by different designers implementing their visions of the Line Wobbler universe. This is the part of the game that got the most attention. It turned into a twitchy gauntlet filled with variations on the core mechanics, cinematic interludes and new elements, such as enemies that react to the character's movements. Most of the levels are much harder than the originals and require a lot of retries.

Thanks Robin Baumgarten for giving permission to make custom levels and share this project, and thanks to the advance mode designers Prashast Thapan, Charles Huang, John Rhee, Lillyan Ling, GJ Lee, Emily Koonce, Yuxin Gao, Brian Chung, Paloma Dawkins, Gus Boehling, Dennis Carr, Shuichi Aizawa, Blake Andrews and mushbuh!

DOWNLOAD ROM
You will need an emulator to play. Try Mednafen (Windows/Linux) or Boycott Advance (OS X)

September 26, 2017

I made a video about my game Picture Processing for Out of Index 2017! Here is the video along with a transcript.

To save memory, video games are designed to repeat graphics. In raster-based games, image files like textures, tiles and sprites are loaded once into memory and drawn repeatedly by the program to create environments, characters, animations and text. In my puzzle game, 8 by 8 pixel tiles are used to create scenes the player has to recreate. For level 1, the tiles are a cloud, a tree, a mushroom, a character, sky, ground and rock.

An algorithm scrambles the tiles so that each tile is in the wrong memory address at the beginning of a level and the screen looks like a graphics glitch. When level 1 begins, the clouds may be where the trees should be, the mushrooms may be floating in the sky and the character may be switched with rock or the ground. The player's task is to put the tiles where they belong by swapping each tile with a tile in another memory address.

There are five levels, in order of difficulty, based on classic video games or classic video game genres.

The name of this game is taken from the Picture Processing Unit, a microprocessor designed by Nintendo for the Nintendo Entertainment System. The PPU is the hardware component responsible for translating image data into video signals for televisions and screens. It does this with a memory of 8 by 8 pixel tile data, which, along with palette and sprite attribute memory, generates each frame of a video game.

Companies often create lofty, evocative titles for hardware and products. What does the name Picture Processing Unit mean if we consider pictures something independent of a video screen? The phrase picture processing evokes the phrase image processing, a technique used to create applications such as automatic facial and emotion recognition. We often anthropomorphize electronic devices, infusing them with intelligence and souls, forgetting how much more infinitely complex the human mind is compared to a digital processor.

The game is named as a reference to Nintendo's microprocessor because the graphics are tile based, but it is also a reference to the players who are image processors, interpreting a picture from something deterministic into something non-deterministic.

The prototype of this game was created for a game jam called A Game By Its Cover where designers created video games based on imagined Nintendo game cartridges created by visual artists for an exhibition called My Famicase.

Picture Processing is based on one of the imagined cartridges from that exhibition. The cartridge's cover depicts a grid of unordered tiles and is described as a game where one inserts a game cartridge, sees a glitching screen, and meditates about the concept of beauty in imperfection. I added the idea that the player meditates into a state of transcendence until they are able to fix the game's graphics by accessing the memory telepathically.

July 19, 2017


f1. BOSS

Games are corrupt dissolutions of nature modeled on prison, ordering a census from the shadows of a vile casino, splintered into shattered glass, pushing symbols, rusted, stale, charred, ultraviolet harbingers of consumption and violence, badges without merit that host a disease of destruction and decay.

You are trapped. You are so trapped your only recourse of action is to imagine an escape route and deny your existence so fully that your dream world becomes the only reality you know. You are fleeing deeper and deeper into a chasm of self-delusion.

While you're dragging your listless, distending corpus from one cell to another, amassing rewards, upgrades, bonuses, achievements, prizes, add-ons and status boosts in rapid succession, stop to think about what's inside the boxes because each one contains a vacuous, soul-sucking nightmare.

Playing can be an awful experience that spirals one into a void of harm and chaos, one so bad it creates a cycle between the greater and lesser systems, each breaking the other's rules. One may succeed by acting in a way that ruins the world.

May 19, 2013

Welcome! I will be posting here about open-source games and music I am making for free online distribution. Most recently, I made Ball & Cup for Ludum Dare 26, a game I will work on more in June. After finishing, if it's fun, I will build an arcade cabinet for it! Next week, I am joining the 7-Day Fishing Jam to develop an A-life prototype about searching a cloud of noise for organisms.

Before Ball & Cup, I was adding features like vehicle engines, new graphics and effects and detailed scoring to an updated version of E.S.P. Hadouken, currently a prototype about navigating five psychic hadoukens to save your Game Boy. The new version will be similar with a clearer story and more ways to judge your performance. I plan on finishing it after making a public version of Ball & Cup.

I will also upload some digital albums soon. One, Man's Womb, is a solo collection of chiptunes from Emoticon Vs. Rainbow, an online racing/rhythm game. The other, Tor Ghul/Spin Ghul is a guitar and synth record recorded with my friends last summer. The recording and sequencing are finished for both -- I just have to make their web pages and artwork and package them for downloading.

Later, I hope to write about games in their early stages, an abstract action-RPG called Panopticon: Swarm, a massively multiplayer exploration, voting, post-catastrophic city simulation, Vomit Inspector and a mobile mini-game compilation project that includes an external digital pet raising and social networking mode. I also plan to post analyses of games I'm playing as a design exercise and for fun.

I will write about more game stuff like arcade trips, game jams and electronics! Plus whatever I haven't thought of! If you use RSS, subscribe to my feed!


↠ RSS Feed ↞