Tuesday, 14 April 2009
Progress so far...
The platformer starter kit is great OO-wise, but it has an issue in regards to movement on the X-axis. When you reach a certain speed freshold (movement along the x-axis per refesh), the animation becomes jerky. This is bad enough in itself, but when you add X and Y scrolling, the effect is increasingly pronounced as the entire screen can suffer the same jerking motion.
From what I have disovered, it seems that the faster the char is moved along, the velocity is also applied to the Y axis, so the character makes increasingly deeper movements into the xaxis of tiles on the floor. This means the collision detection kicks in and either reduces the characters velocity, stops the character, or bumps them out of the tile to the left. I've not yet found a satisfactory solution to this problem.
I've included paralax scrolling to the Y-Axis - although I am currently tweaking this as it seems a bit performance heavy right now.
I've also included a very interesting game play style - I'm not going to say more on this just yet (in fear of it being stolen!) but once the code base is complete, I'll record some videos to show it off.
My next objective is to include projectiles and I have made a start on slopes - which for now i'll keep to 45 degrees.
Wednesday, 8 April 2009
XNA Platformer - day 2
I've been doing a lot of reading around the subject and studying the platform starter kit code that comes with XNA.
I've created a basic tile based platform engine with horizontal and vertical scrolling.
I've also adapted the platform starter kit physics and collision functions. It's going great so far, but I have come across one slight problem. When jumping, sometimes when contacting back with the ground, the collision detection moves the sprite 1 tile to the right. This can create a jarring to the overall smooth level scrolling.
I'm currently debugging this, and then i'll round out the main character.
I'm using a spritesheet I found online as a temporary player graphic. I'm trying to get a smooth feel to it's motion, and have basics such as running, jumping, skidding, acceleration, crouching etc.
Wednesday, 1 April 2009
XNA
I started off with desktop apps (C#) and have been building ASP.NET sites for the past 2 years. Front and backend, although unusually, my employer has me using MySQL, so I have to write a lot of custom code to link things up.
I've recently redicovered XNA and have decided to create a game.
This blog will detail my journey through the minefields of first-game-creation.
Whilst I'm reading up on XNA and creating a few test apps, I've been looking into the best way of creating tilesets.
A fantastic application I've found is called Tile Studio. This aplication has a very nice tile editor with advanced features allowing your to darken, lighten areas of tile using pencil, paint brush etc This allows very fast turnover of nice looking tiles.
Further searching found someone who has created a custom class to import Tile Studio (TS) map files into an XNA project. Rather than go this route, I've exported the TS tiles as a sprite sheet and imported it into another application called Mappy.
The reason for doing this is that mappy can easily produce tile maps, and has a nice feature to export the map as a text file (an array definition). I can then use the tile spirte sheet, and the text definition to write some form of tile handler class once the project gets going properly.