Salomonsson.se
May 29 2012

Actionscript Vector Short Hand Notation

I can never remember the short hand notation for Vectors in actionscript 3, so I write it down here once and for all. Hopefully it might even help someone else.

You can declare and instanciate a new Vector by typing one of the following:

// Long way
var vec1:Vector.<int> = new Vector.<int>();
vec1.push(1);
vec1.push(2);
vec1.push(3);

// A little bit better
var vec2:Vector.<int> = Vector.<int>([1, 2, 3]);

// Yeah, I like this one B-)
var vec3:Vector.<int> = new <int>[1,2,3];
READ MORE >>
Sep 02 2011

Ludum Dare 21: Abandoned

Theme: Escape

Ludum Dare entry

When making my entry I wanted to make my game as creepy as possible. Since the theme was ‘Escape’ I was going for a world you probably don’t want to stay in :) As art/design isn’t really my strongest side I went with the sketchy look. Its a style I call “Fulsnyggt”, when it looks so ugly that it actually looks good.

READ MORE >>
May 05 2011

Ludum Dare 20: My first go with XNA

Theme: “It’s dangerous to go alone! Take this!”

This was the first time I participate in Ludum Dare, and I had decided to use XNA, a framework I had never used before (but Ludum Dare is a fine motivator to learn something new).

The bad news is that I failed. Pretty bad! This is what happened…

READ MORE >>
Nov 18 2010

My first iPhone app

We had a iPhone app-dev night at the office (isotop) last night, where we were guided by our iPhone app guru Eric N. This is the result from that evening.

Nov 05 2010

Git Cheat Sheet

I’m pretty experienced with svn, but I’m a total newbie to git – and having some problem remembering the all the command-line syntax, so I’ll use this page as a cheat sheet. Feel free to bookmark =)

READ MORE >>
Oct 04 2010

Error reading xml attribute when migrating from Flex 3 to 4.1

I have been struggling with several migration issues when going from flexSDK 3.2 to 4.1. This is another strange one…

READ MORE >>
Sep 15 2010

Silver medal at Android Hackathon

I participated in Android Hackathon this weekend, where the goal was to build a game for an Android phone in one day – and the theme was retro (8-16 bits).

READ MORE >>
Jul 31 2010

Embedded fonts disappear when updating to Flex SDK 4.1

I recently updated my flex SDK to 4.1, (from 3.x) just to find that all my embedded fonts were missing.

This was the scenario:

  • Embedding fonts using the [Embed] meta tag
  • Applying font using TextFormat (don’t know what happens if you use CSS, my guess is that it won’t work either)

Quick fix: note the “embedAsCFF”

[Embed(source="font.ttf", fontFamily="x", mimeType="application/x-font", embedAsCFF="false")]
public var FontClass:Class;
READ MORE >>
Apr 27 2010

A collection of tutorials

Here are some really good tutorials. They are definetly worth your time!

http://www.bit-101.com/tutorials/ Excellent tutorials by Keith Peters about Perspective, Elasticity, 3D Rotation and more. A good place to start looking for your first steps in 3d!

http://student.kuleuven.be/~m0216922/CG/ Learn some really cool old school computer graphics effects such as perlin noise fire, ray casting or some Image Arithmetic.

Feb 28 2010

How to make a game like Metro.Siberia

A guy named Emanuel Feronato has written a series of tutorials about how to make a game like Metre.Siberia. I think the tutorial is a good place for thoose of you who are pretty new with flash/actionscript, and I’m flattered that he choose MS to make a tutorial of!

http://www.emanueleferonato.com/2008/01/18/create-a-flash-game-like-metro-siberia-underground/

Jun 07 2009

Tv4Play

During my time at Isotop I have worked a lot with flash based video players. It all started with a brand new videoplayer for tv4play.se in late 2008, and since then I have been maintaining and kept adding features and new versions. Let me take you to a trip down memory lane, and have a look at a few of all the different versions and variations of the player I have been involved in…

READ MORE >>
Apr 19 2009

Ghost4Koin - a game in less than 4 kb

A game in less than 4 kb. This image is 6 kb!

[http://games.salomonsson.se/games/ghost4koin.html](Click here to play the game) but watch your ears, the sound effects are very loud!

In 2009 I gathered a team of co-workers from Isotop to enter a competition where you were supposed to build a game with a final result of less than 4 kilobytes. Since I’m both interested in game development, optimization and low level actionscript this competition seemed even more compelling to me.

READ MORE >>
Aug 08 2008

Battlefield Bad Company

During 2008 I spent two months consulting at DICE, working on Battlefield Bad Company.

I did mostly in-game UI stuff. Among other things I built the system for setting up and handle hud/cross-hairs for the weapons and vehicles, and for handling special properties (zoom in with sniper rifle, number of rounds in grenade launcher or current heading and altitude in helicopters). I also worked on the loading screens and health bars.

It was a very exciting project to work with, and of course I’m extremely proud to see my name listed in the credits!

Apr 15 2008

Metro.Siberia - People in planes edition

<< Click to play >>

A special edition of Metro.Siberia promoting the new single Pretty Buildings. A completely new level where we’ll go through the main capital city…

Also playable on newgrounds (with lots of comments)!

Dec 02 2007

Tv4vädret

This Swedish weather application was released in late 2007 and had lots of really cool features. You could check the weather all around the world, and could play, fast forward or rewind the weather forecasts. I kept developing and maintaining the app until 2010 when it was taken down. Up until then it had spawned several sub-applications such as “Sjövädret”, “Skidvädret” and “Pollenvädret,” which were using the same engine…

READ MORE >>