fragcolor-xyz / shards-examples

Tutorials and examples with shards
https://learn.fragcolor.xyz
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Inconsistency in assigned values in glod-game tutorial code #63

Open Yttruire opened 1 year ago

Yttruire commented 1 year ago

Issue 1: In step 4, the value of 310.0 is assigned at first, making the character appear in the middle of the game. A "floor", or boundary is later set at the bottom of the screen so that the character does not fall off the screen. This results in the character starting at the middle of the screen on an invisible platform, jumping, then landing at the bottom of the screen which is a bit odd. In step 5.4, this value is silently changed to 620.0. This value can just be 620.0 from the start

image

Issue 2: Values 50 and 5 are used for the damage limits.

image

They are then subsequently overwritten in the later part of the code to use a margin of 120 and 15.

image