Skip to content

engine elements

joseph edited this page May 25, 2024 · 1 revision

Engine Elements

There is a folder called elements in the android folder, which holds our main elements used on the main screen, including SmallBall, MainCircle, and AndroidLine. These classes are for maintaining separation of concerns in the application.

AndroidLine

This class takes the starting and ending points of the line and draws it using canvas.

SmallBall

This class takes 4 points to draw a circle. It also has other functionalities as well. For instance, this class is responsible for making a pop sound whenever needed. The user has access to the SmallBall class when each job runs.

MainCircle

Similar to the SmallBall, this class takes 4 points and draws the MainCircle on the GameView.

Clone this wiki locally