Writing tetris - part 2

May 18th, 2008

Every game goes better during development…
So does mine :)

tetris - better

Notice, that a game can display MP3 tag which is currently playing - simple feature but looks nice.

Writing tetris - part 1

May 17th, 2008

Some time ago, I started writing simple casual game - tetris :) Idea of a game is nearly the same age as me, but I decided to create a 3D variation of it.
At the begining every game look like a crap, so does mine.

tetris - crap

Disaster :D

My workshop and some technical info:

  • Operating system - Linux, it also smoothly works on Windows :)
  • Programming language: C++
  • Libraries used: OpenGL, nVidia Cg, boost, SDL, GLee, FreeType, FmodEx, id3lib
  • IDE: Eclipse CDT and Vim
  • Other tools: Blender, GIMP

More pseudo-registers

April 30th, 2008

There is another pseudo-register useful when working with C# language:

$exception

It contains last exception that is thrown by an application.
Suppose that we have code like this:

C#:
try
{
    // something
}
catch
{
    // do something else
}

with $exception pseudo-register you can easily examine it:

exception

Pseudo-registers in VS debugger

April 12th, 2008

I found a very interesting feature of Visual Studio's debugger. It's been there for a long time but many developers do not know (including me) that pseudo-registers can be helpful.
There are more registers but I will mention just two of them.

@ERR

Well, it returns the same as GetLastError(), It optionally can return formatted string - just write it like @err,hr
I think I don't need to add more, screens below are self-explanatory

Code
Watch window

$user

Provides many informations about a user executing current process

Watch window - user

Happy debugging.

Did you know - C#

April 12th, 2008

Did you know where the C# name come from? I didn't :D
According to wikipedia: "The name "C sharp" was inspired from musical notation where a sharp indicates that the written note should be made a half-step higher in pitch".

Stupid :D

Designed by SirMike © All rights reserved

Valid XHTML 1.0! Valid CSS!