hammerstein_02

Members
  • Content count

    359
  • Joined

  • Last visited

Community Reputation

134 Neutral

About hammerstein_02

  • Rank
    Member
  1. The Beginning

    Yes, you can write C# in Notepad++ but probably easier to go to Microsoft and look for Visual C# Express. It's free and fully functional for what you want to do. The .NET framework family (C#, VB.NET et al) can be used to create games but actual game development is mainly done using C++. There should be an express edition of C++ available from MS as well. Do stay away from VB6 though.
  2. style

    There are some standards that programmers stick too, but there is no set way. Getting into some of the more accepted methods may allow you to adapt to others programming style more easily, but it's not enforced. You can name things the way you like, however if you want others to read your code, readability helps. I would personally not name methods do_some_function. I've seen this method used in tests, but not in actual production code. More likely DoSomeFunction. One thing I like is naming methods (even if they're long) appropriately enough to describe the purpose, i.e DoSomething means nothing to me, EventUpdate might make more sense. When you get into a company, they will have their own standards to adhere to, so there is no way you can learn everything you need in general, but it helps to read other peoples ideas of what makes good code and take certain things from it.
  3. Game Design Basics

    A few years ago, I tried to get into games programming, but failed. I fell short on some of the techniques and my understanding of my languages and object orientation was flawed at best. I've been working in C# for the past few years, and due to circumstance I am unable to work at the moment, and figured it would be a good idea to get back to this site and try learning some more. I've been reading the last few days, trying to follow tutorials, trying to figure out how everyone else goes at this and just can't quite grasp it. So I figure now is the time to ask my questions in the hope that I don't immediately get pointed to Google or the search function. 1) Game States - I can see several 'tutorials' on Game States, and I understand that the idea is that each part of the game is represented by a state, and the states transition between one another. What I can't seem to grasp is; a) Do I basically create a loop in each state, manage drawing to the screen, catching input etc. b) What (in your opinion) is the best way to manage states and transition between states. 2) Object interaction / update / events - This might be an unnecessary sticking point, but how do I communicate between objects, are there any design documents around giving me an idea of how to structure a game? I don't have any grand game plans, I'm not thinking, "oo.. I'll write the next SimCity", I'm going to start with Console and move my way up through a gfx api. Like I say, I have searched Google for GameState tutorials etc, I've looked for design documents. I just think I need to ask my questions to understand for me. I've read the stuff I've found, and I've tried to find simple game source to look at, but didn't find anything I followed. Any help appreciated
  4. Would you play this game?

    I do like the idea of an involved simulation, but as for what I would be willing to pay, that all depends on whether that simulation is enjoyable and addictive. Have you got something together? Something to show? Or is this just an idea?
  5. Problem with my array

    Quote:Original post by jouley Quote:Original post by hammerstein_02 NameArray[i] will never contain quit, you increment the counter before you check, and you never put the value into the name array unless it's not quit, which means you'll always put the value into the array... *** Source Snippet Removed *** Should be; while (nameArray[i] != "quit") This approach suffers from a similar problem -- since "quit" will never make its way into the array, it'll never leave this loop. The while loop should be checking for nameInput to be "quit". *** Source Snippet Removed *** Haha.. Whoops. Completely overlooked that, my apologies. Rusty C++ aside.. As for not noticing C#, apologies to OP for adding a completely worthless response. Thanks for the correction guys, feel a little embarrassed now. :o [Edited by - hammerstein_02 on February 13, 2008 5:40:29 AM]
  6. Problem with my array

    NameArray[i] will never contain quit, you increment the counter before you check, and you never put the value into the name array unless it's not quit, which means you'll always put the value into the array... while (nameArray[i] != "quit") { Console.WriteLine("Enter in a name (LastName,FirstName), <type quit to exit>"); i++; if (nameArray[i] != "quit") { nameArray[i] = Console.ReadLine(); } } Should be; std::string nameInput; while (nameArray[i] != "quit") { Console.WriteLine("Enter in a name (LastName,FirstName), <type quit to exit>"); nameInput = Console.ReadLine( ); if( nameInput != "quit") { nameArray[ i++ ] = nameInput; } } note: My C++ is rusty at best, but I do believe that should be the idea..
  7. need some home work help

    If it's a homework question, the point of homework is to improve your knowledge of the things you've studied in class. You will more than likely have been provided with all the materials you need to complete the task, it's just understanding them that will get you to where you need.
  8. Assuming you're using Visual C# 2005/2008 or something like that, right click on the individual project and click build.
  9. little question about dynamic length arrays

    Edit: re-read, rethought answer..
  10. It's been a long time since I posted regularly on these forums, but I'm really tempted by games programming again. Since I spent time here last I've been doing a lot more programming using C#. I've developed quite a large application, learnt a lot about events etc. And think that I could probably grasp the basics a lot better than I previously had. So, as I've done a lot of professional C#, I figured I might give it a go rather than going back to C++. Now, the question is (and sorry if this isn't the appropriate forum for this question) what resources would you recommend for picking up game programming using C#. I know there is a book available from Apress, I have several Apress books and am quite impressed with them, but would you recommend using online resources (i.e. The microsoft tutorials) to start with?
  11. What to learn first?

    ok, i read posts like this all the time.. and like one of the early posters in the thread pointed out, everybody has their own opinions. From what you have said, you have actually made your mind up on Java. Java.. and I am sure I will be corrected en mass for this, is structurally similar to C/C++. Java is a more Object Orientated (OO) pure language, that could/will teach you some very efficient and appropriate methods. I am 24, work using business BASIC.. which is archaic by even standards from 5 years ago, however I work in my spare time with C++ and web languages PHP etc. etc. I thoroughly recommend reading about all the languages mentioned throughout the course of this thread, and trying to review some of the opinions on other threads talking about the same thing. By reading a lot about personal comments on a variety of languages, it may interest you enough to read more on them. People will suggest the language they started in as the starting point for you, but what makes these forums the best on the web at this is that they allow people no matter how repetetive the arguements to argue over what is the best language. Read a few of them, read up on the languages mentioned.. learn their history ( the languages that is) http://www.webopedia.com is a good place to begin .. google etc. after that. And like previous posters have stated, learning how to program will allow you to apply that to many different languages. Hope this is helpful in some way
  12. My Site

    Ok, the other guys are right.. it is too blue. Few suggestions; 1) Find a font size, colour and style that is easier to read. - Font style; I suggest something like arial, tahoma, verdana even though everything is an image at the moment so you don't have to worry about the font, it is still difficult to read. - Font colour; With one of the aforementioned fonts, a light yellow; #ffff80 would probably work. - Font size; well I use pixel size rather than point size, but something like a 10pt would probably work. 2) Layout Your navigation doesn't follow any set rules, you make it look like some sort of UML diagram, which is confusing. Like the last guy said, you need to bring a cohesive look to the site. You can't make two pages look completely different. 3) Links Always try and make links obvious to those who are going to use the site. People tell me that I should design a site 'in this way' or 'in that way' But the way I try to design is in a way that the users I aim the site at would use it. I hope that my points don't seem to critical. If you require any further web design critique, may I suggest http://www.htmlforums.com They are much more concentrated on how your site works as opposed to the content. Also, I just tried your Gameboy Roms / Emulators link and I get redirected to E-Bay. If this was a feature in the past (noting the 2001 postings) maybe you should get rid of it. Also, if you do actually feature ROMS at all, don't forget to cover your own back and hold a disclaimer, oh.. and OWN all the games you list.
  13. please suggest 3D Game programming books

    Sorry to do this to you man.. but http://www.gamedev.net/columns/books/
  14. how to set up a MySQL server ?

    You don't need apache installed to set up a mysql server. The docs that come with the software are very thorough, and have an entire selection on beginning the server, setting it to run as a service etc. I would really recommend reading them.
  15. Bouncing A Ball - Theory

    I have recently decided that to better understand maths / physics, their application and uses within computer games I will attempt to write small programs that simulate the effect. I have decided that I will start by attempting to simulate a ball bouncing. heres what I think I need to know, and I am sure that you guys will help me out ;) I am not doing this graphically at all, simply going to write a program to do the math required, so I suppose I really have a Circle.. not a ball.. but lets pretend. Ball X = Center_Screen Ball Y = Bottom_Screen Ball Radius = 5 Firstly I want to make the ball bounce up and down. I would imagine that this would basicaly involve giving the ball a speed and when that speed reaches 0 reverse it to send the ball in the opposite direction. After acheiving this I want to bounce the ball as if it were thrown up in the air, so it's bounce would gradually decrease as it lost its energy. Then, finally I want to make the ball bounce in a line, as if it were thrown. I have done a search on the forums, most topics I found involve mainly the application of the ball in 3d or collision detection, something I am not interested in at the moment. My language of choice at the moment is C++ btw, incase that is relevant.