Category Archives: Game

DevLog Game

DevLog – playing with Xamarin and MonoGame

Welcome to DevLog – a brief note on what I am currently doing.

-

Xamarin is awesome. There is simply no other way to put it. The integration with Visual Studio is seamless and developing, building and deploying an Android app is just as easy as doing the same with Windows Phone or Windows Store app. Using MonoGame, I quickly developed game for WinRT, Windows, Windows Phone and Android! Wow, and almost without any platform specific code (besides mouse handling for normal Windows).

Homer will have to go, sadly, but that's the way it is

Homer will have to go, sadly, but that’s the way it is

However, project structure really got out of control as you can see from the picture below :/
Explosion of projects

While each platform having its own project is not so bad, having library projects specific for each platform becomes a nuisance since you have to keep all of them in “sync”. It is too bad that you cannot create a simple “loader” project for each platform and have just one PCL project for all platforms. You could then easily keep all projects in sync. Adding new files to one platform requires you to manually update the remaining platforms.

Simon Jackson keeps a fork of MonoGame that enables you to use PCL, you can get it here: https://github.com/DDReaper/MonoGame/. I am yet to try to refactor my code to support his PCL fork.

Another pain point is content creation. If only you could somehow have a single content project that is shared (or at least correctly referenced) for each platform. Manually updating each project is cumbersome and prone to errors. If only there was some nice way to deal with it…

That is it for today, my daily exploits will continue in another post :P

Game Windows Phone

Creating a simple particle effect with XNA for WP7

Creating a particle effect is just too much fun without sharing it. The objective was to create a simple spark-like particle effect. We will render each spark as a small line that gets transparent with time. Some basic physics will be involved, but I will keep it simple. The final result is seen on the image below. You can download the source code here: wp7.particles (SkyDrive, 26 kB). Please note that the default orientation for this sample is landscape.


read more »

Game Tool

Sprite Sheet Packer

Sprite Sheet Packer (at codeplex.com) is an excellent little utility for packing all sprites in a single large texture. It is very simple to use, simply add all the files that need to be packed and select destination file path and type. Transparency will be preserved for PNG images. For preventing issues when using mipmaps, you can add the padding around each image. read more »