EVR.Account.Form.Forms.Login_Form = function(forms)
{
   EVR.Account.Form.call(this, forms.element, "Login");
   this.forms = forms;
   this.initialize();
   this.add_inputs();
}
EVR.Account.Form.Forms.Login_Form.prototype = new EVR.Account.Form;
EVR.Account.Form.Forms.Login_Form.prototype.add_inputs = function()
{
   this.add_input("name", "username");
   this.add_input("pass", "password", "password");
}
EVR.Account.Form.Forms.Login_Form.prototype.respond = function()
{
   var response = this.submit();
   if (response == "")
   {
      this.clear_errors();
      this.forms.account.evr.log_in();
   }
   else
   {
      var current = this;
      window.setTimeout(
	 function()
	 {
	    current.clear_errors();
	    current.handle_error(response)
	    current.display_errors();
	 }, FORM_RESULTS_DELAY);
   }
}
EVR.Account.Form.Forms.Login_Form.prototype.submit = function()
{
   var script = SOURCE_PATH + "account/submit_login_request.php";
   var query = this.build_query();
   return new EVR.Requester(script, query, true).execute();
}
EVR.Account.Form.Forms.Login_Form.prototype.handle_error = function(error)
{
   var erroneous = "";
   if (error == "username not found (note: usernames are case-sensitive)")
   {
      erroneous = "name";
   }
   else if (error == "password doesn't match username")
   {
      erroneous = "pass";
   }
   if (erroneous != "")
   {
      this.add_error(error, erroneous);
   }
   else
   {
      alert(error);
   }
}
EVR.Account.Form.Forms.Registration_Form = function(forms)
{
   EVR.Account.Form.call(this, forms.element, "Register");
   this.forms = forms;
   this.initialize();
   this.add_inputs();
}
EVR.Account.Form.Forms.Registration_Form.prototype = new EVR.Account.Form;
EVR.Account.Form.Forms.Registration_Form.prototype.add_inputs = function()
{
   this.add_input("user", "username");
   this.add_input("pass", "password", "password");
   this.add_input("repeat", "confirm password", "password");
   this.add_input("email", "email address");
}
EVR.Account.Form.Forms.Registration_Form.prototype.respond = function()
{
   var response = this.submit();
   if (response[0] == "")
   {
      this.clear_errors();
      this.forms.account.evr.log_in();
   }
   else
   {
      var current = this;
      window.setTimeout(
	 function()
	 {
	    current.clear_errors();
	    current.add_errors(response);
	    current.display_errors();
	 }, FORM_RESULTS_DELAY);
   }
}
EVR.Account.Form.Forms.Registration_Form.prototype.submit = function()
{
   var script = SOURCE_PATH + "account/submit_registration_request.php";
   var query = this.build_query();
   return new EVR.Requester(script, query, true).execute().split("\n");
}
EVR.Account.Form.Forms.Registration_Form.prototype.add_errors = function(errors)
{
   var error, erroneous, found, display_response = false;
   for (var ii = 0; ii < errors.length; ii++)
   {
      error = errors[ii];
      erroneous = [];
      found = false;
      switch (error)
      {
         case "username taken":
         case "username too short":
         case "username too long":
         case "username contains invalid characters":
	    erroneous.push("user");
	    found = true;
      }
      switch (error)
      {
         case "submitted passwords don't match":
         case "password too short":
         case "password too long":
	    erroneous.push("pass");
	    erroneous.push("repeat");
	    found = true;
      }
      switch (error)
      {
         case "invalid email address format":
	    erroneous.push("email");
	    found = true;
      }
      if (!found)
      {
	 display_response = true;
      }
      else
      {
	 this.add_error(error, erroneous);
      }
   }
   if (display_response)
   {
      alert(errors);
   }
}
EVR.Account.Form.Forms.Forgot_Password_Form = function(forms)
{
   EVR.Account.Form.call(this, forms.element, "Reset Password");
   this.forms = forms;
   this.initialize();
   this.add_inputs();
}
EVR.Account.Form.Forms.Forgot_Password_Form.prototype = new EVR.Account.Form;
EVR.Account.Form.Forms.Forgot_Password_Form.prototype.add_inputs = function()
{
   this.add_input("name", "username");
   this.add_input("email", "email address");
}
EVR.Account.Form.Forms.Forgot_Password_Form.prototype.respond = function()
{
   var response = this.submit();
   if (response == "")
   {
      this.clear_errors();
      this.forms.account.evr.unload_account();
   }
   else
   {
      var current = this;
      window.setTimeout(
	 function()
	 {
	    current.clear_errors();
	    current.handle_errors(response);
	    current.display_errors();
	 }, FORM_RESULTS_DELAY);
   }
}
EVR.Account.Form.Forms.Forgot_Password_Form.prototype.submit = function()
{
   var script = SOURCE_PATH + "account/submit_reset_password_request.php";
   var query = this.build_query();
   return new EVR.Requester(script, query, true).execute();
}
EVR.Account.Form.Forms.Forgot_Password_Form.prototype.handle_errors =
   function(error)
{
   switch (error)
   {
      case "submitted address doesn't match account address":
      case "mail delivery failed":
         this.add_error(error, "email");
         break;
      case "username not found":
         this.add_error(error, "name");
         break;
      default:
         alert(error);
   }
}
3.238.70.175
3.238.70.175
3.238.70.175
 
January 23, 2021

I wanted to document this chat-controlled robot I made for Babycastles' LOLCAM📸 that accepts a predefined set of commands like a character in an RPG party 〰 commands like walk, spin, bash, drill. It can also understand donut, worm, ring, wheels, and more. The signal for each command is transmitted as a 24-bit value over infrared using two Arduinos, one with an infrared LED, and the other with an infrared receiver. I built the transmitter circuit, and the receiver was built into the board that came with the mBot robot kit. The infrared library IRLib2 was used to transmit and receive the data as a 24-bit value.


fig. 1.1: the LEDs don't have much to do with this post!

I wanted to control the robot the way the infrared remote that came with the mBot controlled it, but the difference would be that since we would be getting input from the computer, it would be like having a remote with an unlimited amount of buttons. The way the remote works is each button press sends a 24-bit value to the robot over infrared. Inspired by Game Boy Advance registers and tracker commands, I started thinking that if we packed multiple parameters into the 24 bits, it would allow a custom move to be sent each time, so I wrote transmitter and receiver code to process commands that looked like this:

bit
name
description
00
time
multiply by 64 to get duration of command in ms
01
02
03
04
left
multiply by 16 to get left motor power
05
06
07
08
right
multiply by 16 to get right motor power
09
10
11
12
left sign
0 = left wheel backward, 1 = left wheel forward
13
right sign
0 = right wheel forward, 1 = right wheel backward
14
robot id
0 = send to player one, 1 = send to player two
15
flip
negate motor signs when repeating command
16
repeats
number of times to repeat command
17
18
19
delay
multiply by 128 to get time between repeats in ms
20
21
22
23
swap
swap the motor power values on repeat
fig 1.2: tightly stuffed bits

The first command I was able to send with this method that seemed interesting was one that made the mBot do a wheelie.

$ ./send_command.py 15 12 15 1 0 0 0 7 0 1
sending 0xff871fcf...


fig 1.3: sick wheels

A side effect of sending the signal this way is any button on any infrared remote will cause the robot to do something. The star command was actually reverse engineered from looking at the code a random remote button sent. For the robot's debut, it ended up with 15 preset commands (that number is in stonks 📈). I posted a highlights video on social media of how the chat controls turned out.

This idea was inspired by a remote frog tank LED project I made for Ribbit's Frog World which had a similar concept: press a button, and in a remote location where 🐸 and 🐠 live, an LED would turn on.


fig 2.1: saying hi to froggo remotely using an LED

😇 The transmitter and receiver Arduino programs are available to be copied and modified 😇

March 22, 2020

The chicken nugget business starter kit is now available online! Send me any amount of money through Venmo or PayPal, and I will mail you a package which will enable you to start a chicken nugget business of your own, play a video game any time you want, introduce a new character into your Animal Crossing village, and start collecting the chicken nugget trading cards.

The kit includes:

  • jellybean
  • instruction manual
  • limited edition trading card

By following the instructions you'll learn how to cook your own chicken or tofu nugget and be well on your way to financial success. I'm also throwing in one randomly selected card from the limited edition trading card set. Collect them, trade them, and if you get all eighteen and show me your set, I will give you an exclusive video game product.

All orders are processed within a day, so you can have your kit on your doorstep as quickly as possible. Don't sleep on this offer! Click the PayPal button or send a Venmo payment of any amount to @ohsqueezy, and in a matter of days you'll be counting money and playing video games.

PayPal me

June 23, 2019

is pikachu dead

yes and how about that for a brain tickler that what you're seeing all along was a ghost. we used a digital stream of bits that in the future we call blood to recreate everything as a malleable substance that is projected through computers over a massive interstellar network that runs faster than the speed of light in order to simultaneously exist at every moment in time exactly the same way effectively creating a new dimension through which you can experience the timeless joy of video games. you can press a button and watch the impact of your actions instantaneously resonate eternally across an infinite landscape as you the master of a constantly regenerating universe supplant your reality with your imagination giving profoundly new meaning to the phrase what goes around comes around as what comes around is the manifestation of the thoughts you had before you were aware of them. thoughts before they were thought and actions before they were done! it's so revolutionary we saved it for 10,000 years from now but its all recycled here in the past with you at the helm and the future at the tips of your fingers

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)

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!