11 hours ago · Tech · 0 comments

This morning I’m going to put a Camera2D into my dungeon and see if I can figure out how to zoom and pan and such. I am hopeful but also expect confusion. I read a bit about the Camera2D, but feel the need for more explanation than I was able to find. There might be something in the Arcade Discord, but to me, finding anything in a Discord is like trying to find that Vivaldi thing with the flutes. As the clerk at the record store told me: “Vivaldi is a jungle”. My idea here is pretty weak. Clearly in an actual game, we’ll want a large view of a small area of the dungeon, where you are, and perhaps a small view of the whole dungeon, showing a mini-map of where you’ve been. My fantasy is that we could just have two differently-zoomed views of the same structure. The zoomed-in one would scroll as we move, must like the side-scroller we looked at yesterday. Seems easy enough in theory. Let’s get started. Installing the Camera I think we “just” need an instance variable holding a Camera2D,…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.