Skip to content
Advertisement

Tag: spawn

How to spawn sprites from multiple sides?

I´m creating simple game where I play as aeroplane and i´m dodging rockets (rockets appear from right side), I did something like barrier which block enemies and kill them, but it´s too OP, so I want to nerf it, so I´m going to spawn enemies from both, right side, and top side. But I really don´t know how to spawn

When spawn processes, Does Lock have different id?

I’m trying to figure out how Lock works under the hood. I run this code on MacOS which using “spawn” as default method to start new process. Output: The Lock works in my code. However, the ids of lock make me confused. Since idare different, are they still same one lock or there are multiple locks and they somehow communicate

Advertisement