I now wondered, in flash games, this is how this sprite is in a state of free fall, how can this be done in java?
- oneThis is not like a free fall, there is no acceleration. - avp
- oneas for me, there is more "physics" there than falling, but there are formulas about falling, there are constants, everything is considered according to them ... - Gorets
- oneI am not a flasher, but I suppose that there is skeletal physics there, which in general and cheating of all these movements - Gorets
- oneI need to look for the physics engine for Java games ... there is another option, but I don’t offer it =) - Gorets
- oneSo it is necessary: ​​how to draw or how to count coordinates from time? - avp
|
1 answer
Such a doll is called a ragdoll. Physical movement is engaged in the processing of its movement. Box2D is widely used in sprite games. It is ported to many programming languages, including Java (in the form of JBox2D ).
How it is arranged can always be peeped in the source code, since they are open. Writing such things from scratch makes no sense, unless you want to learn how to write a physical engine. For a game project, it is always better to use ready-made products.
- oneCrytek does not agree with you =) - Gorets
- foura little tea did not choke "for a couple of days" - Gorets
- oneIt is clear that companies like Crytek, Id, Epic Games can invest in their own middleware development. By “writing from scratch myself” I meant students, single developers, small indie studios. It is enough to calculate how much money will be spent on developing the engine, and for how much you can license someone else (and even with technical support, several years of testing and debugging) - Nofate ♦
- one@Nofate, I was joking =) - Gorets
- one@Gorets, yes, of course. I explained more for the topstarter. - Nofate ♦
|