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.