load jpg/png, cut into squares

w7xw7x Posts: 3Member

Beginner here, drowning in the vast API. Can someone please kick me into the right direction for starters?

To learn Godot, I plan to make a little 4x4 slide puzzle game with tiles made from an image: load a square PNG, then chop this up into 4x4=16 parts that can be positioned and moved in a 2D scene.

Ideally each part can be manipulated: increase brightness along the right and top edge, add shade left and bottom for a simple 3D tile effect. I assume this can be done with anything derived from CanvasItem, but how do I get the parts of one image in the first place?

Comments

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file