Lactose

GDNet+ Standard
  • Content count

    994
  • Joined

  • Last visited

Community Reputation

11476 Excellent

About Lactose

  • Rank
    Advanced Member

Personal Information

  • Interests
    Programming
  1. That said, why not just use an array and index into it, getting the exact values?
  2. A quick and dirty solution just plotting some data points and curve-fitting: if (tileDistance < 6) return 100.0; return (64.81704965 / (tileDistance - 5.061304447)); Not exact, but fairly close.
  3. Is this homework?
  4. My suggestion: Create a new class, which you'll use for all your values. (Initially, this class is just a wrapper for a double.) Use the class and develop the game. If, after actually developing something and seeing it in practice, the double implementation doesn't work, upgrade it. All changes required will be in contained in that 1 single class, and you can start developing the game immediately.
  5. Cant find how to do this asm code in c++...

    When something doesn't compile, please post the exact compile error.
  6. Starting from (nearly) absolute zero

    I'll assume you mean JavaScript/UnityScript, but I might be missing something here... aren't these things (UnityScript Dictionary vs C# List) completely different in terms of usage and benefits? Alternatively, in which way is the C# List lacking, which is solved by UnityScript Dictionary?
  7. How to learn from Quake source code

    Keep your audience in mind. As someone who actually has played a bit of guitar, if a beginner (refer to the current forum and thus current audience) was wanting to start out with Jimi Hendrix songs, I would probably advise them to hold off on that until they had a better grasp of the fundamentals of playing a guitar, and come back to that wish later on when they were better equipped to deal with it. Likewise, old Quake code might be a treasure trove of knowledge, but it's not something I would recommend to people starting out for the purposes of learning. There might be other valid reasons for looking at it (e.g. curiosity), but that's not the topic at hand. An analogy closer to your Jimi Hendrix example would actually be a beginner wanting to make a huge MMO, like World of Warcraft. It's great to have goals and ambitions, but realistically that's just not a good plan when you're starting out. We generally don't advise people to start with their dream project; rather we suggest they work towards it with smaller projects to gain experience and knowledge. If a kid wants to learn how to read because they see you reading Tolkien book, you give them something like "See Spot Run" to start with, not "Silmarillion". No. Something being subjective does not mean all angles need to be pointed out. The quoted part is disingenuous at best, and since it is, I don't understand where you're going with it. If this is the line of reasoning, then we might as well shut down any attempt of discussion on almost any subject by going "well, that's your subjective opinion, I'm going to ignore you because it doesn't fit my truth". Yes, you could say that CoD is simple, but if you do, don't be surprised if developers strongly disagree with your opinion and call you out on it. If someone talking to developers/programmers claims CoD is simple, I would either expect them to be able to create a game indistinguishble from CoD within say a month or two, or to (at least when communicating with others) realign their definition of "simple" to the one shared by the rest of the world -- that "a game requiring hundreds of millions of dollars, hundreds of developers for several years, working on an existing codebase they can expand, improve and reuse" is not, in fact, "simple". If someone asks about their 4 year old nephew wanting a simple and easy game to play, we don't need 400 pages worth of discussion of what constitutes simple and easy. At that point, people would be going "well, Dark Souls isn't actually difficult, you just need to be careful and think", "<puzzle game X> isn't hard, there's not even any enemies that attack you", etc.
  8. Getting started

    Trading Card Game. When you create a new project, there is a checkbox for "Empty project" or similar. This comes without the pre-compiled header stuff (stdafx.h).
  9. how do i erase my post?

    You don't. Posts are generally not deleted here. You can always contact a moderator about it using the "Report post" button (located to the left of the "Share" icon).
  10. Unity does not use C++. Unity uses C#. Unreal Engine 4 uses C++.
  11. Where do i start?

    1. It sounds like you already decided on software (UE4 and Maya), so I don't understand this question. UE4 will require either programming skills or at least some logic skills if using the Blueprint system instead of coding. Maya will require 3D creation skills. Most likely you will also need to have some 2D art skills for texturing the 3D objects you create. 2. Impossible to say. A very simple thing could be a few hours if following tutorials, something a lot more complex might be days or weeks. 3. UE4 has menu options that allow you to build versions to distribute. 4. Something a lot simpler. Tic-Tac-Toe or similar. Or start with various tutorials found on Unreal's website.
  12. [C++]Ways to access functions of other class

    Create an instance of the Player class somewhere, and pass it to the camera. Maybe the camera has a "Player *currentPlayer" variable, which tells it which player to track. Camera could then have a "SetPlayer(Player *player)" function, which sets its "currentPlayer". In update, you could then do "currentPlayer->GetPos();" For this suggestion to work, you should include player.h in the camera.h file, and player.cpp in the camera.cpp file.
  13. Again Inclusion question

    Why are you loading textures manually in one place, but also passing the path in a different (seemingly unrelated) place? Your original post says it's to be able to request the texture again, but why would you ever want that? I would have expected the tile to only hold a pointer to its texture. Upon creation, load the texture (if need be, have some caching system or similar to prevent multiple loads of the same texture) and store a pointer to the texture in each tile/object.
  14. 2D Making 2D simple games (Zelda for example)

    Signatures are disabled by default. You having a signature doesn't mean others can see it; they need to enable signatures on their own to see them. The fact that they already have a signature doesn't mean anything either -- it is likely copied from the old forum system.