Thar Be Jewels! part 2
Posted by z3rb in Project, tags: c++, Code, csharp, jewels, ProjectFinished porting what I had done so far for Thar Be Jewels from C++ to C#. It wasn’t as much work as I had expected, however I was forced to redesign the structure of the program into a more workable object-oriented one, which is good. I hope to keep to a standard of “Try not to write hacky shit code”. It’s been working so far.
So that took a couple of hours which included learning more about XNA and C# in general.
I also added a thing since I was bored that creates coins that fly drop from where you click. Eventually, this will be used for when you create a row of 3 gems, coins will drop from where the gems were. A purely visual thing, but it adds to the polish of the game so it’s relatively worthwhile. It works by creating a 2d vector for the position, and another for the velocity of the coin. Gravity is then added to the velocity.Y each tick. It works pretty well and looks relatively cool. Video:

Entries (RSS)