Skip to main content

Posts

Showing posts from October, 2018
 

How to make a 2D Game in Android Studio Using Koltin 003

How to make a 2D Game in Android Studio Using Koltin 003  Hi Guys, So, we have completed the "Game Loop" and we have successfully created a rectangle in our screen. Now in this article, we will describe our obstacles size, width, height, and the gap from where our player can pass. And In the next article, we will draw obstacles on the screen. If you have not read, previous articles yet, then click here . So, Let's get started with our tutorial. Create an Object Create an object and Name it "Constants" In the constants object, we will store the screen height, screen width, and the context, init time of the game. Copy below codes and paste it into your constants object. 1 2 3 4 5 6 7 object Constants { var SCREEN_WIDTH:Int = 0 var SCREEN_HEIGHT:Int = 0 var CURRENT_CONTEXT: Context? = null var INIT_TIME:Long = 0 } Now, describe the screen width and screen height in the main activity. Just copy the b

How to make a 2D Game in Android Studio Using Koltin 002

Hi Guys, In the previous article, we have learned how to develop the game loop in the android studio using Kotlin. So, In this article, we will learn how to draw characters on the surface. If you have not read the previous article yet, click here to read the previous article tutorial of " How to make a 2D Game in Android Studio Using Koltin 002 ". So, let get started with our tutorial. Create an Interface Now, create an Interface in the project. Left Click on the "com.example.user.game". Then, select "new" and after that, click on "Kotlin File/Class".  After that, Name it "GameObject" and In the kind section, select Interface and Click Ok. We are using interface in the project because when we add methods in the interface and implement the interface in the class, we want to add the same method in the class as an override method. In the next paragraph, I will explain it in more detail. Add two func

How to make a 2D Game in Android Studio Using Koltin

2D Game in Android Studio Using Koltin Hello guys, There are many games in the Play Store, which are developed by the much big company. If you want to develop, that type of games, then you surely move to Unity, which is a platform to developed 3D games. But if don't want to develop 3D games, then you can try android studio to develop 2D games. I completely agree that android studio is not for game development, but if you started with game development in the android studio, it will be very easy to develop an application in the android studio. In this tutorial post, we will learn " How to make a 2D Game in Android Studio Using Koltin ".We will use kotlin language for this tutorial. Our game will look like this after development: So, Let get started with the tutorial: Create a new project in Android Studio Create an empty project in the android studio. Name your application. Then select the Kotlin support. After that, select the API l

How to Create Calculator in Android Studio Using Kotlin

Hi Friends, calculator app is very easy to create in the android studio using Kotlin language as a language. In this article, I will write " How to Create Calculator in Android Studio Using Kotlin ".In this calculator app, I will design a beautiful user interface which you can publish in the play store. Generally, people only write about the logic of the app, but here I will write logic with an elegant user interface. So, let jump into the android studio. Let get started with calculator android app: Step 1: Create a new project in the android studio. Now, give the name of the application. Make sure you check the box of Kotlin support. Step 2: Select the API Level as per your wish. Select the Empty Activity in the project, And click next. Then, click finish and your project will be loaded. Now, for designing a beautiful User Interface. We will use Linear layout in our project. In the layout, there will be seven horizontal linear layouts. A

Top 5 Alternative of AdMob to Monetize Your Android App

Google's AdMob is a platform, where we can monetize our Mobile Application(Android and IOS). Google's Admob is definitely the large and most popular ad network for monetizing the android and IOS application. Also, it is very easy to integrate the AdMob ad into Android Studio. But sometimes due to invalid activity, the AdMob account is suspended, In that case, you can use a different ad network. Also if you want to try something new, you can use another ad networks. In this blog post, I have written other popular ad network for Mobile Application." Top 5 Alternative of AdMob to Monetize Your Android App ".There are many popular Ad Network, which pays well, also you can use this Ad network, for trial purposes. Here are Top 5 Alternative of AdMob to Monetize Your Android App: 1. Facebook Business Facebook is a very famous company. It generally popular for its social media products(Facebook, Whatsapp, Instagram). But nowadays Facebook is expanding there