Thursday, May 28, 2009

Creating games in C# with out XNA

Hi everybody,

Well, I'm going to use the blog to create games in C# but not using XNA. For now I'm going to stick to 2D games using GDI+ but eventually I'm hoping to make the move to 3D games using DirectX. Keep on coming back and I should have some tutorials on creating games in C#.

-----------------------------
Proud member of Dream.In.Code

Sunday, May 10, 2009

The next turorial is almost ready..

I've been working on the tutorial and it is almost ready. It should be ready between 9:00pm and 10:00pm EST on May 10, 2009.

-----------------------------
Proud member of Dream.In.Code

Saturday, May 9, 2009

Cold, damp and miserable here...

Hi there.

Well, it is a cold miserable day here. I'm not talking about winter conditions below freezing but just temperatures below room temperature. Any way I've been working on the tutorial I promised. I had a business meeting yesterday that took a lot of time. I also have three other projects on the go so alotting time to each project can be a little difficult. There are also everyday things that need to be done.

Well, please keep coming back I'm going to try and have new content everyday.

-----------------------------
Proud member of Dream.In.Code

Thursday, May 7, 2009

About classes

As I mentioned earlier, object-oriented programming is all about objects. To make objects you create classes. You can think of classes as a factory for building objects. Inside a class you have the attributes and methods of the class. Attributes and methods have a number of access modifiers. This defines encapsulation. That is a big word that means data and methods belong inside the class.

Two examples of access modifiers are private and public. Private means that only methods and attributes inside the class can use it. If you have a variable that is defined private such as:

private int value;

Only items in a class can access that variable. The same is true for methods:

private void method()
{
}


That method can only be called inside the class. Public on the other hand means that the variable can be modified outside of the object. If you remember the Hello, World! program you used Console.WriteLine("Hello, World!"); the reason you were able to is that WriteLine is public.

I just wanted to say that before I post the next tutorial. It will make things a little easier. Just one more thing to say, be default when you make a variable or a method inside a class it is considered private. Hopefully, I will have the tutorial I was talking about ready and on my website. Hope you have a wonderful Thursday!

-----------------------------
Proud member of Dream.In.Code

Tuesday, May 5, 2009

What is going on...

I'm not sure if I've said this here but Tuesdays and Wednesdays are very busy for me so I haven't really had that much time to do the things I wanted to do today and I won't have all that much time tomorrow. I'll make sure that there is something good for Thursday evening though and I will try and have somthing tomorrow night too.

Cheers!

-----------------------------
Proud member of Dream.In.Code

Saturday, May 2, 2009

Tutorial will be posted tomorrow...

Hi again,

Sorry but I didn't finish writing the tutorial. The program is finished but the actual tutorial is taking a little longer.

-----------------------------
Proud member of Dream.In.Code

Your next tutorial

Hi again!

Well, I'm hoping tol have the next tutorial up on my website this evening, say 9:00pm EST. It will be an introduction to classes. I'm going to make a purse and coin class. The purse class will hold a number of coins. It is a little advanced but it will introduce a lot of the basic concepts of a C# program. It will be in console mode but I will eventually update it to a Windows form project.

-----------------------------
Proud member of Dream.In.Code