If you want to browse the code of an already existing gale, heres mine: https://github.com/userse31/Mouse-Simulator-2D
Please don't go with javascript though. I've been programming in it since I was 9 or 10 and it still makes me want to pull my hair out sometimes. That language simply tries to keep running when it really should just error out and tell the programmer "Hey mate, what you did here? Its stupid!".
If you want to browse the code of an already existing gale, heres mine: https://github.com/userse31/Mouse-Simulator-2D
Please don't go with javascript though. I've been programming in it since I was 9 or 10 and it still makes me want to pull my hair out sometimes. That language simply tries to keep running when it really should just error out and tell the programmer "Hey mate, what you did here? Its stupid!".