• 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.

jpetrie

Moderators
  • Content count

    8272
  • Joined

  • Last visited

  • Days Won

    1

jpetrie last won the day on July 18

jpetrie had the most liked content!

Community Reputation

13068 Excellent

About jpetrie

  • Rank
    Moderator - For Beginners

Personal Information

  1. There is no "best" way, really; you should organize it in a fashion that works for you. What you want is for your portfolio to demonstrate the things that show off your skills as a developer, so you will likely want to prioritize the display of projects that are more impressive on some scale or show off something you are particularly proud of. There are no rules for what needs to go into a portfolio. You don't necessarily need "complete" games, for example, if you're a programmer. Portfolios are very subjective things, both in terms of how the author will assemble them and how any potential employers will review and judge them. It's impossible for you to know the latter, usually (and every employer will be different anyhow), so you should focus on structuring it in a way that allows you to show yourself off in the best light you think possible.
  2. It's a good question and I thought about just suggesting this as well instead of what I said in my original post. However, for me it comes down the fact that allowing these necro posts tends to bury new discussion at the end of 5+ page threads from the turn of the century. This makes it less discoverable, because there's a bunch of old crap to wade through first before you necessarily have the context, and wading through that old stuff is potentially totally irrelevant because of how old it is (things may be different now), and it's consequently easy for some posters to then derail the new discussion entirely because they picked up on some statement that was true in 2001 but isn't now, and they post to "correct" that 2001 poster (perhaps because they too didn't notice the date). And that's just for the well-intentioned necro posters, who maybe don't realize they're doing it. There's also the set of posters who reply to these threads just to be jerks and "get the last word in," so it's nice to be able to shut that down.
  3. 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.
  4. Please do not necro year-old posts.
  5. 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.
  6. 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.
  7. You might try local thrift shops, or similar second-hand stores, in your area.
  8. 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.
  9. 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).
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. 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."