Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shields #31

Open
cxong opened this issue Jan 28, 2013 · 3 comments
Open

Shields #31

cxong opened this issue Jan 28, 2013 · 3 comments

Comments

@cxong
Copy link
Owner

cxong commented Jan 28, 2013

Shield as a weapon. Could be paired with a weak weapon such as a pistol.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@cxong cxong mentioned this issue Aug 22, 2013
6 tasks
@cxong
Copy link
Owner Author

cxong commented Jun 26, 2014

This is an interesting question as the shield might be a different entity type.

Recall that the game has various entity types with respect to collision: mobile objects, objects, actors and tiles (walls, doors). Mobile objects and actors collide with everything else, but the collisions have different behaviour depending on type. Mobile objects do not collide with each other, but actors do.

For shields, they have to collide with mobile objects, but probably not anything else. There is no current entity type that satisfies this, so shields must be in its own type. It could be a special type of object too, but note that object has some restrictions such as inability to move.

This raises the question of whether there could be other weapons that could fall under this category - some deflector bullets perhaps?

Then there's the question of exactly how to implement the shield entity. If it were a forcefield then we can have a static entity that is constantly created and destroyed, giving the illusion of moving with the player. Will this work for traditional-looking shields, or will it have to be a custom entity type that moves with the player?

@cxong
Copy link
Owner Author

cxong commented Aug 4, 2014

There's another option, for more of a "force field" feel. In Little Fighter, one of the characters has the ability to create a force field that reflects all energy shots. This is easier to implement, although it has custom collision logic - don't collide with teammates, collide (and hit) enemies, and reflect mobile objects (also changing its owner!)

@cxong
Copy link
Owner Author

cxong commented May 2, 2018

Need to implement #472 first

@cxong cxong added the blocked label May 2, 2018
@cxong cxong removed this from the Backlog milestone Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant