Karto
Karto
CC#
Created by Karto on 10/20/2024 in #help
Need pointers on code for console app.
I've been using c# inside of game engines for a while now, and I've just written some code for a simple console app for the first time for practice. Code: https://paste.myst.rs/4j1fa1ss I'm unsure about how good/bad this code is, the lack of an 'update loop' found in a typical game engine is throwing me off. My main concern is about the while loops when waiting for the player to make a valid input, is this standard practice? I'm also finding that the execution is a bit hard to follow along my function calls, especially when thrown in with all the while loops. The calls are just nested and following the exection from Start() -> InspectPokemon() -> RequestPokemon() and back out feels wrong/difficult to follow Any advice would be great, thanks.
44 replies
CC#
Created by Karto on 6/14/2023 in #help
❔ How does the main method work?
I've only ever used c# in unity, so i've never worked outside the context of making games, so using the main method is very new to me. Since the main method needs to be static anything i use in it requires being static. How do you navigate around this?
11 replies