31. December 2009 by Mads

I’m playing around with the Farseer Physics Engine these days and needed to draw the “collision boundaries”. These are called Geom (Geometries) in Farseer language and these are made up by Vertices.
Cameron Albert have already made code to do this and I have already used it in my Farseer Physics Simple Samples so that were an easy one.

Then I ran into some problems/confusion with the “position” of elements. Basically it was due to that Farseer’s position is at the center of an element, whereas Silverlight’s version of position is at the top left corner. This is actually not that confusing as it is written here, but it can quickly become pretty confusing, at least I think :)

More...

17. December 2009 by Mads

The 16. Dec. 2009 I did a talk about game development in Silverlight 3 in Copenhagen, Denmark. Thanks to all the people showing up, hope you had some good hours too :)

One thing that I found especially cool were that one of the attendees was a 10-12 year old boy (he brought his dad of course :) ). He already did a game in Game Maker he told me, very cool!
To the dad of this boy: I told you about some “kids programming language” that I couldn’t remember the name of. I goggled it this morning and found it: http://phrogram.com/kpl.aspx it might be a good start into the world of programming.
The other thing I told you about were GarageGames, take a look at this it comes with a WYSIWYG-like IDE, but it also have it’s own scripting language (similar to javascript) that you can code in. For more info take a look at it here: http://www.torquepowered.com/products/torque-2d

Slides and demos
I have put up the 4 demos, 1 Physics Helper demo for Blend and the powerpoint file, all in a zip file which can be downloaded from here: http://laumania.net/downloads/GameDevelopmentInSilverlight.zip

For the ones who are interested here is the list of, more or less game related, blogs/persons I read/follow.

Again I would like to thank people who came and hope you found my talk interesting and learned something.

- Enjoy and marry xmas :)

21. July 2009 by Mads

The samples have been upgraded to Silverlight 3.0, which means that the source code is now targeted at the Silverlight 3.0 Tools for VS2008. Besides that the Farseer Physics Engine code have been upgraded to version 2.1.1.

Go and get the new release from Codeplex.com

image

- Enjoy!

31. December 2008 by Mads

I just upgraded the samples to run with the Farseer Physics Engine 2.0.1. I also removed the Demo6, which were empty at the moment and added some text different places.

Get the lastest release from CodePlex.com

I plan/hope to be able to make more samples which will get a little more advanced, still simple-advanced, but I will add a little more complexity to it. I will do it in the same way as up til now by having completely seperated projects that can run on them own. Well, this is the plan, let's see how it turns out.

23. August 2008 by Mads

I have just published a 2. release of the Farseer simple samples / tutorial(s) on codeplex.

Check it out here

The new release includes the following:

Demo1
Basic application with a falling yellow box.

Demo2
Controlling the box with the keyboard. This includes the KeyHandler.cs from the original Farseer Physics Engine.

Demo3
This demo introduce Geometry and Vertices, which are used to keep track of collision between the two yellow boxes in this demo. The boxes have different mass.

Demo4
This demo adds a little more complexity as we here use an interface called IUpdateable. This is done as we now have two different types of classes that need to be updated at the gameloop. We both have the PhysicsBox from all the other demoes and a new FixedLinearSpringBrush, which is used to draw a line. In this demo you can click one of the boxes and drag it by moving the mouse and holding down the left mouse button.

Enjoy