Jump to content
  • Advertisement

DanielSzekely

Member
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

106 Neutral

About DanielSzekely

  • Rank
    Member
  1. Coming this Monday, I will earn the official title, wait for it, moron of the year!
  2. DanielSzekely

    Xcode to Visual Studio

    And you have no logging mechanism to figure out just where things go wrong?
  3. DanielSzekely

    How to "care" about programming?

    Perhaps the OP implied "application software", as opposed "game software"? [/quote] This is a valuable lesson most new developers need to learn at some point... application software and game software, when you look up their skirt, have basically the exact same bits... Sorry for the pervo analogy. [/quote] I love you.
  4. References. You make a lot of assertions but don't back them up. So a reader may ask: on what authority do you make your claim that the free-to-play model is superior to the subscription model? Lacking references your article appears to just be a collection of one person's personal opinions. [/quote] I have read many game design books and articles. I will embed some references in the article when I get some more free-time to dig out where I learned all of this stuff from. A free-to-play model is more favorable to the players than a subscription model. You can build a large player base just by leaving your game free. Many successful MMORPG's to date have done just that. Some have done the exact opposite and at one point you had to pay to play and now they are free. Players love a free game but it's very hard to create a cool game without any financial resources. [/quote] WoW kinda disproves both of those, so far. ;)
  5. Alright, Should I spare you the lecture about variable names, and classes? You may want to do some research on classes. If you want to update the classes, though. You can pass a reference to Tony as a parameter. So the prototype of the function would look something along the lines of: void calculate (People *person); So, what this says, basically is: "I want the pointer to the block of memory that holds information related to person". You make your changes and voila. A more interesting alternative (and correct when it comes to class, I believe) is inheritence and polymorphism. Human is the base class, tony and ed are People. (Sorry for the name, can't think of anything better at the moment). The base class has a virtual method (notice I didn't call it a function) that People inherits from the Human class. Because the base class method is virtual, that means you most override the method to perform the appropriate action. Because this is the only way you'll be using calculate, then you could just not declare the method as virtual and let the child class call the base class` method.
  6. DanielSzekely

    Planning (OO - Design) ?

    [color=#1C2837][size=2]The big deal is "don't think about the game" when writing code but the bits that go into making the game. There is no way to learn this other than by experience. And test driven development helps greatly in forcing you to think in the "bits" way when writing code because if you can't test it, well it's probably monolithic and not OO. (And before everyone flames me, THIS IS NOT SUGGESTED TO BE PERFECT.. Just a very good starting point.) [/quote] [color=#1C2837][size=2] [color=#1C2837][size=2]This. [color=#1C2837][size=2] [color=#1C2837][size=2]You want to make a tetris clone? [color=#1C2837][size=2] [color="#1c2837"]Start at the lowest possible level available to you. [color="#1c2837"] [color="#1c2837"]The block. [color="#1c2837"] [color="#1c2837"]How many pixels wide is the block? What properties does it have? Does it do anything besides describe a block is? [color="#1c2837"] [color="#1c2837"]Moving on then is the shape that incorporates these blocks. [color="#1c2837"]What are the shapes properties? How many blocks wide/long is it? (Notice I never mentioned pixels? ) [color="#1c2837"]How fast will the piece be moving? [color="#1c2837"] [color="#1c2837"]And this is just the icing on the cake, but if you can visualize tetris, then try to describe everything as clearly as possible then convert that into an object.
  7. DanielSzekely

    Recursion

    So, you want to print all that with recursion? Well, without giving you code because it's something you need to figure out as you go, write out the steps in pseudo code. You'll need to keep track of how many levels "deep" you go, also notice that you have n-1 spaces between the asterisks; Where n is the number of asterisks you'd like to display. printAsterisk would require the following parameter: the count of how deep you want to go. This is important, otherwise you will get a stack over flow. Now, basically, you print (note, create a string) your asterisk as well as the level - 1 stars, so if you're on level 1 you print nothing but asterisk and the new line; meanwhile on level 2, a star, a space, another star and then the new line. I guess it helps to think each row as a separate string appended into one as you go back up the stack. Keep this up until you reach your desired level. Hint: % operator may be your friend. (if you want to place every odd / even ) character. Hope this was clear enough for you.
  8. DanielSzekely

    Simple side scroller with C++ and OpenGL...

    If you want to get the window into tiles, firstly, establish the pixel width and height of the "tiles" or blocks. Then, figure out what the width and height of the window is and voila, width / width of blocks and height / height of blocks. There you should have your grid based game ready for you. Assuming you want to get this done in a rather quick and dirty fashion for practice, why not declare a 2 dimensional array that keeps track of the field and see where that takes you?
  9. DanielSzekely

    Steve Jobs

    http://blog.ted.com/2011/10/05/remembering-steve-jobs/ I think it's something worth listening to from him. As a Microsoft man, I have had nothing but respect for this man. May he rest in peace.
  10. DanielSzekely

    [C#] pick random from a set of numbers?

    Don't worry about it! It's all part of the learning process.
  11. DanielSzekely

    [C#] pick random from a set of numbers?

    Put the number into an array of ints. Then generate the number between 0 to (Total numbers - 1) And voila! private int GetRandomNumber() { int number = Random.Next(0, 6) //Generates 0 to 5; int[] choices = new int[5] { 4,22,31,65,73 }; return choices[number]; } Do note, that, if you have a considerable amount of numbers, you could store it all in a file and then read it into an array. There's also the List<int> approach, but that's just overkill?
  12. DanielSzekely

    When/Why to Move to C++?

    Instead of starting with C++, why not start with C? It's a crazy idea, but C++ really builds off of C. Yes, C++ is an Object Oriented language whereas C isn't; thus they are different languages arguably, but get used to the syntax first and then worry about OOD design - Design of any kind is done before coding thus should be studied separately from coding. Since C++ offers so much more than C, you may feel overwhelmed at first. Just try C, you'll be learning C++ at the same time, basically. Learn the *pointers, memory allocation, structs, enums, etc. And then move onto classes, (which you'll find remarkably similar to structs syntactically at least), templates, overloaded operators, etc. *emphasized because pointers tend to be a pain until you get used to them.
  13. DanielSzekely

    To goto or not to goto?

    (Assuming C, here). Anytime I need a goto, I have functions. That's what they're there for essentially. This not only allows you to move to a different address, but it also maximizes re-usability; a topic I seem to have missed being discussed. Clean-up for malloc/free will be the same regardless how you use it, so why not write your own little library to handle it for you? Goto, while making it simple and readable (I guess... but not using it ever, I can honestly say functions are far more readable for me) just shows to me that you're not thinking for the long term with your code.
  14. DanielSzekely

    Memory Heap Problem

    This is the catch 22 of trying to write code samples in book form. Space is always limited and you want the sample to be as concise and on topic as possible. The first victim, comments ( which makes sense as the book you are reading should in fact be the comments ), the second... error checking. This is even more true in Java books where error checking can be a bit more... verbose. In many ways, its a problem with no easy solution. Well except I suppose to use websites instead of books. [/quote] I agree with you whole heartedly. This day and age, I think books are (becoming) obsolete; especially when it comes to programming information. But I digress; I haven't read many programming related books to know the general pattern of writing, so I'll get off my high pony. For the OP; I suggest you research and implement a simple logging class for yourself, send me a PM if you'd like some help. Also research your functions/classes and understand their return values. Then if something fails, write it out in english (or your preferred language) to a file you can check. (i.e. "[date-time]: (function-name) (function could not read file [filename])"). This will save you many hours of headache. :-)
  • 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!