Very good
Psym4ntis
51
Posts
1
Topics
4
Followers
6
Following
A member registered Mar 05, 2019 · View creator page →
Creator of
Simple minimalist space shooter: submission for the Godot WildJam #31
Shooter
Play in browser
Recent community posts
Anti Gravity endless Runner jam comments · Replied to Rezioz in Anti Gravity endless Runner jam comments
Anti Gravity endless Runner jam comments · Replied to Beta in Anti Gravity endless Runner jam comments
Thanks for this long and lovely comment. =)
For the color changing in all levels, it's very simple. Every "sprite" is made of one or multiple polygon2D nodes. I have a global script which contains a palette array, so that each polygon2D sets its color when it's instanciated.
For the ground and ceiling spikes, they're also polygon2D to which i added a script. When the ground/ceiling is instanciated, the script adds a rigidbody2D node as a child and a polygonShape2D (a simply copy of the polygon2D coordinates). The advantage is that i'm able to directly modify the shape of the background and then the collision shape is auto generated.