https://pastebin.pl/view/2f36f5ca
question I need to explain this errors while trying to fix it but I can't and I'm so tired I've been trying to fix this for 7 hours. 1 - expression '' has no type (or is ambiguous) 2 - undeclared field: 'y' 3 - type mismatch
question 2 - Expression: += astro.speed [1] : [2] astro.speed: Expected one of (first mismatch at [position]): [1] proc +=T: SomeInteger [1] proc +=T: float | float32 | float64 [1] template +=T: Vector2 | Vector3 | Quaternion | Matrix [1] template +=T: Vector2 | Vector3 | Quaternion
question 3 - expression 'astro' has no type (or is ambiguous) thamls good people i search in google what this erros mean but still i can't fix i change but i don't know i search my problems but still i can't fix and i comes here i start learn nim today
I already posted this in discord but I'll post this here as well:
Please regard the advise you've already been given when you asked said question in discord. I pointed 5 things out to you here: https://discord.com/channels/371759389889003530/371759389889003532/1167734614551441509
I'm also generally highly recommending familiarizing yourself a bit with the language basics first. E.g. the difference between ints and floats, or how to instantiate an object. The latter in particular is causing you problems because var astroObject = AstroObject(astro_texture, astro_x, astro_y, astroSpeed) is not valid nim syntax to instantiate objects.
You wouldn't expect Java, C++ or Rust code to work immediately like that without first learning a bit of the language and what things mean, how to interact with the type system. The same is true for nim.