Advertisement Jump to content
  • Advertisement

speciesUnknown

Member
  • Content Count

    2271
  • Joined

  • Last visited

Community Reputation

527 Good

About speciesUnknown

  • Rank
    Not technically human

Recent Profile Visitors

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

  1. speciesUnknown

    Windchasers still under way...

    I might have given you the lecture before, but anyway, the one thing I can think of is, what will you do to set your game apart from the rest of the crowd? There are plenty of futuristic racers out there - all fairly similar to wipeout: [img]http://upload.wikimedia.org/wikipedia/en/9/9c/PSX_Wipeout.png[/img]# What are you going to do that is "different" as opposed to better (n.b. everybody thinks their game is better) from games such as this? OR these, [url="http://store.steampowered.com/genre/Racing/"]http://store.steampowered.com/genre/Racing/[/url] Think hard about this.
  2. speciesUnknown

    Apple wins over Samsung: thoughts?

    I once read a statistic which said that if all the lawyers in the world were laid end to end around the equator, the world would be a better place.
  3. speciesUnknown

    A stealth weapon that's never been done before

    I like this idea, I've certainly not seen a sling used as a weapon in this capacity. I remember having sling weapons in rogue-likes but those were purely probability based.
  4. This is the game in its current form. Note that bullets have travel time. www.zombiebovine.com/playgame I'm currently upgrading the zombie AI and I want to add a system where zombies hear gunshots nearby and charge toward the player; to balance this out, I need a dedicated stealth weapon. But I don't want something that has been done recently in a big game - I want something that sets my game's stealth sections apart. Here are some ideas that I've had so far: Boomerang - after hitting a target it returns and you have to catch it. if you don't hit an enemy, it wont return. Throwing knives - when you throw knives in real life, you need to take care of the rotation of the blade; so some kind of mechanic of charging the spin by the right amount might make this a challenge. I throw knives in real life (although I'm not very good at it) and can reliably stick a knife in a target blade first, but this takes serious practice and concentration. Whether you go for one spin or multiple spins, you need to ensure the spin is correct. Crossbow - How can I make this more of a challenge than just a plain old crossbow? Longbow - Again, how to make this a proper challenge? Dart gun - the same problem applies here, I want the stealth weapon to be harder to snipe with than other weapons and a dart gun is just too easy if its similar to a normal gun. Any ideas are welcome, thanks for reading.
  5. Who cares if he overloads the , operator anyway? Its not like he is going to be doing anything useful for the next few years, given his choice of language. As an empiricist, I say let him do it and learn the consequences for himself.
  6. speciesUnknown

    Entity VS Behaviour

    But what if you make the components self sustained, so they don't have to access data from other components? This can of course mean moving of more data. Or do you mean the order of updates to data in components depends to data in other components? You'd have to order the updates anyway, either in logic in system, or by building ordered update of components so no stale data is accessed. Also, surely a system only access the components in it's own domain, and passes messages to other systems? The way I see it, you don't want components to communicate to each others, becouse that would be logistic nightmare. And you don't want to put all component's logic in one system, becouse you'd have one system per component type (or one massive system per multiple component types). Maybe some kind of subsystem, recurse the general idea. [/quote] That's actually a good argument. I can already think back to times when the message passing overhead inside an object has gotten to silly levels.
  7. speciesUnknown

    Entity VS Behaviour

    I'm not sure where this rule of "no logic in components" comes from because it makes no sense to me. Logic needs to go somewhere, so if it doesn't go in components, where does it go? As yet, I've not seen a good argument for behaviours and components being separate, other than vague claims that separation is good therefore separate logic and data is good.
  8. speciesUnknown

    Register renderables every frame?

    In a word, no. Filling a preallocated list is incredibly cheap on modern hardware. It's an O(n) operation but you can cut down on that N by using some culling in the scene. What might be more of a concern is the order that things are added, because you might want to batch things up according to their material, or their mesh, etc. In the past, I've used std::multimap to sort things by their material, where materials consist of a pair of shaders, and a list of textures. For a small game, the multimap solution (with a predicate based on the shader ID and then the texture ID's ) is plenty fast.
  9. So basically the physics engines don't and shouldn't work with real game entities, but abstractions? I'll look into the API, because that would be great! [/quote] That's sort of how it works; they would have a hard time understanding your game entities. Its more a case of specialisation than limitation though. If your objects can be represented by rigid bodies, or processed using queries, you will go far.
  10. Try out box2dweb, its the as3 version of box2d converted into JS. The way they work is that you put bodies into the physics world, and then step the physics simulation - it will resolve collisions and things to give you the new position of your rigid bodies. Let your logic entities put rigid bodies into the physics scene when they are added to the world, and remove them when they are removed from the world. When you update, update the physics system first, and then let your logic entities get their new positions from their rigid body or bodies. This will all make sense once you have done it for real.
  11. speciesUnknown

    how to write a game like worm reloaded

    They don't have any collision routines for a pixel map. The direct sampling approach is also no good because of tunneling. Projectiles will be on one side of a thin barrier on one frame, and the other on the next. What you need is to cast a line into the grid, from the previous position of the projectile to its calculated next position. The point of collision is the first pixel that it hits along (the one with the smallest T value). Bresenhams line is one way to do this. Test each pixel that the line passes through until you get a hit. http://en.wikipedia...._line_algorithm When an explosion occurs, you can remove pixels from your pixel sized grid to damage the level. For characters walking, a ray cast downward will suffice. Let them fall through gaps of 1px (these will be rare though, if you are blowing holes in the terrain with explosions). You can do a brute force iteration over a square area that covers your circle, doing a distance-from-centre test to ensure you don't fill out the corners. Performance here is acceptable, don't try to optimise that yet. The last thing you need to remember is to use a grid of smaller textures, don't try to do it with a single huge texture, because you have to modify textures when they get holes blown in them. Textures that stayed intact can be left unmodified. For a basic implementation, this is the only optimisation you really need. [/quote] That's correct, but you can generate the lines under the map to match almost perfectly. And, what you'll gain from the physics library is immense time and brain saving. The implementation you suggest has many difficulties, whereas the physics engine will handle everything movable for you (walking, shooting, colliding, etc.). The main difficulty with a physics engine is handling creating the craters from explosions. But, I'd say even that can be modified via small line-segments. That's how I'd do it at least. [/quote] Physics engines are designed to do one thing well - rigid bodies. If you don't have rigid bodies, attempting to force them to use a different paradigm is not worth the time they will save you. Box2d does not have built in character controllers, and even if it did they would be for use in a rigid body simulation. There is a fine line between sensible code resuse and trying to force a tool to do something it cannot do. You will spend more time on your line segment hack, and making that support terrain destruction via explosions, than you will save by using the physics engine. You will still have to implement you character controller manually, and you will still need to write the projectile system yourself, to use line segment queries (if you use rigid bodies to simulate projectiles, they will tunnel)
  12. speciesUnknown

    how to write a game like worm reloaded

    They don't have any collision routines for a pixel map. The direct sampling approach is also no good because of tunneling. Projectiles will be on one side of a thin barrier on one frame, and the other on the next. What you need is to cast a line into the grid, from the previous position of the projectile to its calculated next position. The point of collision is the first pixel that it hits along (the one with the smallest T value). Bresenhams line is one way to do this. Test each pixel that the line passes through until you get a hit. http://en.wikipedia.org/wiki/Bresenham's_line_algorithm When an explosion occurs, you can remove pixels from your pixel sized grid to damage the level. For characters walking, a ray cast downward will suffice. Let them fall through gaps of 1px (these will be rare though, if you are blowing holes in the terrain with explosions). You can do a brute force iteration over a square area that covers your circle, doing a distance-from-centre test to ensure you don't fill out the corners. Performance here is acceptable, don't try to optimise that yet. The last thing you need to remember is to use a grid of smaller textures, don't try to do it with a single huge texture, because you have to modify textures when they get holes blown in them. Textures that stayed intact can be left unmodified. For a basic implementation, this is the only optimisation you really need.
  13. speciesUnknown

    Planning - What do you use?

    I'm not totally unconvinced when people say they plan everything in their heads. If you were to ask me many years ago how structured a game, I wouldn't know, and would have to mess about with UML first, but if you asked me to do the same now, I could build you a high level UML from scratch, without pausing. Some things stick with you if you do them a couple of times, including structures. But this is not really the same as planning - there is still a component of planning the order you will implement things in, or divvying up labour, which requires turning your map based diagram into an ordered list of tasks to be performed. For example, anybody who has owned a bicycle could do a crude drawing of one from scratch without references, probably starting with the frame and working their way out, because the high level details of the structure of a bicycle stays in your memory once you fix one a couple of times. Once you have the most basics (frame, front forks, wheels) I could then ask you to add details one by one; you would know where to put the gear hubs, the chain, the pedels, the brakes, the seat, etc. because you know the relationships between all the relevant objects and because your brain can project that relationship into a higher or lower order space, in this case 2D. Putting a bicycle together in real life, however, requires that you have an ordered plan, and this is probably where those people are falling short - code will suffer from growing pains and excessive refactoring if things are added piecemeal with no consideration to the order they will be required. You might come to paint it and find that you need to remove the bearings, because you didnt consider what order to do these things in. This happened to me when I built my PC. I screwed the motherboard down to the backing place, then came to put the CPU on, and found that the force required to put the CPU on was bending the motherboard; I had to take it off again and rearrange the little columns they give you to space the mobo from the backing plate. I knew where everything should go, but not the order of construction, and wouldn't have been able to divide labour up between individuals in a team for the same reason.
  14. speciesUnknown

    A few fun web games made from JavaScript and PHP

    I've been messing with the stickman game; what was your plan for this? There seem to be a few players ther,e but I dont know if they are human or not, they arent talking.
  15. speciesUnknown

    Any of you suckers buy FB stock?

    I don't trade stocks, but my instincts here told me that FB was overvalued; their actual profit is only via ads. I expected it to perform poorly and gradually drop over the course of a couple of years as people realised the hype was unfounded. Wasn't expecting such a drop, though.
  • 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!