A.I, Data and Software Engineering



woman working at home using her laptop

In this post, we will discuss why it is important to override equals and hashCode method in Java/Kotlin. Item 9 in Josh Bloch’s Effective Java suggests always override hashCode() method if the class overrides equals(). In this post, we will discuss why this is necessary and good practice.  We know that two objects are considered equal only if their references point...

Tutorial: Multi-touch gesture for android


Multi-touch gestures are very useful in many common scenarios, such as zooming, panning. For game development, handling multi-touch is essential. This post will give a quick guide for handling multi-touch points. Project structure We create a new project name MultiTouch with Java and add a new class named GameScene as a subclass of android.view.View. The basic GameScene class is as follows. 12345...

Ping the pong redev video tutorial

Ping pong game

Following up the article “RE-DEV THE FIRST VIDEO GAME PONG WITH SURFACEVIEW AND GAMELOOP”, here is the video tutorial for another version of the Ping game. What is new? Improve the GUIBetter collision handling Challenges The source code for the project is not fully provided but you can always get the code from the video. So want to release your first game on Play/App Store? Watch the...

re-dev the first video game pong with SurfaceView and gameloop

Ping pong game

Pong game (prototype) In this article, we recreate the two-player game Pong – the first arcade video game 1972 – for Android using Kotlin. We will implement the game SurfaceView, game loop design pattern, and code optimization for better performance. Game loop Game loop is a common design pattern in game development. It is already integrated into different game engines. Nevertheless...

Create a simple YET most addictive apps/games

addictive app meme

With simple implementation, no user can escape from this addictive app! They will cry desperately for help! Let do it! The UI Do not spend much time on this. As said, make it as simple as possible. You can use any text, images, for the activity. An activity with only one image! TRICK #01: Disable the back button To let users stick to your app, the first trick is, of course, is… to block...

A.I, Data and Software Engineering

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.