Posts Tagged ‘ winphone7 ’

InterSceptre, a game 20 years in the making

InterSceptre is one of Leda Entertainment‘s pet projects, and has passed through several names and guises since the early 1990s. With a PC release on IndieCity imminent, and a possible XBox 360 release before Christmas, I wanted to look back over the development of the game from the earliest 16-bit incarnations through to the Windows Phone 7 release of the game earlier this year.

This slideshow requires JavaScript.

The original concept was for a futuristic bat-and-ball tennis style game, similar to Pong  but played on the vertical rather than horizontal axis (I’d never seen Pong; I assumed that it was played up-down rather than left-right partly because that’s how tennis is televised in the UK, and partly because I thought it would be too easy to defend a narrow gap with a wide space between the bats). The aim of the game is to get a shot past your opponent’s bat and off the screen. To make this more interesting, behind each player there is a row of blocks that first have to be destroyed (by hitting the bricks with shots) and then the winning shot fired through the gap presented. In that sense, InterSceptre borrows from two other classic games – Arkanoid and Breakout.

The concept proceeded through several generations, as I returned to it from time to time as my coding abilities improved and I learned more about the capabilities of STOS Basic:

1991: The first generation of the game was called Reflekt. The graphics were crude, the sprites moved in a jerky fashion and the collision detection was highly dodgy (shots often leapt through blocks undetected). Shots travelled in straight lines and were simply blocked, not even reflected – I probably didn’t get that far into writing the game before I was distracted by the next idea!

1992: You can’t keep a good idea down. I returned to the game the following year, and Reflekt II was born. It was one of the few games I actually completed writing on the ST, although there were a few bugs and crashes (Ben eventually ironed all of these out, and released the game as Reflexor, since no-one other than the two of us had ever heard of the original Reflekt). Reflekt II had bouncing shots and bonuses but not the centre bat or the white holes.

1995: InterSceptre (ST) was a game born from the STOS Missing Link extension, specifically the new Zones concept. Previous versions of the game had few large blocks behind the players which were too easy to get a shot through. With InterSceptre, it was possible to have many more and smaller blocks thus making the gameplay harder, and also freeing up space in the programming for more features: aliens and bonuses. The game was at least partially written in 68000 Assembler (I still have the collision detection code!)

InterSceptre on the ST was highly configurable; the user could turn on or off many of the game features (inertial control, centre bats, shot bounce, directional shots, black holes…) – features that survive into the XNA version of the game. InterSceptre was almost finished, but never released, on the ST (I think work was done to release a demo version of the game as Freeware…) InterSceptre (ST) had enemies that roamed the screen, getting in the way and destorying blocks, and it had black holes that swallowed shots – but no curving them round the screen.

It’s visibly the same game as the version released 16 years later. I was using alternate transparent and opaque pixels on the logo and the in-game drop shadows to try and create the illusion of translucency that is now so easy via alpha blending. Most remarkably of all perhaps is the visual difference between this version and the original Reflekt – how far I came in such a short time… and how little I’ve changed since!

2005: After writing ‘Get In The Ring‘ in C using DirectX for a university project, and some time fiddling with a platform concept game in C, I had a go at writing InterSceptre in C++ since I saw the possibilities OO would bring to games writing. Basic gameplay (bats and balls bouncing off each other and the environment, bricks being destroyed and the game won or lost) was working well and so I started porting the graphics over from the ST version. But I didn’t really get anywhere with it, and by late 2005 the project was effectively dead. Unfortunately no screenshots of this era exist; I don’t have a .exe of this version and so it lives in limbo. However, the game graphics from this version – the player bats, the game logo – were carried over unchanged into the PC and Windows Phone version, and the core code and class structure live on.

2010: When Ben reignited the desire for games writing by introducing me to XNA, I thought where better to start than with a game where I already had the code and the graphics? The core game classes were easily translated from C++ to C# over a few hours, and the game has evolved out from there, being significantly re-factored along the way as I got to learn XNA better. It’s been a fun proving ground for 2D games development, getting away from the old STOS limitations (how many sprites, how much processing).

Alpha channel work has been a revelation. About half the programming notes I have from the early PC days are about how I would go about doing lighting and transparency effects in a 256-colour restricted palette (since moving to 16 or 24-bit graphics would at the time have been too slow). Much of that is irrelevant now since I can use alpha-blending effects to effortlessly achieve something that was previously the result of a lot of mathematical heavy lifting (converting between the RGB and HSI colour spaces in order to reset pixel intensities), some of which even made it to code (that C-based platformer I referred to earlier).

The aftermath

Download InterSceptre from the Marketplace now!

Download InterSceptre from the Marketplace now!

So, InterSceptre has been published for over a month now – what’s been going on?

A lot has happened since I last wrote. Ben and I put some work into creating a press pack for our games, and Ben produced a brilliant promotional video to put on YouTube. We approached and were publicised in some of the major Windows Phone 7 blogs such as WPCentral, BestWP7Games, WP7Lab, and the XNAUK User Group. We also got some bad publicity, but maybe no publicity is truly bad as it caused a spike in interest, and more importantly gave birth to Ben’s new project: TrollWhacker.

Ben and I also had a good session at the London-based Windows Phone User Group, where we presented our efforts, and feedback from those guys helped refine the latest update to InterSceptre with improved feedback options, particularly an in-app suggestion to rate the game.

The publishing process itself has proved somewhat frustrating… it takes several days for each update to be tested and made available for review, and you have to be very careful how you actually release the game; publishing from the main menu (rather than the individual project page) can cause delays.

A few weeks in, and the results are disappointing. At the time of writing InterSceptre has had just 10 paid downloads, which is not a lot to show for a year’s work. However, the latest update also opened it up for trial mode, and so the game itself has been downloaded 43 times. More rewarding than the paid downloads is seeing the reviews come in. After that first initial bad review, InterSceptre was updated with better alternative controls and a nicer looking front page, which seems to have gone down well in the marketplace (the user who posted the scathing initial 1* review updating it to 3*, and several more positive reviews have followed from a worldwide audience).

Are these the ‘droids I’m looking for?

This left me in a bit of a quandry. Was it InterSceptre itself that wasn’t liked? Or is this all that can be expected of the Windows Phone platform? It is after all a much smaller target audience than the other platforms. Releasing a different game for WP7 would not be a controlled experiment, and therefore I decided to try porting InterSceptre to Android. Since then, I’ve been in contact with other developers who have similar poor sales figures, so I feel vindicated in this approach. Maybe if I ever make $99, I’ll consider porting to iOS…

Fortunately I could already code in Java, and it’s not radically different from C# in any case. It’s basically a case of finding out what the equivalent “hooks” are (how to draw on the screen, read the input devices, and play sounds) and watch out for the gotchas. I’ve been building a mock XNA framework to help me move XNA projects over to Android without too much reworking… most of my class hierarchy already abstracts away from XNA anyway, but the base levels of that needed some replumbing. You also need to take care as Android is multi-threaded, which can raise some unexpected issues for the unwary.

Android development is frustrating. The emulator is slow. As in a frame every 5 seconds slow. That’s because it’s written in Java, and is emulating an entire hardware device from the BIOS up through the Android OS stack, and then running Java on top. It’s several layers of emulation deep. This makes developing a game almost impossible without access to a physical device. Fortunately there is no “unlocking” required, unlike for Windows Phones, so you can test before handing your cash ($25) over to Google to get a developer account. But even on the device itself, InterSceptre is getting a disappointing 10fps or so, compared to 30+ on the Windows Phone. This significantly affects the gameplay.

The other issue you have to be aware of is that Android phones all have different screen sizes, unlike Windows Phones which are all 800×480. Android phones mostly have smaller screens too – typically 400×240, or smaller. This is a problem if your game, like mine, is full of pre-rendered graphics, and particularly pre-rendered text, that wants to be a certain size. You have to do all your own resizing and rescaling at run time, or rewrite everything. InterSceptre’s main game can adjust to the screen size available, but the title screen and options pages needed to be dynamically rescaled at draw-time… which also raises interesting issues around touch mapping because nothing is actually where your original code drew it 😉

So it’s been an adventure. I hope to have the Android port done before the holidays – I’ve got another 4 weeks or so – so that when I next go to the XNA UK User Group at the start of September, I’ll be there not just as a published WP7 games developer, but as a published Android developer too.

Maybe if I keep saying that, I’ll start believing it. I’m a published games developer. Nah, still not sunk in yet.

Standby for launch!

The coding is complete. All the game artwork is finished. Game music (courtesy of Ken MacLeod) has been added, the final screenshots taken, and everything has been uploaded to the App Hub ready for publishing. We just need to sort out all the boring tax details with the IRS before we can actually get paid, but the actual development is all done. Just need to wait for AstroSwag’s web upload to be finalised, and then we can go for the joint launch.

While you’re waiting to buy your copy from the Marketplace, check out these final screenshots!

This slideshow requires JavaScript.

All over, bar the shouting

I’ve used the word “finished” to describe InterSceptre quite a lot this year, but this time I almost mean it. I need to add some music for the title screen and in-game, and then it’s done. Release is now scheduled for the start of June, in time for the next XNA UK User Group meeting.

Several rounds of testing through the XNA UK XAP Test Service have ironed out the bugs and issues; I’ve taken much of their feedback on board – but not everything. Some stuff I don’t think is in keeping with the game’s feel. I’m sure they’ll be proven right.

I’ve done a lot of work on the game’s AI recently; it was too easy to beat. Now the different levels of AI player have different capabilities and strategies, rather than just faster reaction times. There’s loads more I could do here, but I think it’s good enough to release. Maybe if I ever revisit the game later, I’ll do more. There’s loads of scope for machine learning here, a personal hobby of mine, but let’s move on.

I’ve also added some different backgrounds. The main niggle left from the beta test team is around the backgrounds. What do you think?