So, it’s official…

I’ve been using Lua for a while now at my placement, and it’s quite a nice language. I’ve learned from it, and I’ve even learned a few things from Corona, even though it’s a hateful SDK with a ton of problems. ๐Ÿ˜›

This weekend, though, I returned to C# for the first time since the end of second year. I was just wondering if I could make a start on the little engine I’ve been planning on making for a while… well, not really a full-blown engine, more like a code base to make it even easier to develop games with XNA. Classes to easily handle audio, graphics, networking, and so on. ๐Ÿ™‚ I call it “JetSquirrel”, a tribute to the team project I worked on in second year:

Haha, it wasn’t actually called Jet-Powered Squirrel – that was just a crazy idea I thought up for fun when we didn’t have a name for our game. ๐Ÿ˜‰ It was named “Fluidity” in the end, but I kept “Project Jet-Powered Squirrel” as the solution name, partly because it was funny, but mainly because I was afraid to change it just in case I messed everything up. ๐Ÿ˜›

But anyway, ya, this weekend, I returned to C# to make a start on the JetSquirrel Engine. And oh God, how I’ve missed C#, and XNA, and Visual Studio. ๐Ÿ˜€ It’s so nice working in a proper IDE again. It tells you what’s wrong as you write your code, if there’s a bug, you can use breakpoints to pause the game at any time and inspect properties, and when the game has an exception, it stops and tells you where it went wrong instead of just trying to continue without telling you much… oh yes. ๐Ÿ˜€ A bazillion times better than Corona will ever be. ๐Ÿ˜€

There’s a good reason for me deciding to work on the JetSquirrel Engine this weekend instead of heading to Multimedia Fusion 2 and continuing work on ULSG V13 or the ULSG V14 prototype. This is because… well… unfortunately, Multimedia Fusion and I have had a bit of a fall out. ๐Ÿ˜›

I worked on a prototype of V14 in MMF. The process was pretty quick – I got a lot done in very little time. I posted about it, actually.ย  ๐Ÿ™‚ However… when the time came to try and get a second player in, everything fell apart, and I suddenly realised that MMF is not good enough for my needs any more.

I’d been using these things called “Behaviours” in MMF – I assumed them to beย kinda like “local code”. I thought that each instance of an object would run this code for themselves, like how a class works. Sadly, that’s reallyย not how it worked. In fact, I fail to understand the point of these “behaviours” entirely – the code is just run as if it was written in the Event Editor… only it seems to run it X times, X being the number of objects of that type there are.

What happened was I had an object called “ULS”, the Ultimate Lame Ship. In the object, there was an alterable value (an integer or double(if you’re lucky and MMF isn’t an idiot about it), you’re only allowed 26 of them per object – another MMF limitation) to identify which player was controlling the ship, and a behaviour which moved the ship by looking at the player’s input device. One of these objects in the scene? No problem. Works perfectly. Add another instance of the same object… BOOM. Player 1’s ship moves at double the speed and seems to break all the rules I set about maximum speed. Player 2’s ship doesn’t move at all. If one of the ships is destroyed, the other ship moves normally again. Yes, I’m giving each ship a unique player number, and yes, the code says that each ship should only respond to its own input device. Yet still only one ship moves… incorrectly.

Because of the progress I was making, this REALLY irritated me – this stupid idiot limitation of MMF. You want to make a player ship that will work in any mode for any player? No, you can’t, MMF doesn’t allow it. You have to make separate objects for each player which contain basically the same code. And hence, if you find a bug in the movement, you have to fix it FOUR TIMES, once for each player. You’ve also got to create separate S.P.A.R.T.A Drones for each player… and separate Balls of Steel… and so on. Yeah, not my idea of fun. ๐Ÿ˜›

In C#, you can create 4 players from the exact same class, give each of them a player number, and then each player ship runs separately, looking at its OWN values. “Oh, my player number is 2, and there’s been no input from player 2’s controller. So I’m going to stay still.” Not “oh, I’m player 1 and there’s been input from player 1’s controller so I’m going to run my code and player 2’s movement code for no reason WHEEEEEEE” and “I’m player 2 and there’s no input to my controller but player 1’s dead so I should take over player 1’s controller ahahahah” NO NO NO SCREW YOU.

I NEED to go further, and I can’t with MMF2.ย I’ve reached the program’s limit, and the only way for me to get better and make ULSG better is to take XNA as my tool of choice. So… as the blog title says, it’s official. I’m no longer using MMF. It’s been great using it all these years, and I’d still massively recommend it if you’re interested in games development and want somewhere to start, but for me, it’s time to move on.

If I can bear to wade through the mess of checkmarks that is V13, I’ll finish it off. It won’t have multiplayer, and may have features I planned to put in missing. But all my other projects will be done in C# using XNA – ULSG V14, Dragon Storm, and anything else. And over time, JetSquirrel will get better, so things will be easier to make. ๐Ÿ™‚

This weekend, then, I managed to do this in XNA:


(Don’t mind the FPS counter (if you can see it ;)) – the FRAPS recording was making it go crazy for some reason. :P)

It’s not much to look at, but on the programming side, there’s a simple but fully functional game state manager called JetDirector, which is the most important component so far. You create class files for each of your game “scenes”, such as main menu, splash screen, etc., and JetDirector can switch between them. There’s also a SFX class called JetSound, and a graphics helper called JetGraphics. ๐Ÿ™‚ All works pretty well so far! ๐Ÿ˜€

I’ll have to try and find more time to work on it during the week, since I’m at my parents’ next weekend without a computer to use. :/ I’m aiming to get it to this stage as soon as possible:

That’s as far as I got with MMF, until the limitations reared their ugly heads. ๐Ÿ˜› Might take a little while, since I’m going with a higher resolution, so I’ll have to redo the HUD and the menu graphics.

But ya, it’s good to be back with XNA again. ๐Ÿ˜€ When I’ve gotten far enough with it, I’ll make the V14 blog. ๐Ÿ™‚

I think that’s all for now… apart from the Shoot ‘Em Up Kit being one of the worst game development tools I’ve ever used – on par with Torque and The 3D Game Maker. ๐Ÿ˜› Anyhoo, back to work tomorrow, and weย should have our first games on the Android Market and Apple App Store this week – woot! ๐Ÿ˜€

See ya later. ๐Ÿ™‚

Advertisements

1 thought on “So, it’s official…

  1. Pingback: IT BEGINS. | Ultimate Lame Ship Game V14

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s