|
My son would like to get into game programming. Are there any good C# game programming references that anyone can recommend? Thanks.
|
|
|
|
|
The thing to start with is XNA[^]. It's a dedicated gaming framework from MS. It's entirely .net based (no need to get dirty with directx), and there is a Visual Studio "XNA game studio" express edition available for free.
Check out the creators club[^] for guides and competitions and stuff. There's a bunch of getting started guides, tutorials and sample code under the "education" tab.
Simon
|
|
|
|
|
I suggest starting out with something like Gamemaker. That way you get an idea of how the logic flows and how things can be set up, before actually having to write the code yourself.
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Hi there
How can I draw and image with a transparency and an alpha bending ?
many thx
|
|
|
|
|
It's done the same as any other image. Since you're asking this question, I take it your not getting the results you were hoping for?? You might want to explain what you're ultimately trying to do with this.
|
|
|
|
|
Before asking such question you could have searched the web. The first link I got from Google itself will answer you.
DrawTransparentImageUsingAB[^]
*jaans
|
|
|
|
|
I am working on an SDK. Obviously I am very happy with the ability to create documentation from code comments. This is useful for both Intellisense and Documentation. We are using Sandcastle to produce the chm file. Sandcastle allows me to filter out internal and private elements. Unfortunately they are in the XML generated by csc.exe which means they show up in Intellisense. I don't see anyway to filter the output of csc. Can I use Sandcastle to filter the docs? How do other people do this?
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
Don't write any.
Your classes should be small enough that you don't need to anyway. Just use regular comments.
|
|
|
|
|
Are you suggesting that I do not put comments on internal/private methods? I appreciate that methods should be apparent and "self documenting", but this is no help unless you are reading the code. I find the answer that I should just read the code (instead of relying on documentation) is not very practical.
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
That's why I added, "Just use regular comments."
|
|
|
|
|
I guess I did not make myself clear. We have "internal" developers and "external" developers. That is to say we have a team that is working on the SDK and then there are the SDK customers. I want Intelliscense and popup help for the internal developers, but not for external ones. So is there a way I can remove the comments for internal and private, that I can use for one configuration of the solution "retail" and leave in for other configurations ("debug" and "release").
BTW, at this point I assume the answer is no.
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
You could write your own tool that would skip the internal and private ones.
Oh, wait, intellisence won't show documentation for the parts they can't see anyway.
I thought you were asking about the generated XML file.
|
|
|
|
|
I was. Doesn't intelliscense use the XML?
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
Not the (optional) XML file generated during a build.
I wonder whether or not conditional compilation would help:
# if InternaldBuild
<summary>... </summary>
# endif
internal void F () ...
|
|
|
|
|
Hi,
I have a custom class which inherits from IComparable & it contains properties pertaining to Sales Orders.
I have added code to sort this SalesOrders class by the 'SalesOrderDueDate' as so:-
public int CompareTo(SalesAllocationOrderDetail other)
{
return SalesOrderDueDate.CompareTo(other.SalesOrderDueDate);
}
But I am struggling to find a good example on the web of how to do this sort on another date field as well.
Basically I need to sort this class <list> based on oldest SalesOrderDueDate & then OldestTransactionDueDate - in the same mannor as Excel would do this sort based on 2 columns!
If anyone can help me I would most appreciate it.
Thanks
Janet.
Lady Programmers are a rare breed!
|
|
|
|
|
something like this?
public int CompareTo(SalesAllocationOrderDetail other)
{
int result = SalesOrderDueDate.CompareTo(other.SalesOrderDueDate);
if (result == 0)
{
return OldestTransactionDueDate.CompareTo(other.OldestTransactionDueDate);
}
else
{
return result;
}
}
|
|
|
|
|
Thanks for your quick reply - although it didn't give me the expected results, it got the old grey matter working on a Fri afternoon & my solution below now works as I want it to:-
public static Comparison<SalesAllocationOrderDetail> ByCompleteDateSort =
delegate (SalesAllocationOrderDetail s1, SalesAllocationOrderDetail s2)
{
int returnValue = -1;
if (s1.SalesOrderDueDate < s2.SalesOrderDueDate)
{
returnValue = 0;
}
else if (s1.SalesOrderDueDate == s2.SalesOrderDueDate)
{
returnValue = s1.OldestTransOnOrder.CompareTo(s2.OldestTransOnOrder);
}
return returnValue;
};
So, thanks anyway
Lady Programmers are a rare breed!
|
|
|
|
|
Cross-thread operation not valid: Control 'richtextbox1' accessed from a thread other than the thread it was created on.Give solution to this problem...
|
|
|
|
|
|
smraj1503 wrote: Give solution to this problem...
How very rude!
|
|
|
|
|
At least he didn't say that it's urgent and is not demanding to send code to his e-mail address.
|
|
|
|
|
"Its Urgent" can easily be ignored. But "Give me solution" sounds like a demand to me.
|
|
|
|
|
Hi,I am Sayem.I am Working on C#.net Microsoft Visual studio 2005. I have created some project.Now I want to incorporate them in a single project so that i can assign permission on various control based on user privileges.So I need to know programmitecally how much and what form contains in each project , How much and what control have there and their properties. How can I get all this information ? Have you any answer? Then please send me "sayem.ahm@gmail.com".
Note: I don't want to read from ...Design.cs file. I want to know have any method/ class that can give answer about all control of own project?
|
|
|
|
|
It seems like you are going to want to use Reflection. You'll need to refer to each of the project assemblies and then query or manipulate them via Reflection. Note, that if you want to interact with a Form's controls with Reflection you'll need to raise the access level of them via their Modifiers property first. Sorry, if this isn't what you wanted; I don't think the description is very clear of what you are trying to do.
Keep It Simple Stupid! (KISS)
|
|
|
|
|
This is a very bad and very impractical idea. If you need security like this, each form needs to check the users role and modify itself. This should NOT be done from a central piece of code that goes spelunking around changing all the forms. What you want to do violates OOP encapsulation coding practices.
And the only people who give a damn about your email address are spammers. In a forum environment, ALL communication stays in the forums, not in emails. That way, the entire community can participate and benefit from the answers.
|
|
|
|