Monday, March 28, 2011

Tiltopolis

So the latest Corona-built iPhone/iPad game is here: Tiltopolis.

It's a twist on the old classic, Blocks. The twist is that the falling blocks land on a balance bar, seesaw, tilting beam - whatever you call it, it's a challenge as you've not just gotta stop the blocks from reaching the top, but reaching the bottom!

The game features Physics Mode (the seesaw reacts to being hit by the blocks) and Arcade Mode (the angle of the seesaw reflects number of blocks on either side) as well as 4 awesome tracks by new Brit band Run Toto Run!

Check it out:







Find Tiltopolis on AppStoreHQ.
Apps at AppStoreHQ

Friday, March 25, 2011

Friday, March 04, 2011

Worth Jailbreaking?

A recent post on El Reg (www.theregister.co.uk) points out that due to the hoops regular (ie: non-techy or can't-be-bothered-techy) mobile users (read: mobile phone and tablet users) have to jump through to get free apps or banned apps (those denied from stores like Apple's iOS App Store) most users are content with paying the low fee of US$0.99 or GB99p for an app on their phone or tablet.

Their article focuses on Open Source software, that of the wind of "Free". However, as a mobile developer myself, spending months working on an app and giving it away for free (especially the prospect that it would be installed via jailbreaking without charge) is rather underwelming.

Quote from El Reg:

"if an app is close enough to free and immediately available, with the added benefit of potentially being higher quality than open-source alternatives (because of the paid investment in developing and polishing the app), will there be any reason to bother downloading an open-source app?
Freedom matters a great deal to some, but arguably not to the consumers flocking to Apple's devices. And perhaps not even to the bulk of developers writing for those consumers."

Thursday, February 24, 2011

Interesting View

[Via: Engadget]

Watch out for the end of 2009 and 2010; The rest is fairly quiet.


Monday, February 21, 2011

Tuesday, February 15, 2011

Friday, January 28, 2011

Corona SDK Goes Windows

Corona SDK, the multi-platform development kit for iOS and Android had a major update this week. There is now a Windows SDK allowing the same lua language apps which can be compiled into iOS and Android Java apps on the Mac to be developed for Android on Windows.

To accompany this Ansca have included a slew of new features, all announced on their blog:
This is a really big step and one I believe will lead to some very interesting developments. Personally, I'm hoping for a lot of developer interest, to help bolster the Corona community and Ansca Mobile themselves, as well as WP7 builds.

I Hate Windows Server 2008

I really do.

But besides that, here's an article written to do justice (if not, comedy) to the annoying 'features' of the server OS. His other articles are about the useful, productive and more positive aspects, so please feel free to find out lots about the system.

Consider this article, however, the warning/watch out/snafu guide:

Slightly More Invasive

Tuesday, January 11, 2011

Wednesday, January 05, 2011

Corona Collision Filters

Ansca Mobile (www.anscamobile.com) have created a truly brilliant multi-mobile-platform SDK (iOS, Android) called Corona, which includes a Box2D (www.box2d.org) physics engine. There are many implementations in many languages for Box2D and one of the things which Ansca have got right is collision filters, one of the trickier things to implement in an physics API.

Brent Sorrentino of IgnisDesign has produced and posted a helper chart for working out which collision filters various objects should be assigned when building physics-based games using Corona:

Friday, November 19, 2010

Finally Developing For iOS

Here's a little post I made a while ago (which languished in draft for some time):
And here's some links I've found recently, now that I've chosen a development platform for iOS - having decided that, essentially, re-learning ANSI C++ with a new IDE (that I can't find any straightforward videos for [the latest version of XCode works slightly - but importantly - differently to that demonstrated in all the online tutorials]) is not my cup of tea...
I've found that for ease of learning the new language and a solid output, Ansca Mobile's Corona platform is performing well, has plenty of good tutorials and material and after the Apple iPhone Developer 1 year license ($99 in the USA, £59 in the UK), the Corona or Corona game license isn't too pricey. Though that might change soon...

Friday, October 22, 2010

Javascript Everyone Should Know - Iterating URL Args

Here's some javascript I'm often looking for, because I can't remember it off the cuff after 3 months of LINQ coding and I've started writing something where JQuery isn't available...

It iterates through all the parameters and their arguments passed in the URL...

var url = window.location.toString();
var query_string = url.split('?')[1];
var params = query_string.split("&");
for (var i = 0; i < params.length; i++)
{
var name = params[i].split("=")[0];
var arg = params[i].split("=")[1];
alert(i+': '+name+' = '+unescape(arg));
}

Thursday, October 21, 2010

Simple Category Tree Walking In T-SQL

I needed, as many have done before me, to create a snippet of SQL which was short and fast and returned a flattened table of tree nodes. In short, if you have a tree of nodes, get all the nodes below a specified node. The result is surprisingly simple and straightforward. Here it is, both as a snippet and a stored procedure. Assume the tree is stored in a table called Category, with CategoryID being the primary key and ParentCategoryID being the foreign key, to the same table, but nullable...

--------------------
declare @collect table ( catid int, tlevel int )
insert into @collect values (3,1)

declare @count int
set @count = 2

declare @maxlevel int
set @maxlevel = 2

while ((select count(1) from @collect where tlevel = @count-1) > 0 and @count <= @maxlevel)
begin

insert into @collect
select c.categoryid, @count
from category c inner join @collect b on c.parentcategoryid = b.catid and b.tlevel = @count-1

set @count = @count + 1

end

select * from @collect order by tlevel
--------------------
--------------------
CREATE PROCEDURE [dbo].[GetCategoryTree]
-- Add the parameters for the stored procedure here
@ParentCategoryID int
AS
BEGIN

-- the category id's to be output
declare @collect table ( catid int, tlevel int )
insert into @collect values (3,1)

-- a loop counter used to limit the depth we go to
declare @count int
set @count = 2

-- the deepest level to go to
declare @maxlevel int
set @maxlevel = 2

-- the loop to collect category id's
while
(
(select count(1) from @collect where tlevel = @count-1) > 0 -- keep going while we have categories
and @count <= @maxlevel -- keep going until the max level depth is reached
)
begin

-- insert the categories where the previous level contains the parent ids of the current level
insert into @collect
select c.categoryid, @count
from category c inner join @collect b on c.parentcategoryid = b.catid and b.tlevel = @count-1

-- increment the level being collected
set @count = @count + 1

end

-- return the found category id's
select * from @collect order by tlevel

END
--------------------

Tuesday, October 12, 2010

Writing Windows Services

Just found a really neat (as in compact) post on writing Windows Services in C#:
And here's some Windows Services resources for doing different things in a service:

Friday, October 01, 2010