How to use graphics 2d in kotlin with paint()

I want to start making a 2d video game, and I found a tutorial in java. However I wanted to use kotlin because I heard it is better, I am new to java and kotlin programming and I needed to put this Graphics2d g2 = Graphics2D(g) In kotlin, I didn’t find anyway by searching. If… Read More How to use graphics 2d in kotlin with paint()