Skip to content
Jan 16 12

Super Mario Bros. Crossover 2.0 Trailer

by Sean James McKenzie


The Super Mario Crossover 2.0 trailer was released today and it looks like a brand new game. In fact, it looks like several brand new games. It’s unclear what elements of the trailer are actual gameplay and what is trailer theatrics, namely its switching between NES, SNES and Gameboy graphics on the fly. Regardless, it looks to be packed with a lot of new stuff of old and I, for one, cannot wait to get my hands on it. Jay has always been good about easter eggs and surprise features, so I’m sure there’s a lot more than we’re seeing in this trailer.

It uses so many original sprites, sound effects and characters from NES games that it really begs the question:

WIll Nintendo (or other copyright holders) ever bitch about copyright infringement?

If they know what’s good for them, they’ll let Jay continue spreading the nostalgia but you just never know.

Nov 29 11

Find All Strings Within a String with AS3

by Sean James McKenzie

I’m working on a training simulator that allows people to virtually highlight text (like in iBooks) in a textField. I’ll probably post the code for the highlighting portion when the project is done.

For now, I thought I’d post this simple AS3 utility function I wrote, which allows you to find all instances of string inside another string. It accepts two arguments:

  • searchFor:String – string you wish to search FOR
  • searchIn:String – string you wish to search IN
  • caseSensitive:Boolean=true – (optional) determines whether comparisons are case sensitive

It will return an array containing the indices at which searchFor is found in searchIn. You can check the length of the array returned to get the number of times the search string appears in the search text. If the length is 0, searchFor does not appear in searchIn.

package com.baconandgames.utils{
public class Strings{
 
// returns an array of indexes for each occurance of searchFor in searchString
// var s:String = "Haw many cats are in this sentence about cats?";
// Strings.findAllStringsInString("cats",s); // returns [9,41];
 
public static function findAllStringsInString(searchFor:String,searchIn:String,caseSensitive:Boolean=true):Array{   
  if(!caseSensitive){             
    searchFor = searchFor.toLocaleLowerCase();        
    searchIn = searchIn.toLocaleLowerCase();   
  }       
  var a:Array = new Array();       
  var i:int = -1;     
  while ((i = searchIn.indexOf(searchFor, i+1)) != -1) a.push(i);      
  return a;
}
}

*simplified with suggestions by my good buddy and web-ninja Rob Colburn

Oct 14 11

Dr. Mario with Lyrics by Brental Floss

by Sean James McKenzie

This video is by no means new to the internet. It’s got close to 3 million view between Newgrounds and YouTube. I just thought I’d drop an article about it because, well, I watch it about 4 times a week. It cracks me up, continually. And being a complete VG music geek, the Dr. Mario theme song is usually stuck in my head anyway. Having lyrics to put to it somehow makes me feel less crazy.

But wait, there’s more… he’s got a huge catalog of VG related videos and songs up on his YouTube channel, including a 7 minute song about Link’s Awakening (which is longer than I could actually stand playing that game) If you’re a retro game geek like me, his stuff is worth a look.