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

YAMS: Flightlight/Blindfold update #98

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

JeffGainsNGames
Copy link
Contributor

  • Added: Blindfold to darken rooms

Tested with both flashlights and blindfolds at various lightlevels (0, 1, 2 ,3, 4) and they adjust properly.

  • TODO: still need better flashlight sprites

- Added: Blindfold to darken rooms
- TODO: better flashlight sprites
@codecov
Copy link

codecov bot commented Oct 7, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (a1fdb26) 100.00% compared to head (3d71c1b) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #98   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           30        30           
=========================================
  Hits            30        30           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +365 to +378
new UndertaleSprite.TextureEntry() {Texture = gmData.TexturePageItems[nameToPageItemDict["sItemFlashlight_1"]] },
new UndertaleSprite.TextureEntry() {Texture = gmData.TexturePageItems[nameToPageItemDict["sItemFlashlight_2"]] },
new UndertaleSprite.TextureEntry() {Texture = gmData.TexturePageItems[nameToPageItemDict["sItemFlashlight_1"]] },
}
});
gmData.Sprites.Add(new UndertaleSprite()
{
Name = gmData.Strings.MakeString("sItemBlindfold"), Height = 16, Width = 16, MarginRight = 15, MarginBottom = 15, OriginX = 0, OriginY = 16,
Textures =
{
new UndertaleSprite.TextureEntry() {Texture = gmData.TexturePageItems[nameToPageItemDict["sItemBlindfold_1"]] },
new UndertaleSprite.TextureEntry() {Texture = gmData.TexturePageItems[nameToPageItemDict["sItemBlindfold_2"]] },
new UndertaleSprite.TextureEntry() {Texture = gmData.TexturePageItems[nameToPageItemDict["sItemBlindfold_3"]] },
new UndertaleSprite.TextureEntry() {Texture = gmData.TexturePageItems[nameToPageItemDict["sItemBlindfold_2"]] },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably fine for now. I was thinking in the future of refactoring sprite adding to just "import everyting in order by sprite name that exists" (so thatt i..e i can just add a new frame without needing to modify code) in which case this would break.

YAMS-LIB/Program.cs Outdated Show resolved Hide resolved
@JeffGainsNGames JeffGainsNGames requested a review from Miepee October 9, 2023 21:39
YAMS-LIB/Program.cs Outdated Show resolved Hide resolved
YAMS-LIB/Program.cs Outdated Show resolved Hide resolved
@Miepee Miepee merged commit 170a6e8 into randovania:main Oct 10, 2023
4 checks passed
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