games50 / zelda

Lecture examples for Lecture 5: Legend of Zelda
35 stars 42 forks source link

fix: load images after default filter is set #4

Closed shvl closed 6 months ago

shvl commented 2 years ago

Problem

All images are blurry because dependencies were read before the default filter set

Solution

Wrap dependencies in a function and call it after setDefaultFilter

image image