I'm VERY impressed by this video. XNA makes me smile :)
Previous Entry
XNA Blog Day 0
Next Entry
Steve Irwin RIP
Comments
Driv3MeFar
That is pure awsome.
September 01, 2006 05:17 PM
Looks pretty sweet. I think it is a great idea to share these components. Finally, maybe we can all write some games.
My only question is, being a .NET noob, what was his constant referal to "this" when he was writing the code?
In his last example, just jumped into the menu code and wrote something like "this.terrain" or something to that effect -- well, what is "this"? If he is in the menu code, it doesn't make much sense that the menu owns the terrain. I am rather confused.
My only question is, being a .NET noob, what was his constant referal to "this" when he was writing the code?
In his last example, just jumped into the menu code and wrote something like "this.terrain" or something to that effect -- well, what is "this"? If he is in the menu code, it doesn't make much sense that the menu owns the terrain. I am rather confused.
September 01, 2006 05:33 PM
Quote:Original post by visage
In his last example, just jumped into the menu code and wrote something like "this.terrain" or something to that effect -- well, what is "this"? If he is in the menu code, it doesn't make much sense that the menu owns the terrain. I am rather confused.
wasn't it this.game, which makes perfect sense as 'this' object has a reference to a 'game' object which gives us access to everything else.
And yes, this is a bag of assumeness, thus my plans to use XNA to write a game in the up and coming week [smile]
September 01, 2006 05:46 PM
Holy shit, now I see the big deal about the XNA.
ITS BLOODY DRAG AND DROP MMORPGS PEOPLE!!!!!!
ITS BLOODY DRAG AND DROP MMORPGS PEOPLE!!!!!!
September 01, 2006 06:24 PM
this in C# is just a self reference to the class. ie
Haven't watched the video yet though...
class Foo
{
int a = 3;
public Foo()
{
this.a = 5;
}
}
Haven't watched the video yet though...
September 01, 2006 07:15 PM
Krisc, I understand that. It is almost the same in any object oriented language (C++/Java ... Ruby uses 'self', that rebel). Just the way he was using "this" didn't make sense to me for what it was referring to. It was making it looking like a big, coupled mess.
I think I just mid-read what he typed, though
I think I just mid-read what he typed, though
September 02, 2006 09:49 AM
I played with it yesterday and today, and I must say... WOW, it is AWESOME. Ugh, now back to work in C++ land, while I count the days 'til we can use XNA in our projects.
September 02, 2006 02:05 PM
Advertisement
Latest Entries
Old Code
4229 views
Chamois - Fluent Assertion Syntax for C++
5663 views
On C++ Naming Conventions
12671 views
First version of FlatBuffers in .NET
3774 views
FlatBuffers in .NET
10863 views
Porting Accidental Noise Library to .NET
5462 views
Cloudy Requests
1881 views
Advertisement