- Viewing Profile: Reputation: Flimflam
Community Stats
- Group Members
- Active Posts 652
- Profile Views 2,549
- Member Title Member
- Age 26 years old
- Birthday July 22, 1986
-
Gender
Male
-
Location
San Diego, CA
User Tools
Latest Visitors
#5010765 NULL vs 0
Posted by Flimflam
on 14 December 2012 - 04:40 PM
Was it because people were creating their own functionality for it via macros or what have you?
#4970013 Anyone want to help me choose a framework for some tools I want to write [Win...
Posted by Flimflam
on 15 August 2012 - 07:17 PM
Hmmmm, this sounds promising. So how does this work? I write a C++\CLI wrapper library that links to the native C++ library, and then write a C# WinForms app that references the C++\CLI wrapper?
Yes, this is essentially what you do.
#4969446 Which DirectX version to learn
Posted by Flimflam
on 14 August 2012 - 07:10 AM
If you're targeting D3D11 alone, that isn't even an issue, as Windows XP can't use D3D11, and if you did want to target XP with D3D9, nothing is stopping you from using an earlier version of Visual Studio.
#4969349 Which DirectX version to learn
Posted by Flimflam
on 14 August 2012 - 01:43 AM
XP is losing ground every time a new survey is done by Valve. It's getting more and more appealing to drop D3D9 in favor of 11.
#4969348 Create xna resource files at runtime?
Posted by Flimflam
on 14 August 2012 - 01:33 AM
1) You can load images into textures using Texture2D.FromStream(). It only loads jpegs, pngs, and bitmaps if I recall correctly. Any other format you will need to load yourself and manually set into a texture.
2) The other option is to include the XNA framework with your level editor, so you can invoke the content pipeline at runtime. This option is laughable, really, because it would require your end users install the xna framework, c# express (can't install xna without this), and the full .net 4.0 framework (ditto). In total, that's a few gigabytes of data which is relatively unrealistic to expect of your users and one of the main criticisms I ultimately have with XNA. Sounds, Sprite Fonts, Meshes, etc all would require this option to compile into xnb files at runtime as the Content Pipeline is not included in the standard runtime.
I never looked into it but there may be third party file converters out there that you may be able to utilize.
#4968865 OpenGL 1.1.0 for some users
Posted by Flimflam
on 12 August 2012 - 04:25 PM
However, adding DirectX very much rubs me the wrong way. The problem with OpenGL is that it is not used enough, so switching away from it makes the situation worse for OpenGL...
If you already have a code path to support this, you should probably support it. I doubt any of the users who are currently unable to play due to this bug care about the status quo of OpenGL; they just want to play the game they paid for. You'll burn a lot of consumer good will if you simply tell these people the problem is ultimately unfixable over politics (preferring to keep it 100% OpenGL on PC.)
#4851671 To goto or not to goto?
Posted by Flimflam
on 20 August 2011 - 11:47 AM
I love how this gets people's panties in a twist. And I love how people point out all these examples of very good programmers who've used the construct in very specific circumstances as proof that it's good, but completely ignore all of the catastrophic examples that lead to Go To Statement Considered Harmful.
I've said it before, and I'll say it again: There is absolutely no viable use case for goto in my working environment (C# 4).
I completely agree with you about there being a distinct lack of use for goto in C# but I think the reason everyone has reacted so negatively is that your first comment makes no mention of C#, where a plethora of other methods are available. It just sounded rather flamebaitish.
#4842031 Pausing the game in multiplayer
Posted by Flimflam
on 29 July 2011 - 02:05 AM
1) Allow the player to pause the game, but limit the pause duration for 1 or so minutes per game. Allow the player to signify in the pause screen that they will forfeit if they don't return in time.
2) Allow the player to prompt the opponent(s) with a request for pause. If the opponent(s) do not agree then the person requesting a pause should have the option to forfeit or resume playing.
I think the second option is more polite and well rounded, personally. Sometimes people have to get up and forbidding such a necessity is really just cruel as there is a number of reasons why they may not be able to wait. It's better to just wash your hands of it and leave the choice in the hands of the players rather than yourself.
#4833985 DirectX DLL Hell...
Posted by Flimflam
on 11 July 2011 - 02:54 PM
#4830787 XNA Content pipeline caching?
Posted by Flimflam
on 03 July 2011 - 10:43 PM
Do not call Dispose on anything loaded through the content pipeline: it's not your responsibility. Instead, dispose the content manager in question and it will properly unload the resources.
When it comes to a point where you want to be able to unload individual resources, start using multiple content managers. Then when you want to unload resources, dispose of the specific content manager and it will properly dispose of its contents.
#4821207 Updating and Drawing at Different Framerates (CPU Issues)
Posted by Flimflam
on 08 June 2011 - 11:32 PM
#4810954 VS2010 loading random libraries
Posted by Flimflam
on 14 May 2011 - 10:25 PM
#4810443 SpriteBatch BlendMode
Posted by Flimflam
on 13 May 2011 - 04:08 PM
You should consider batching your sprites depending on their needs, instead of forcing everything into a single batch. Certainly batch them together as much as possible, but don't be afraid to start new batches when they need different things.
#4803687 Requirements for XNA games on other systems.
Posted by Flimflam
on 27 April 2011 - 01:41 PM
Ohhh! God.. How does one code multiplayer games with XNA?
Lidgren is a good managed library for doing networking. http://code.google.com/p/lidgren-network-gen3/
#4803637 Requirements for XNA games on other systems.
Posted by Flimflam
on 27 April 2011 - 12:00 PM
- Home
- » Viewing Profile: Reputation: Flimflam

Find content