Cross Language Game Tutorial

Hi everybody,

Today I started a new tutorial website to teach basics of game programming in three languages at ones.

Here’s the site.


http://crosslanguagegametutorial.weebly.com/uploads/2/7/9/6/2796142/1367054015.png

The languages are Java, C# and VB .Net

I’ll be adding more and I need feedback.

Thanks.

Means you’re ready to get rain of feedback/comments/critique from 3 regions at once ;D

I just need ways on how I can improve the content.

Nice site!

Wouldn’t frame skipping produce stutter in games when your framerate is lower than intended?

I like the site design , and +1 for using code prettify.

OT: are you from India?

No, it’s speed enough in my experience. The main flaw is if on a slower system, the game loop keeps playing catch-up and it’ll be always end up in playing catch up without any rendering. I am just skipping 5 frames even in my engine and my demo space invaders game gets almost 38 fps on my crappy old laptop with 512 MB of ram and running XP SP 1 with an integrated intel card of 24 MB of video memory. It is faster and getting 140 fps on my pc.

@ReBirth

Yes. I’m from Andhra Pradesh. Where are you from?

You can figure it in way I figured out yours by name ;D

Hendra G. TamilNadu ?

Nope. In truth it’s even different country.

It will be really great if the number of languages variant could increase. (unfortunately I only know Java well and little of JS) Tip for getting feedback: reddit.

I only quickly glanced (not even a skim) but one thing jumped out at me:


public static long getCurrentTime() { return (System.nanoTime()/1000000); }

Two major problems. First the counter position is undefined. So it would be perfectly legal for straight after a cold boot of the OS and running your program for nanoTime to be return negative values. So you really want to be subtracting from some reference time-stamp. This has the added advantage that you can simply modify this reference time stamp to handle pauses. The much bigger problem is the division. You’re throwing away important information in favor of the unimportant. The accuracy of any digital timer is +/-1 of its resolution and when you subtraction two to get a delta time, the errors compound to +/-2. Plus or minus 2 ms is long time. (Likewise you never want to accumulate deltas as they forever compound). My suggesting to to forget the divide.


public static long getCurrentTime() { return (System.nanoTime() - refTimeStamp); }

Found out from Google+. ReBirth, you are from Indonesia.

Found out from Google+. ReBirth, you are from Indonesia.

No matter what you do it is hard to hold your information from leaking on internet :smiley:

No matter what you do it is hard to hold your information from leaking on internet :smiley: