Here's an update for the Mega Man channel, as mentioned in the original PR :)
More enemies have been added (from MM3/MM4), plus color variations for the enemies who have them.
The code for the clouds has been extracted into a seperate file as helpers for scrolling parallax backgrounds. This allows backgrounds to be created by defining layers/rows and the sprites that can appear on each, with the spawning and moving of these components being automated. (It's fairly generic, so maybe it could even be reused for other channels that want to create scrolling backgrounds?)
Two new backgrounds, for MM3's Gemini Man stage and MM4's Cossack 4 stage. The original MM2 background has been updated with new items. The channel randomly picks one of the three when it starts. To give the backgrounds some more variety, I added one large component in each - instead of a single building or landmark farther away, these involve something like a seperate room to run through, with its own set of background sprites spawning during that part. I'm not 100% sure on the spawn frequency for these, maybe these should have a longer gap in-between or last longer? That can be easily adjusted though.
One small note on the code side - in src/types/global.d.ts, I defined a module to allow importing .json files, to make working with texture packed spritesheets a little more convenient. If that's a problem, I can just move them into .ts files, of course.
Description
Here's an update for the Mega Man channel, as mentioned in the original PR :)
One small note on the code side - in
src/types/global.d.ts
, I defined a module to allow importing.json
files, to make working with texture packed spritesheets a little more convenient. If that's a problem, I can just move them into.ts
files, of course.Checklist: