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

wolfscaptain

Members
  • Content count

    174
  • Joined

  • Last visited

Community Reputation

200 Neutral

About wolfscaptain

  • Rank
    Member
  1. Machine code. But with more seriousness, if you are going to make a triple-A game, C++ is most likely the way to go. Until then, you should use other more sane languages.
  2. All matrix operations are removed in ES2, but the idea is the same - send your own projection matrix. As to integer positions, use glVertexAttribIPointer (note the I).
  3. To replace data files, I'd go with with something like PhysicsFS. They have this exact example on their main page I believe.
  4. Wall sliding is done by moving the colliding object along the collision normal until he stops colliding. I assume any physics engine gives a collision listener which also feeds the collision "force", which is just the penetration vector's length. You can use that to apply your own response, but remember to check the normal's direction, or you'll slide down on ramps too.
  5. OpenGL

    For some reason I don't understand, no one introduced a window-less OpenGL context, so you have to make a window. If you don't want it showing, just set it to be hidden.
  6. It will be a whole lot easier to use that same quad you defined, but before drawing it, reset your projection and view matrices. I am not in front of a computer and I don't remember the exact synta, but something like this: [code] // draw your scene glMatrixMode(GL_PROJECTION_MATRIX); glPushMatrix(); // does this work for the projection matrix? glLoadIdentity(); glMatrixMode(GL_MODELVIEW_MATRIX); glPushMatrix(); glLoadIdentity(); // render your quad glMatrixMode(GL_PROJECTION_MATRIX); glPopMatrix(); glMatrixMode(GL_MODELVIEW_MATRIX); glPopMatrix(); // ... [/code] I haven't used the fixed pipeline for years, so I don't remember if pushing and poping matrices works for the projection matrix, but logically it should. In any case, you can render that same quad in your code this way to make it "fullscreen". As to seeing the other objects behind it - use blending (set your color with alpha below 1).
  7. Attachments should be in separate files, since they are not directly related to one character (e.g. Monsters that wield weapons). With skeletal animation, you can indeed attach models to points on the original one and have them follow its animation. I would still try to make a few animations of the same type. For example, you can swing a sword or a spear the same way, but stabbing with them is done quite differently.
  8. You can use a unit vector to store your facing direction. If you want to turn, rotate the vector. If you want to move, the velocity is speed*direction. Another option is to use a quaternion, but I think starting with a vector is easier (more straightforward, anyway).
  9. [quote name='Postie' timestamp='1343368861' post='4963528'] Essentially what you're asking is: How do you make a game act as though it doesn't use a physics engine. Easy. Don't use a physics engine. Adjust the velocity/position of the objects directly, don't factor in acceleration or mass or friction or any of the other physics related parameters. [/quote] I realize that, but I really don't want to start handling collisions, so I am wondering if you can force Box2D to be less "physicy"
  10. I am using Box2D, with a world made by arbitrary polygons, and I can't get for the life of me the oldschool platformer feeling. I am talking about moving at a constant velocity when you press the left/right keys, moving up/down on slopes at exactly the same way as on horizontal surfaces, and simple jumps. I tried playing with friction, gravity, using impulses or setting velocity directly. The issue is, no matter what I do, something works physically correct, which isn't really what I want. If friction is set to 0, and the velocity is set directly (if left is pressed, move left, if right is pressed, move right, if neither is pressed, set to 0), the player moves correctly on horizontal surfaces, but would slip on curves for some reason, jump when stopping to move upwards (still there is still velocity in the Y axis), and jump sideways when starting to move downwards, still gravity doesn't catch up immediately. If friction is set to 1, and the velocity is set directly (as above), the player doesn't slip from slopes, but still jumps upwards and sideways when stopping to move while going upwards or starting to move while going downwards respectively. In addition, the payer gets stuck while going against a wall to his sides, but that can be solved by checking if he is in the air or not. If friction is set to something very high, and I use very large impulses instead, while controlling manually the maximum velocity that the player can get to, then the player can't go up slopes (even the tiniest one) - he just gets stuck in place, and he also moves very fast when in the air (but this, again, can be controlled by checking if the player is in the air or not). Is there a decent way to get the feeling of old platformers, or is Box2D not suitable for this? Thanks.
  11. OpenGL

    Like I wrote above, my resources get deleted (as in, the destructor is called) after the window is closed, so there is no context to delete them from. Guess I'll just use heap memory (new) and delete them manually before the program ends.
  12. Does one need to clean up OpenGL resources when a program finishes? I can't think of any not-annoying way to clean up global resources in an SFML project, since the window (and thus context) gets destroyed before my resources. Do they leak to VRAM, or does the context take them with it? Is there any decent design to delete global resources before a program ends (and before the window is closed)? Thanks.
  13. Nodes are not necessarily bones. Are you getting the bones from all the meshes in the scene (if there are more than 1)? for some reason I don't understand Assimp doesn't save the whole skeletal structure, but rather splits all the references throughout the meshes. This means that you will have to figure out what the skeleton really is, because it does not have to be equal to the node hierarchy started with mRootNode. Here are two links that talk about this in addition to some other animation related stuff: http://gamedev.stackexchange.com/questions/26382/i-cant-figure-out-how-to-animate-my-loaded-model-with-assimp http://ephenationopengl.blogspot.se/2012/06/doing-animations-in-opengl.html
  14. I wrap all my GL calls with a macro that, if debugging is wanted, adds a call to a function that prints a GL error. It's not automated, but it's as close to it without going and making bindings that do it. I would have liked having a debug version of GLEW. On another note - do not use glBufferData to edit buffers, use glBufferSubData. The former forces the driver to reallocate the whole buffer.