Home page

Tags

Latest Posts

All

Mount Partition On Startup

To automatically mount a partition on startup we need to add a line to the fstab file. But first we need the UUID of the partition.

To view all the block devices use the lsblk command:

Differentiate Tile Collisions

I always use the signal body_entered to detect collisions. This signal has a parameter with the body of the collision. But here’s the problem: if it collides with the shape of a tile it will always return the TileMap object, independently of which tile we collide with.

In my case I wanted to detect the house where the villager is, so his projectiles don’t collide with it but can still collide with other tiles like trees:

Projectile colliding with house tile

Games I worked on

up arrow