Home of Ebyan Alvarez-Buylla

Neural Particle Deposition

Neural Particle Deposition

In developing an algorithm to generate nodes that are guaranteed to be within a certain distance of each other, I stumbled over this interesting distribution of particles which were initially placed randomly then moved near their nearest neighbor. I’ve dubbed this particle system “Neural Particle Deposition” on account of the organic, neuron-like shapes it produces. Take a look:

Inspired By

Inspired By

Abstractly speaking, as creators we derive inspiration from all experiences. The more deeply steeped in our craft, the more a once innocuous stimulus or perception can become the seed of a polished creation. However, the two best sources of inspiration are most likely to be other creations within your medium and other creators. Here are a few creators and creations that have inspired me to come into my own as a game developer:

Procedural Space Invaders

Procedural Space Invaders

These simple procedurally-generated Space Invaders-style sprites were directly inspired by Jared Tarbell’s classic Invader Fractal. The concept is straightforward: start with a grid of a set width and height (3×5 works well), and mirror on the x all tiles except for the center one. You can see it in action here and grab the source code from GitHub.

Hymn Progress

Hymn Progress

Hymn, the low-fantasy conflict-management collaboration I’ve been slowly plugging away at for a few months, has enjoyed some progress since the first early prototype/concept screenshots I shared. Although it isn’t quite as far along as I had hoped by now, the following screenshots are a testament to its development:

Procedural Radial Flowers

Procedural Radial Flowers

At my wife’s request I bring you a direct spin off of the Procedural Space Invaders, only this time rotated along a center axis to create procedural radial spirals, or “flowers”. You can see it in action here and grab the source code from GitHub.

Cocos2d iPhone Repeating Sprite

Cocos2d iPhone Repeating Sprite

Since Cocos2d iPhone’s OpenGL is only capable of repeating textures that have dimensions which are a power of two, I’ve put together a quick-and-dirty algorithm to tile arbitrarily-sized sprites to arbitrary sizes. TiledSprite takes a source sprite with a texture from a file or a subtexture from an atlas, and clips and/or tiles to fit the requested width and height. The source code is available on GitHub as a Gist, just copy-paste it, download it, or clone the repo and grab the .h and .m for use in your project.

Beautiful ASCII Art and Roguelike Concept Screens

Beautiful ASCII Art and Roguelike Concept Screens

Earlier today on #rgrd, Ido “tametick” Yehieli posted this link to the TIGForum thread for ASCIIPaint, a Flash-based tool to do just that: paint with ASCII. The thread features some amazing ASCII art, many of which are roguelike concept screens, put together by TIGSource community members.

Experimenting with Bézier Curves

Experimenting with Bézier Curves

A few days ago, I stumbled upon the Wikipedia Article on Bézier Curves. As a fan of procedurally generated art, when I saw the fifth-order Bézier curve animation within that article, I was inspired to attempt my own Bézier curve drawing algorithm. This is what happened. In this article, on ANidea, I break down a basic Bézier curve algorithm and show how it can be generalized to create Nth order Bézier curves.