• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.


  • Content count

  • Joined

  • Last visited

  • Days Won


jpetrie last won the day on July 18

jpetrie had the most liked content!

Community Reputation

13066 Excellent

About jpetrie

  • Rank
    Moderator - For Beginners

Personal Information

  1. We have a longstanding policy about avoiding thread necro'ing in year-old (plus or minus some months) topics. Can we just fix this by enabling some option to automatically lock or otherwise disable responding to posts above some threshold? It would eliminate a lot of annoyance for moderators and, especially, users (who I'm sure love getting the silly slap-on-the-wrist warnings from us for something that, it seems, the site could easily just prevent them from doing). It would also eliminate any subjective wiggle-room in "how old is too old" determinations from moderators.
  2. Please do not necro year-old posts.
  3. That's not something we can help you with. If you are unwilling to leave your house, you can try various online resell places like eBay and try to find something you can afford there.
  4. So the "paused" clause is literally for like, "user has paused the game" or otherwise suspended the application and not to pause the loop to throttle down to your target framerate? That does mean the sleep is probably not the cause of your lag, unless you're accidentally flip-flopping the state of the gating variable someplace (breakpoint in the debugger to verify), although the Sleep() is still not the best way to handle that. Neither here nor there, though. You can upload the .exe someplace, although the chance that somebody will download a random .exe is slim (and you'll want to make sure you upload an appropriately self-contained package, e.g., not a debug build etc). You could also upload a .zip of the project and somebody might be willing to build and verify it for you. Or try making a video and sharing that. Something else you might try as a diagnostics technique is to make the shape move back and forth on its own, without mouse input. Then observe the behavior as it runs, keeping your mouse still and your hands off the keyboard. Then, observe the behavior as it runs while you move the mouse frantically over the window. This can help rule out whether the delay is due to a factor of the Win32 message queue size or simply a constant issue.
  5. You might try local thrift shops, or similar second-hand stores, in your area.
  6. The most obvious factor is that the Sleep(100) in your core loop will always halt your application (and thus your updating and rendering of the position of the shape) for at least 100 milliseconds, if not more. The cursor, being driven by the OS, blissfully does not care about that and will update the cursor in realtime. That Sleep() is not needed. It's often seen used to "make sure we don't use 100% of the CPU," but that goal itself is often based on a false premise and even then, sleeping the whole thread for an arbitrary amount of time isn't the solution. If your base class WndProc is doing anything with mouse-moved events that is time-consuming, that can also throttle back your core loop since mouse-moved events are _very_ spammy. Similarly, if the base framework class is trying to force a WM_PAINT, which is a low-priority but spammy (even though it's coelsced) message, and doesn't actually correctly handle that WM_PAINT, that can also throttle back your core loop by causing the branch into the positive case for the PeekMessage check to be taken way, way more frequently than you generally want. I'd verify those.
  7. How are you invoking your actual rendering? Is it in the WM_PAINT handler of your message loop, by chance? (If not, please show the code that invokes it and the code that drives you main loop... and probably your actual window procedure as well; those are the likely culprits).
  8. What exactly is it you're trying to accomplish (if you say you're not rebasing anything yet, why are you running the command)? The "proper" content of that text file depends on your goal, and putting the wrong thing in there (or deleting the wrong stuff) can have unpleasant consequences.
  9. Handle errors how? D3D reports almost all failures using HRESULTs, you don't need dxerr.h's functions to interpret and handle those failures. For the most part the SUCCEEDED() and FAILED() macros will let you make the appropriate determination, and they will be pulled in by simply including Windows.h. The dxerr library is basically dead. All it was useful for, really, was getting formatted error strings from some HRESULTs, and some utility macros. If you really need that functionality you can find various reimplementations (for example, header and source). In practice I've found it more useful to simply write code that interprets the actual HRESULT in the context of the actual failure and propagate a custom error message to users that way, rather than the generic context-free messages produced by the old dxerr functions. You can also use FormatMessage directly.
  10. What's the error you get when you try? Adding a "reference" to a native project like that isn't necessarily going to set up the include paths correctly; probably the only thing it's doing for you is ensuring the referenced project builds before the referring project. Depending on how you set it up, it may also be automatically linking in the static library output of the referenced project. Chances are, you need to go into the project settings for your main project and find the include search paths option, and modify it to include a relative path from your project to the directory containing the D3DApp.h source code. Or, frankly, not bother with a separate project for this and just lump it all into your main project.
  11. Git just invokes your text editor. It's your text editor. I can't tell you how to use it. If you don't know how to use the text editor you have installed, consider getting a different one. Git will use whatever the appropriate OS-level mechanism is to try to find your default text editor, if applicable, or use the one you tell it to via your .gitconfig or similar. Then it will invoke it and wait for you to close it and read the (usually temporary) text file you generated with the editor session to continue its work.
  12. Yes, this part is true. No, this part is not. The parent (base) class cannot see into the derived class. It doesn't know anything about it, and cannot act on any member variables of the derived class directly. The Base::Method() syntax you're seeing here is nothing magical, it's just a way of disambiguating, for the compiler, which function you want to call in a case where there are two versions (the base virtual method and the derived overridden method, for example). It is otherwise akin to any regular old member function call. Your terminology is a little off again, here. In your example, "value" is a member of A. Not B; B doesn't have a member named value of its own, it just has A's value because B inherits from A, and thus every instance of B is also an A. When you say things like that something "will act on the derived class variables," what you are saying is that if (continuing your example) B had a member variable called "name," that calling A::FancyFunction from B::FancyFunction could let A set name = "Frank." But that is not possible.
  13. It's hard to say without the code. But probably what you are seeing here is that D3DApp::Init() is being used to call the base class version of Init(). I'd venture to guess that the author is suggesting you use this pattern to allow you to insert any of your application-specific code before or after the base application initialization runs. There are alternative, better (in my experience) ways of implementing this pattern. But in this case the author is probably opting for simplicity and straightforwardness at the cost of robustness and expecting you to just "remember" to call the base class Init function at the right time. The Foo::Bar() syntax means different things in different contexts. In this context, it means "explicitly call Foo's version of Bar on the object pointed to by the this pointer."
  14. As for your actual plan: What do you mean by "build," here? You keep using that word, but it doesn't make sense in context. Do you mean a build is like a shipping version of the game, so you'll ship the initial game (one build) and then 14 more content updates afterwards? Everyone is actually working for you. And the people you want working for you will know that, they aren't going to be suckered in by hype like "everybody is working for themselves." They're smarter than that, so I'd recommend you don't try to pitch that angle. How are you expecting to hold everybody to this "two hours a day" schedule? Two hours is too small a time window to produce a usable, measurable artifact on a daily basis. What does getting paid "twice as much for what they did" mean? Twice as much as what? What is the "small percentage," and what is it a percentage of? What accounting method do you use to arrive at that value. Your business plan here needs a lot of work and a lot more detail if you expect worthwhile developers to be interested. I think you are being extremely idealistic and, consequently, unrealistic in your expectations of why anybody would want to work for you, a self-proclaimed neophyte when it comes to game development. Unfortunately making the game itself usually bears little to no resemblance to what playing it will be like. It's not "scary" to make zombie games. It's not going to be intrinsically funny or even fun to make a comedy game.
  15. If you mean "resubmit" here (as in re-post), please don't do that. You're welcome to engage in a discussion with the larger community about your plan, but there's no need to re-post it daily.