Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

4402 Excellent

1 Follower

About BeerNutts

  • Rank

Personal Information

  • Role
  • Interests

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. BeerNutts

    AIMBOT prevention

    I wasn't supposed to, but I Lol'd.
  2. You could create a "player" component that has anything specific to a Player controlled character (as opposed to NPC), and use it as a reference to which entity is the player entity.
  3. phaser.io with socket.io described here: http://www.html5gamedevs.com/topic/13472-four-player-pong-example-with-socketio/
  4. BeerNutts

    C++ buffer or vector issue

    That isn't relevant here, as every time he erases an iterator from within the loop, he breaks out of the loop. I think the issue was the erase() being done too early, while he was still trying to use the iterator after the erase() call
  5. BeerNutts

    How to design this game weapon?

    I would've had it such that, during your collision detection phase, you give the physical objects actually colliding a reference to the other object it is colliding with, so every object would have a list of objects it is current in contact with. Then, each object would process how it should react to each object it has collided with. In this case, the enemy would know it's colliding with a bullet of type laser-wire, so it would stop it's movement. The laser-wire bullet object would know an enemy is colliding with it, so it would decrease it's shield count. Just a thought.
  6. Just wanted to point out you may want the InputSystem to operate on the entities which contains an InputComponent. This way you can control things other than just the player (like a homing missile, or a remote control car, etc.).
  7. That isn't the best way to delete an item in a vector at all IMO. You can do something much simplier: for (auto it = missileVec.begin(); it != missileVec.end();) { if (it->deleteNow) { delete *it; it = missileVec.erase(it); } else { ++it; } } Basically using iterators to loop through the missile vectors and if one needs to be deleted, you can delete the pointer, then remove the pointer form the vector, else move to the next one.
  8. BeerNutts

    Looking for game engine / game lib

    SFML support both C++ and C# (through a binding) and has much, if not all of what you're looking for.   Good luck and have fun!
  9. If you want the logic done in a system, then you can simply have a motionSystem and an AnimateSystem, where the motionSystem has access to the PhysicalComponent of the player (anything related to a physical property of a player, velocity, position, mass, angle, etc.), a InputComponent which, tells you what input buttons are being pressed (up and right), and a playerComponent which has the specifics about the player (stats, power-ups, etc.). The animateSystem has access to the PhysicalComponent, AnimateComponent and playerComponent, and it determines what sprite to draw (mid-run, possibly glowing if the player has a shield upgrade), etc. That's just one quick thought I had, but hopefully it gets you thinking about other ways to do this.
  10. BeerNutts

    Beginning into 2d morpg development

    I too would suggest javascript running on html5.  You should take a look at SmartFoxServer.  It's a pretty nifty place to start for the server piece, and you can integrate it with html5. For your front-end, maybe look at phaser  It has all the tools you need to perform typical 2d type game programming. Either way, good luck, and have fun!
  11. You could check out a language specifically for writing text adventure games: TADS is a popular one, but there are many others you could choose form.
  12. BeerNutts

    Chipmunk Physics Ball Won't Bounce

    This is a great question for the chipmunk physics forum as it's specific to that system and you'll be much more likely to get an educated response than asking in a general game programming forum. Those guys are nice over there, good luck!
  13. Unless you're making a really intensive game, you probably don't need more than 1 thread.  I realize you're trying to make a general purpose engine, and that's great, you can learn a lot from doing that, but I'd suggest making one that assumes everything is single threaded.   You won't waste cycles on the multi-threaded piece, which is hard to do correctly, and you'll spend cycles on other parts of the engine which will be very beneficial, and you'll get to the more fun pieces of creating games quicker.   Either way, good luck and have fun!
  14. BeerNutts

    Framework options with full control

    If you've never really done any game development, I would HIGHLY encourage you to start with 2D games.  Trying to create 3D games as your first ever is going to add to the complexity 10x, and you'll really gain little.   A 2D game requires all the same engine code as a 3D game does (world, AI, input, inventory, interactions, weapons, etc.), except for simpler physics and graphics.  Using 2D graphics and Physics will give you a great basis and understanding of those concepts, and, when you're ready, you can jump into that 3rd axis.   With that said, I'd recommend SFML as it's a great C++ API for creating games.  You may also want to look at adding a 2d physics engine as well, depending on the type of game yo want to create (box2d, chipmunk-physics, etc.).   Good luck and have fun.
  • 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!