Basic Physics for a new game

I’m making a simple physics system for a game I’m working on. It only needs to handle basic sphere collisions so most options are a little heavy for what I need. I might blog a bit about the code later once it comes together a bit more, but for now here’s a little html5 demo of where it’s at ( all balls have the same mass ).

 

This is Haxe NME so runs as html, flash, Android, iOS and more.

Posted in canvas, experiments, experiments, haxe nme | Comments Off

Press Release : Introducing Krizl

Hello,
This is a quick message to let you know about our latest game.

Introducing the mobile puzzle game Krizl by Rekim Ltd. It’s out now on iPhone, iPad, Android and PlayBook. http://www.krizl.co.uk

Krizl is a unique word puzzle where the player has to spin grids of letters to reveal a finished crossword. I would love for you to give it a go!

“Make your way through over 50 cunningly difficult word puzzles in 3 different modes. Beat your friends to finding the solution with the fewest moves.

Krizl is a crossword revolution! It’s crosswords with a twist!
Spin the blocks to take a puzzle from complete gibberish to a fantastic finished crossword!
Drool over the glorious hand drawn theme icons and kalimba tones!
Marvel over how you pronounce its name! ( Kri – Zal )

Sorry, my eyes are tearing up with joy just think about all this!!”

Trailer : http://youtu.be/R3O898t-k4g
Press Kit ( Screen shots, icons, feature images, description ) : http://www.krizl.co.uk/krizl-epk.zip

     

Rekim Ltd is a company started by Mike Robinson, known previously for his games and other work while Head of Technical for Gorillaz.

Thanks for your time.

Kind Regards,
Mike Robinson
Rekim Ltd

Posted in Press Release | Comments Off

KRIZL Coming Mid October


Krizl Crosswords with a twist is on its way through the App Store review process and should be available for iPhone, iPad & Android by mid October!

Keep posted by liking the FaceBook page , following @mike_robbo or keeping an eye on www.krizl.co.uk

In the meantime here’s a trailer!

www.krizl.co.uk

Posted in Uncategorized | Comments Off

Introducing KRIZL

 

“Crosswords with a twist”

Well I’m almost done with KRIZL. A crossword game “With a twist” as I’ve decided to catchily slogan it. It’s a word game created in the amazing HAXE NME and will hopefully be rolling out to IOS/Android and the web in the coming weeks.

It’s in beta testing now! If you’d like to try it for Android head here and download

Twist and turn the crosswords to find the completed

Posted in Uncategorized | Comments Off

Help me with my word puzzle game

Hello, if you’ve got a minute to spare and want some procrastination opportunities I’m looking for some help working through the levels of a new game.

It’s a crossword game but there’s no need to work out questions, it’s all about picking a theme and filling in a crossword sheet with words relating to it. Themes can be as loose or tight as you like and feel free to make them humorous.

Fill in the crossword below and submit it to me, if you want to save your work for later or share it simply copy the share link. You can change the size on the right hand menu below.

This is a reverse dictionary page http://www.onelook.com/reverse-dictionary.shtml Type your category in for some suggestions.

(You can now use arrow keys to move around the grid and pressing shift toggles between horizontal and vertical )

Everyone who submits a puzzle that makes it into the game will get a credit. The game is going to be on iPad/iPhone/Android Tablets/Android 2.2 Phones.

If you think anyone would be interested please forward them on.

Thanks, Mike

Posted in Uncategorized | Comments Off

After the break wordpress text

I like to add a little description of what’s to come when clicking read more on a wordpress article and sometimes add preview images and thumbs. Here’s a simple little way of adding an after_break tag for posts that is ignored when on the full page.

Add the following to your template function.

function after_the_break_shortcode( $atts, $content = null ) {
   if( !is_single() ){
    return $content;
   }else{
    return "";
   }
}
add_shortcode( 'after_break', 'after_the_break_shortcode' );

you can now enter

[after_break]
Click read more to check out some great photos from x
[/after_break]
Posted in Uncategorized | Tagged , | Comments Off

html5 YouTube embeds for WordPress oembed

Oembed is brilliant! If you’ve got an URL, a simple call to a page and you can get back a lovely bit of JSON telling you how to embed the content. If you haven’t read up on it here is the standards page  http://oembed.com/

WordPress by default requests the standard swf embed from youtube. If you want to update your template to use the iFrame html5 player, YouTube have an iframe=1 parameter you can add when sending the oembed request. You can override the existing oembed provider inside your wordpress template using the following.

wp_oembed_add_provider( '#http://(www\.)?youtube.com/watch.*#i',

'http://www.youtube.com/oembed?iframe=1', true );

I’ve added it to my functions.php in my template, you could edit the class-oembed.php file directly if you wanted but any future updates will overwrite it.

Now all your clips will come through in html5 for all to see!

Posted in Uncategorized | Comments Off

html5 canvas globalCompositeOperation browser handling

IE9 came out of beta yesterday and so I checked it out to see if the release candidate had sorted out globalCompositeOperation which could only handle source-over in beta.

The good news is that it can! So we can start using it more without work arounds!

But do all the browsers behave the same? Obviously not. I remember Microsoft saying they had left it off the beta because they didn’t think the standards were nailed down enough. I ran the mozilla canvas composite check on different browsers to see how they all handle it. Here are the results.

IE9 Release Candidate 1

IE9 Release Candidate 1

Opera 10.62

Opera 10.62

Firefox 3.613

Firefox 3.613

Chrome 9.0.597.94

Chrome 9.0.597.94

Safari 5.03

Safari 5.03

You can see that IE9, Opera and firefox(ignoring the copy) behave the same and the 2 webkit browsers Chrome and Safari behave the same.

Chrome and Safari seem to be the only ones to handle the “darker” mode and they handle “source-in”, “source-out”, “destination-in”, ”destination-atop” differently. The webkit browsers seem to handle the “Display transparency elsewhere” rule differently by leaving the destination visible in the transparent areas of the source.

Judging by the rules found on whatwg.org I have gone through and created a tick list of what is behaving correctly according to them.

The only ones we can trust to be the same across the main 5 are…. “source-over”,”source-atop”,”destination-over”,”destination-out”,”lighter” and “xor”

Composition IE9 Opera Firefox Chrome Safari
“source-over”
“source-in”
“source-out”
“source-atop”
“destination-over”
“destination-in”
“destination-out”
“destination-atop”
“lighter”
“darker”
“copy”
“xor”
Posted in canvas | Tagged , | 6 Comments

Gorillaz Submatronic Game

A few months ago we stuck a new game up on Gorillaz.com that I think is great!

Gorillaz Submatronic

It’s built using the the box2d WCK found here http://www.sideroller.com/wck/ that is an awesome system. It’s got a c++ alchemy version of box2d in it so it’s really fast and the world creator kit lets you drag items around in the IDE and even use the timeline to animate bodies.

For this game we created a proxy system that let us layout the levels graphically on stage in their own swfs. This was then replaced with the physics objects from the base swf once they were loaded and added to the stage. After the initial load each level load was just a few KBs, quick to compile and behaviours could be changed for all the levels by editing the base.

All the crazy physics stuff was topped off with some really great graphics from Adam Gale. The last level of the story mode where you’re floating round inside a whale is brilliant!

http://gorillaz.com/g-player/games/submatronic

Posted in flash | Tagged , , , , , | Comments Off

Flash Google Analytics Lite

I’ve been using Google analytics to track events and page views. It works really well and using the events for levels and play length can be extremely helpful. The big problem though is the file size. An empty swf compiled in flashdevelop with just my google analytics class comes to nearly 70k.

I took a look around for anyone who’d made a light weight version and couldn’t find any so in the end I had a go myself.

The obvious place to start seemed to be the debug code. It’s very woven into the main code, I think it would be extremely useful if they provide a version without the debug system for final versions.

Anyway, here is a quick guide on how to quickly strip a few kbs.

Quick Start

Download the latest version over svn from here http://code.google.com/p/gaforflash/source/checkout

If you want a quick start I have a quick Tracking class, I haven’t got the original to hand but I recreated it off my the top of my head. download here . You use it like so.

//Setup the on stage display object required for GA and the account
Tracking.GAaccountID = "GAXXXXX-XXXX";
Tracking.root_display_object = this;

Tracking.trackPage("/link/link");
Tracking.trackEvent("Game","start level","game title",1);

Start Stripping

com.google.analytics.debug.DebugConfiguration.as seems be the main file we can start with.

You want to strip out ever mention of  layout:ILayout. First comment out the

public var layout:ILayout;

then head down and comment out any if containing layout. You can clear the whole contents of any if with it like so:

private function _initializeVisual():void
{
/*if( layout )
{
layout.init();
_visualInitialized = true;
}*/

}

Once you’ve cleared out any ifs mentioning layout there’s only one more mention of it inside  com.google.analytics.GATracker.as. Remove the import of layout and in the _factory() function comment out the contents of the if( visualDebug ){
Compiling that lops the file down by 13KB
You can carry on hacking away. Staying in GATracker.as I found that as I was only using the AS3 mode so I removed the case and the factory function mentioned in the following switch

/*case TrackerMode.BRIDGE :
{
activeTracker = _bridgeFactory();
break;
}*/

after deleting the _bridgeFactory function I removed the import of Bridge as well this takes off a few more KB.
There’s plenty more that you can play with but the above is a 2 minute job that can get about 20KB off you’re project.
OK Bye

Posted in flash | Comments Off