DEV Community

Dustin Runnells
Dustin Runnells

Posted on • Edited on

Parallax Backgrounds

Not a huge update this week, but I did get parallax backgrounds working and fixed some navigation weirdness:

Image description

I did run into a problem that I'm concerned will come back to bite me a lot in the remainder of this project - The parallax background was very smooth when I tested with some preloaded images for the layers. But once I import the layers from my levels zip file, things start to get a little jerky. Looking deeper, I have issues with all of my imported images that would be solved with preloads at compile time, including sprites with sharp edges because fix_alpha_edges() doesn't happen outside of preloads(?). BUT I can't preload if these images are coming from images loaded from a zip file at runtime.

Before jumping into a bunch of level creation, I want to add a couple more abilities and sprite animations along with squashing a few bugs:

  • Stairs are not working very good with just physics guiding the students. Maybe I can set a path for the sprites to follow and disable any kind of ability selection while on the stairs.
  • Sprite edges are too rough for imported images.
  • Parallax background layers are jerky.
  • Normalmaps appear to be inverted (raised areas are embossed).
  • Doors need animation and texture

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay