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

Flat, Wall, and Roll Sprites v2 #30

Closed
wants to merge 6 commits into from
Closed

Flat, Wall, and Roll Sprites v2 #30

wants to merge 6 commits into from

Conversation

MajorCooke
Copy link
Contributor

  • Added Nash's, marrub's, and fgsfds's OpenGL sprite changes, and changed them per Randi's instructions.
  • FLATSPRITE: renamed from FLOORSPRITE as FLATSPRITE does not stick to the ground and can be on the ceiling.
  • Flat sprites also do not form to any curvature and are purely flat. True FLOORSPRITES are planned next.
  • WALLSPRITE: Flattens a sprite from its sides. Incorporates ROLLSPRITE.
  • ROLLSPRITE: Applies roll to the actor sprite.
  • PITCHFLATSPRITE: allows the sprite to rotate based on pitch, supports rolling.
  • Flat Angles can be set with A_SetFlatAngle. Use this to rotate to which degree the actor becomes flat against (so 90 will make the actor visible from the side and completely quashed from up front, etc.)

…nged them per Randi's instructions.

- FLATSPRITE: renamed from FLOORSPRITE as FLATSPRITE does not stick to the ground and can be on the ceiling.
- Flat sprites also do not form to any curvature and are purely flat. True FLOORSPRITES are planned next.
- WALLSPRITE: Flattens a sprite from its sides. Incorporates ROLLSPRITE.
- ROLLSPRITE: Applies roll to the actor sprite.
- Consider it to be a hybrid of FLATSPRITE and WALLSPRITE, but takes pitch into account.
- NOTE: The sprite still draws its angles respectively. To make it draw front and backside only, the sprites will need to be changed on the modder's end using either TEXTURES or adding their own which replaces the angle sprites with front sprites, for example.
- FlatAngle sets the angle which the sprite is flattened against. Example: using 90 will make the actor appear flattened from the sides.
- FlatAngle is supported by PITCHFLATSPRITE and WALLSPRITE only.
…E into account.

- Fixed a few issues where the sprite would rotate improperly, and made sure the other flags took ROLLSPRITE into account.
@MajorCooke
Copy link
Contributor Author

...nevermind, that did absolutely nothing.

@MajorCooke
Copy link
Contributor Author

Okay, fixing it for real now...

@MajorCooke MajorCooke closed this Jan 9, 2016
@MajorCooke MajorCooke deleted the FlatSpritesV2 branch January 9, 2016 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant