# 2D Arkanoid in Unity

2D Arkanoid in Unity 5.5 2017.3.0f3 Play with Arkanoid Use key a and d to move left and right. Todo List  Add AI Player  Speed up for the ball. How to make this game: https://noobtuts.com/unity/arkanoid   Source Code: https://github.com/arkilis/Arkanoid

# How to Align Game Objects in Unity

Tool: Unity 5.5 2017.3.0f3. While using Unity, it is inevitable to have quite a amount of GameObjects in the scene. i.e. When designing an Arkanoid game, there are quite a lot blocks placed on the scene: However, it might be boring and tedious to manually align all the red blocks in one line with the

# 2D PingPong in Unity

Full window size: http://www.needone.app/projects/2d_pingpong/ 2D ping pong in Unity 5.5 2017.3.0f3 Play with Ping Pong Player 1 (left): use s and w to control player Player 2 (right): use arrow key ⬆︎ and ⬇︎ to control player Todo List  Add AI Player  Speed up for How to make this game: https://noobtuts.com/unity/2d-pong-game   Source Code: https://github.com/arkilis/2DPingPong

# Introduction on Numpy

Install numpy pip3 install numpy Some basic examples: import numpy as np # Create rank 1 array #[1,2,3] a = np.array([1, 2, 3]) # Create rank 2 array #[[ 1, 2, 3], # [ 4, 5, 6]] b = np.array([(1,2,3), (4,5,6)]) # matrix with diff data types b = np.array([(1,2,3), (4,5,"a")]) a and b are

Happy New Year! Hope everything becomes better in 2018! From the version 0.11.0, Flask began to support shell command. Something you probably you already saw when you are using other web project, such as Django: ./manage.py shell To achieve that, it is quite simple as it only needs two steps: 1. Set up the environment.

# How to place a location on Google Map

Here are few steps on how to add Google Map to your Kotlin/Android project, in this post, there are two things: Show marker on Google Map Get current location (Latitude & Longitude) Show marker on Google Map Step 1: Add dependencies in build.gradle: compile 'com.google.android.gms:play-services:11.6.2' Step 2: Set up Google Maps API Key in the

# Using Gradle 3.0 to create your debug APK from command line

With the new Gradle 3.0 coming out, I recently found out there is no apk file generated when running gradlew from command line. After investigating a little bit, one of the possible solution is in the build.gradle file under the app directory. [gist https://gist.github.com/arkilis/3be5a560ced55129bb024995dfccdbd4/]   Then in the root directory, run: ./gradlew assembleDebug The generated apk

# Why Kotlin doesn’t have static

As you may observe while programming with Kotlin (1.1.60), there is no static members or methods. Instead you can use the companion object to work it around. [gist https://gist.github.com/arkilis/e1ff8d09c630c88193c45f63a8e074e2/] The reason behind this is: https://discuss.kotlinlang.org/t/what-is-the-advantage-of-companion-object-vs-static-keyword/4034 Scala also replaces class level declarations with a ‘Singleton’ object. The main advantage of this is that everything is an

# How to use RxAndroid with kotlin

This article is more for iOS developers who wants to put their hands on the Android Development, or for those who just want to enter the Android development world. There are no hard points in the article. In the tutorial, you are about to know: Install how to install dependencies Know how to use RXAndroid

# iOS Unit Test Practise with OCMock 2/3

The idea behind Mock: Using a fake object to simulate target object, a method returned value/object. For example, there might be an amount of classes including models, viewControllers and etc. With regular unit tests, we need to instantiate the objects that we are going to tests. If the object have more than 5 properties, writing