[Extension] arcade-drawing-utils

Hey folks!

Time for another extension inspired by the Zelda-like game we’ve been working on for stream. I present: riknoll/arcade-drawing-utils

This extension has some notable improvements over the base drawing blocks in the image category:

  • All x/y coordinates in the drawing functions are represented by points rather than two numbers. You can also use sprites or tilemap locations wherever a point is accepted
  • All of the target image shadow blocks are replaced with the screen by default
  • The fill and outline blocks are combined with a dropdown to switch between
  • Adds circles, triangles, and four sided polygons
  • Adds a block for drawing a thick line in addition to the usual 1-pixel wide lines
  • Adds a block for copying part of an image to another image
  • Adds a block for drawing tilemaps to the screen (great for games with multiple tilemaps)

In addition to drawing, there are some other new transform blocks for some nifty image effects:

  • Lots of blocks for swapping colors in images
  • A new block for scrolling images by an x/y value
  • A block for rotating images in 90 degree increments

Finally, this extension also provides lots of way for you to make custom render functions that draw to the screen:

  • Render on z (just like the similar block in jwunderl/arcade-sprite-utils)
  • A dockable version of render on z that you can place inside a function
  • Renderables that can be assigned to variables and destroyed (great for drawing temporary things like effects or menus)
  • Blocks for rendering above/below individual sprites. Great for applying effects to sprites like flashing when taking damage or for making sprites that are drawn entirely using shapes
  • A loop that loops over all of the tilemap locations that are currently visible on screen (great for Animating tiles in tilemaps)

Examples

11 Likes

This has been such a fun series to watch! I’m looking forward to watching live on Friday! I have Fridays off now, so I’m hoping to catch y’all every week. I missed last week because I got distracted. :laughing:

5 Likes

its crazy how many extensions you’ve been releasing and just when im getting rlly busy lol

4 Likes

hehe i’ve got a bunch more that i haven’t even posted yet

5 Likes

I love all these extensions you bring out/everyone else who does, but my brain kind of just breaks in two when I try to understand any of them :sweat_smile:

2 Likes

But it’s not compatible w/ sprite utils :(((

1 Like

@BlueYoshi507 it totally is, not sure what you’re referring to

1 Like

wasent there already a extension for animation tiles?

also Im a little confused why cant I just animate the player the tiles kinda make sense and the shapes why can I just again animate the sprites

do whatever you’re comfortable with! there are lots of ways to do similar things. this extension gives you a lot more flexibility in how you draw things, but i’d also say it’s at the expense of being much more complicated/advanced

1 Like

maybe they mean like could be combined all in one