This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const position = getRelativePositionToParcel(parcel, worldPosition); | |
console.log('relativePosition', position); | |
if (parcel && !isOverlap(parcel, position)) { | |
} | |
function getRelativePositionToParcel({ bounds }, pxPosition) { | |
// Return position top_left position in InstallationGrid | |
return { | |
x: (pxPosition.x - bounds.x) / GOTCHI, | |
y: (pxPosition.y - bounds.y) / GOTCHI, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create () | |
{ | |
var polygon = new Phaser.Geom.Polygon([ | |
400, 100, | |
200, 278, | |
340, 430, | |
650, 80 | |
]); | |
var graphics = this.add.graphics({ x: 0, y: 0 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generateTerrain(graphics, mountainStart) { | |
// array to store slope points | |
let slopePoints = []; | |
let slopesCount = 0; | |
let slopeStart = new Phaser.Math.Vector2(0, mountainStart.y); | |
let slopeLength = Phaser.Math.Between( | |
this.terrainConfig.slopeLength[0], | |
this.terrainConfig.slopeLength[1] | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in a terminal | |
# python -m pip install --user opencv-contrib-python numpy scipy matplotlib ipython jupyter pandas sympy nose | |
import cv2 | |
import pandas as pd | |
import numpy as np | |
import imutils | |
from scipy.spatial import distance as dist | |
from imutils import perspective |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.b2mgames.BoomSwipe.huawei" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal"> | |
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" /> | |
<application android:theme="@style/UnityThemeSelector" android:icon="@mipmap/app_icon" android:label="@string/app_name" android:isGame="true" android:roundIcon="@mipmap/app_icon_round"> | |
<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:screenOrientation="sensorPortrait" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:hardwareAccelerated="false"> | |
<intent-filter> | |
<action and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-feature android:glEsVersion="0x00020000" /> | |
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/> | |
<uses-permission android:name="com.huawei.appmarket.service.commondata.permission.GET_COMMON_DATA"/> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.VIBRATE" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta-data | |
android:name="com.huawei.hms.client.appid" | |
android:value="appid=100623175"> | |
</meta-data> | |
<meta-data | |
android:name="com.huawei.hms.client.cpid" | |
android:value="cpid=890060200000000049"> | |
</meta-data> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
This Google Mobile Ads plugin library manifest will get merged with your | |
application's manifest, adding the necessary activity and permissions | |
required for displaying ads. | |
--> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.google.unity.ads" | |
android:versionName="1.0" | |
android:versionCode="1"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using HuaweiMobileService; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class ProductPayImpl : IProductPayHandler { | |
//public Text debugTest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using HuaweiMobileService; | |
class CheckUpdateCallbackImpl: ICheckUpdateHandler { | |
public void OnResult(int resultCode) | |
{ | |
Debug.Log("Likhon------------**********----------- result for checkupdate: " + resultCode); |