Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

1502 Excellent

1 Follower

Personal Information

  • Role
  • Interests

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Yes, C# is by many considered an easier language for beginners. But in my opinion you should make sure you understand the basic concepts of programming before jumping into XNA, otherwise it might be hard to grasp the XNA tutorials. Unfortunately I don't know any good C# tutorials, but a google search should bring up a dozen at least When you feel ready to jump into XNA I recommend this site: http://www.riemers.net/  (and don't listen if anyone posts an "XNA is dead" comment, although it's no longer supported by Microsoft, it's still a great learning tool and can still be used to make games)
  2. Mizu

    Moving file doesn't work

    Just guessing here, but afaik if you start the project in Debug mode through Visual Studio, then relative file paths is relative to where the vc project file resides... I may be wrong though, was some time since I wrote c++ code.. Anyway, maybe that is the problem?
  3. Mizu

    Are you making money writing games?

    I told them that I only code for hugs, but they insisted on giving me money... 
  4. Mizu

    Target bounce away from wall

    That's right. Vector2 are also a struct, so the solution is the same as those a suggested in my previous post
  5. Mizu

    Target bounce away from wall

    If target.Velocity is a C# Property then you won't be able to modify its members, since a Point in C# is of the struct data type. What this means is that target.velocity returns a temporary copy of your data, so modifying that has little meaning. The solution is to either just make velocity public, without any get:ers and set:ers, or create a method that allow you to set velocity, like so   public void SetVelocity(int velX, int velY) { velocity.X = velX; velocity.Y = velY; }   Why are you using Points by the way? I would suggest using Vector2 for things like speed and velocity. It's better suited for that kind of stuff     Hope that helps 
  6. I have this issue too, and it's very annoying. Using latest version of Chrome (23.0.1271.95 m ...apperently) and Windows 7. So nothing out of the ordinary. It doesn't even happen all the time though. Sometimes I can write a whole post without it happening, and sometimes it happens frequently...
  7. C#, Java or Python. Do not go any deeper than that in the beginning. Both C and C++ has quirks that's too easy to run into, and both of those languages has a tendency to spit out cryptic error messages that might as well be some evil summoning spell for all a beginner knows. Start out with an easy langauge to learn the basic concepts of programming, then if you realize that you'd rather sit and make your own lists and memory managers and what-not instead of making games, then you can try out C or C++ Don't be afraid to switch programming language. It's something most programmers do alot ,and as others already have said: it's easy to make the transition once you have learned the basic concepts of programming. Last week, at my work, I had to switch between C#, C++ and lua....
  8. Mizu

    Does anyone else struggle with problem solving?

    ^ This When I was a beginner I did this too. I constantly looked at others code and thought "But this guy does it this way, isn't that a better solution..?" Well, maybe it is a better solution, but it's not your solution. As I realized that, I also realized how ugly my own code was, but it didn't matter, as long as I was the one who came up with the solution. The ugliness of the code goes away with practice. I'm not saying you shouldn't look at other peoples code, only that it's bad for your problem solving skills to do so.
  9. Mizu

    So I've learned C...

    I won't start an argument here, since that'd probably turn into the usual my-language-is-better-than-yours, but I just want people to know there are some things in this text that is quite arguable... [size=2](however, I'm not saying C is a bad language) As for the OP: I agree with those that suggest you learn an OO language, like java or C# as those languages are kinda the 'opposite end' of C. Knowing OO is a good skill to have as a programmer in general, and it might prove interesting for someone who has programmed in a language were you have full control of everything, to try a language were you have very little control.
  10. That's... brilliant. Why have I never seen this before Naah, the easiest way should be to load the whole chunk at once. Just make sure you don't use too large chunks and load them in the background to not freeze the game, then it should be fine Streaming sometimes has a tendency to become a bit complicated if you're not careful though, so if you're just starting out you might want to keep it simple and, if possible, use areas instead, showing a loading screen as the player walks from one area to the next. Good luck!
  11. I do not have an answer to all your questions, but I can say this: From my experience, serialization is quite terrible when it comes to file size. This is due to the fact that most data you serialize will need some header information so that it can be properly deserialized later. If you are concerned about file size, I would suggest that you write your own Serialize and Deserialize method for the tile class and simply use a BinaryReader/Writer to read/write the data you care about. Seems odd to run out of memory on 305Mb... Something's wrong with the De/Serialization, but it's hard to tell what that may be. I usually get those types of crashes when I expect to read an array but read something else instead... but the serializer should make sure that doesn't happen (right..? ) Chunks is indeed the way to go for such a large world, and having them in many small files should not be a problem at all. Then you can begin to stream new chunks directly from the files as the player gets close to them. As for that last question: Properties makes no significant difference to the size of the class, so use them as much as you want.
  12. Mizu

    C# List<T>.Find

    Now, someone with more knowledge of building xna projects for xbox could probably correct me here, but I noticed the Xenon project uses .NET v2.0. So while the xna assemblies are version 4, the rest of the .net assemblies are version 2.0, and in that version, the List<> doesn't have a the Find() function. That's Probably because the xbox 360 doesn't support anything higher than that version. So if you want the game to work on xbox, you will have to write the game using stuff that exists in .net 2.0 and below only. Someone please correct me if I'm wrong As a side note: it is interesting that linq works there, since it was introduced in .net 3.5 iirc, but looking at the assembly version says its also 2.0... and reading up a bit it seems like xbox supports it.
  13. Mizu

    C# List<T>.Find

    Oops, sorry.. didn't know you had to have premium membership to do that Anyway... Here's a random wild guess: what happens if you write it like this: [source lang="csharp"]Predicate<EngineObject> pred = i => i.ID == objectId; EngineObject obj = objectList.Find( pred );[/source] Is the errors still with the Find() function, or is it with the predicate? This surely is weird.. My last advice is to create a new project, isolate your ObjectManager and EngineObject, copy those to the new project and try compiling. If it works, add stuff until it stops working. If it still doesn't work it should be small enough to post the code in code tags here.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!