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

Implements drugs powerup #302

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Implements drugs powerup #302

merged 2 commits into from
Apr 18, 2023

Conversation

dethrace-labs
Copy link
Owner

@dethrace-labs dethrace-labs commented Apr 16, 2023

The "Drugs!" powerup is implemented in two different parts

  • TheEffectsOfDrugs function which runs every frame that shuffles palette colors around (already done)
  • DoDrugWobbleCamera function which manipulates the camera matrix to make the 3d scene 'wobble'

Interestingly, TheEffectsOfDrugs only changes the first 224 palette entries, both in DOS and Windows releases. This is why in snowy maps, the ground (being mostly white, palette index 255) is unaffected.

Screenshot 2023-04-17 at 10 06 19 am

@dethrace-labs dethrace-labs merged commit d4fb640 into main Apr 18, 2023
@dethrace-labs dethrace-labs deleted the drug_camera branch April 18, 2023 06:23
@madebr
Copy link
Collaborator

madebr commented Apr 18, 2023

I submitted this pr to https://www.dea.gov/submit-tip 🤣

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.

2 participants