Hi Guys, This is our four article on " How to make a 2D Game in Android Studio Using Koltin ", also this is our last article on the 2d game in the android studio. In this article, we will draw obstacles on the surface of the screen, And we will draw the game over and scoreboard on the screen. If you did not read the previous article, then Click Here . Let move to the tutorial. Create A New Kotlin Class Create a new Kotlin class, Name it "ObstacleManager". Basically, we will handle the color, height, gap of the obstacles and also we will handle the player gap in the obstacles manager, and we will show the game over when the player hits the obstacles, also we will add score when player pass through the obstacles. We will mention an array list of obstacles to the obstacles manager. We will add the color handler in the obstacles manager. So, copy the below codes and it into your "ObstacleManager". 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1...
Coding Juction is a website for android programming. Here we are sharing some intersecting project of application, which we have developed in the android studio. Also, we share about earning tips from the application.