Skip to content

Instantly share code, notes, and snippets.

View chitimalli's full-sized avatar
🎯
ApplyingFUN

Amar chitimalli

🎯
ApplyingFUN
View GitHub Profile
@chitimalli
chitimalli / DBMgr.cs
Last active July 9, 2018 05:18
This is one of the core classes in SmashWars that controls player movement in the game.
using UnityEngine;
using System.Collections;
using System.Linq;
using System.Collections.Generic;
using CodeStage.AntiCheat.ObscuredTypes;
public class DBMgr : MonoBehaviour
{
@mmdumi
mmdumi / EncodePolyline
Created November 2, 2012 09:09
Encode polyline. Google Maps API v3 algorithm. Objective c.
+ (NSString *)encodeStringWithCoordinates:(NSArray *)coordinates
{
NSMutableString *encodedString = [NSMutableString string];
int val = 0;
int value = 0;
CLLocationCoordinate2D prevCoordinate = CLLocationCoordinate2DMake(0, 0);
for (NSValue *coordinateValue in coordinates) {
CLLocationCoordinate2D coordinate = [coordinateValue MKCoordinateValue];