while ( true ) { } - blog

By albertopasca.it | Travel notes… maybe useful. A collection of development article from whiletrue blog.

Viruz :: the game

A computer virus history game, from 1971 to 2016.<p>Collect all <i>power-ups</i>, get all <i>hearts</i> to completely clean the level (virus) entering in the <b>portal</b> …

Swift3 or node.Js?

I’m a full-stack developer, so I build my iOS applications in Swift and backends in Node.js… why not use Swift for both platforms (iOS and …

JavaScript

MEMORYze | game

A minimalistic but very complicated memory game.<p>Have you a strong memory? Try…<p><b>World A</b>: the easiest! There is also an hint sign to help you. <b><br>World B</b>: …

iOS

Pokemon Go – Catch world wide pokemon from your desk!

Hi guys!<p>Today i’ve discovered a <i>simple and funny</i> way to catch all <b>Pokemon</b> around the world simply stay sit in front of your pc!<p>How to?<p>I’m using a <i>Mac</i> …

Pokémon

Unity3D – Duck Hunt clone

A one shot “clone” of NES Duck Hunt made in Unity3D. Is not properly a clone… because is only a one-shot duck and restart.<p>GAMEPLAY<p>THIS GIF IS SLOW… …

Game Development

Unity3D – Sprite Animations

Well, starting with new tutorials! <b>Unity3D</b> and <b>C#</b> development.<p>Today we learn an intelligent way to animate a character based on the <i>input Axis</i></i> …

Web Development

Unity3D – PaskyRun

First “Hello World” project just to learn Unity3D basics.<p>A very ugly clone of GravityGuy for iOS, maded in <i>Unity3D</i> using <b>C#</b>. Just to learn something …

Game Development

Swift Koan – Unit Test

A framework and lessons to <b>learn Swift syntax</b> and idioms in a logical sequence.<p>Original github project here: https://github.com/elpsk/Swift-Koan. Stay …

Programming

Swift – ipTV for iOS/Mac

Simple IPTV streaming app for <b>iOS</b> (universal target) and <b>Mac OSX</b>.<p>Based on a googled (non pay-tv) italian channel list.<p>iOS<p>Channel list<p>Live …

OS X

nodeJS – Turn-Based example

<b>Sample demo using nodeJS / socket.io</b><p>How it works?<p>There is a list of customizable players. <b><br>Select one</b> and wait for others player…<br>• Other users see <b>live</b> …

JavaScript

Swift – Mac OSX screen saver

Mac OSx Screen Saver, created using the source file of itself! :)<p>What are the letters?<p>Letters are the <i>source code</i> of the Screen Saver project …

Programming

Swift – Milan Metro app

<b>Complete navigable sample app.</b><p>Universal target (iPhone/iPad)<br>• Apple Watch (watchOS 2)<br>• Apple TV (tvOS)<br>• Swift 2.0<br>• Autolayout<p>Made up for <b>Coursera</b> …

Apps

Swift – Instagram like app

InstaSwift<p><b>Instagram like app</b>.<p>Universal target (iPhone/iPad)<br>• Swift 2.0<br>• Autolayout<p>Made up for <b>Coursera</b> exam<p>Instructions<p>Refer to the full instructions in …

Programming

[ObjC] UIButton with rounded corners (IBInspectable)

APRoundedButton is a simple XIB/Storyboard extension to make rounded custom buttons, without writing one line of code, now using IBInspectable. What …

Programming

[ObjC] – Change App language

Hi all, today a simple trick to change the app language, without change phone language. Add a Settings bundle in your project Now, open your settings …

Programming

[ObjC] – Write console log to file… and send for email

I’ve prepared a simple class that write logs on device disk. This is very useful, because you can send and receive logs from apps, crashlog, …

Programming

[ObjC] – Get device color

A simple trick, using private API to get the device COVER color! You cannot use this in App Store, but you can play with private API: 1234567NSBundle …

Programming

[ObjectiveC] – Change controller on application background

Yes, you can! Now you are able to change the snapshot of your app while is in background! An example here: How to? Make a new project, and in your …

Programming

[Objective-C] – Fingerprint authentication

A simple tutorial that how to use Apple fingerprint authentication in your iOS8 apps on iPhone 5S and plus. What you need: iOS 8.0+ iPhone 5S or …

Programming

ObjC – User defined runtime attributes

User defined runtime attributes are the hidden gem of Xcode’s Interface Builder. Available since Xcode 4 and iOS 5, they provide the ability to …

Programming

[Xcode] – Introduction to Auto Layout

Editor’s note: If you’ve downloaded the Xcode 6 beta and played around with it, one thing you may notice is the change of Interface Builder. The …

Programming

Sniffing mobile device traffic

Today, i want to introduce SquidMan (more info here), a simple Mac OSx sniffer. SquidMan is a network proxy, that redirect traffic from your mobile …

Programming

[Android] – Button with rounded corners

Based on the last post, for iOS “UIButton with rounded corners“, now the Android version. It’s just a simple shape file (xml). In your res project …

Programming

[PHP] – Debug using Netbeans and XDebug

Just a simple memo. Open php.ini and paste these lines at the end of file: 12345678910[xdebug] xdebug.default_enable=1 xdebug.remote_enable=on …

Programming

[ObjC] – iCloud class helper

A simple iCloud file managment system, to read / write / load files across devices. What you need: A valid Provisioning Profile ( with iCloud access …

Programming

[ObjC] – UIButton with rounded corners

APRoundedButton is a simple XIB/Storyboard extension to make rounded custom buttons, without writing one line of code! Requirements ARC iOS 7+ Xcode …

Programming

Blu Hackathon – Metropolitana Milanese

Metropolitana Milanese lancia il Blu Hackathon, un contest per la creazione di un’App per smartphone sull’acqua di Milano, liberamente ispirata a …

ObjC – Tesla speech for OSX

Today, a simple osx tool to use Google Translate speech on your mac!<p>How it works?<p>It’s a cocoa application, that support as minimum osx version, …

Google Translate

How to make Flappy Bird like game using UIKit

As explained in the last post, ( How to make Flappy Bird like game using Cocos2D ) today, we learn how to make a Flappy Bird game using Objectivec …

Game Development