Advertisement

Design Questions

Started by April 28, 2013 11:24 PM
1 comment, last by MichaelNIII 11 years, 8 months ago

I am writing a platform game in java that is based on minecraft, and i was wondering about what people thought about certain features of the game.

1. When two enemys collide what should happen

2. When you reach a checkpoint and die should progress forward of the checkpoint be lost

3. How should i base collisions with other entities(touching, pixels, etc)

1. What do you think should happen?

2. What do you think?

3. I don't follow you. Most people use collision boxes.

-- Tom Sloper -- sloperama.com

Advertisement

if your game is going to use block graphics, then bounding boxes will work very well.

1. Only one object is moving at a time really, so two enemys can run into each other, one can run into another one - and then that other one can run into him right after, but you don't move everything at once and then try and figure out what collided after everything is moved, at least I wouldnt. you move something, and then check if the item you moved has collided with another object, and if it has - you undo the move (or figure out how far it is allowed to move without intersecting the other object)

2. that is entirely up to you, for all we mind you can just make it so we cant die, and thus wont have to worry about that tongue.png

3. you will want to use boxes in this case because i think your building a block world and they should work very nicely for that, if by "like minecraft" you mean like its gameplay but your using all spheres or something else odd, then the method you could use to best and optimally detect collisions will be different.

This topic is closed to new replies.

Advertisement