Skip to content

Instantly share code, notes, and snippets.

@foobraco
foobraco / README.md
Last active January 29, 2019 19:24
SCRIPT-8
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
using System.Linq;
using System.Text;
using System.Reflection;
/*
Temp/
Library/
obj/
*.svd
!Library/*.asset
!Library/AssetImportState
!Library/AssetVersioning.db
!Library/BuildPlayer.prefs
!Library/ScriptMapper

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@foobraco
foobraco / AndroidVibrator.java
Created March 31, 2013 02:07
How to create an Android interface for the vibrator in PlayN
import android.os.Vibrator;
public class AndroidVibrator implements MyGame.Vibrator_interface {
public Vibrator vib;
@Override
public void callvibrator(long miliduration){
vib.vibrate(miliduration);
}

Our First Android Game

We entered the last Github Game Off last November, we did this game (wich right now is not as updated as the android one, but it will be soon)

Play it here

Unfortunately we didn't win anything, and it's ok, there were a lot of good games in the competition so we were satisfied with the results. But a good thing came from the compo, our game.

@foobraco
foobraco / MyGame.java
Created June 25, 2012 16:00
How to create platform specific interfaces in PlayN
public static interface myInterface {
void closeapp();
void callvibrator(long miliduration);
}
public final myInterface myinterface;
public Dig(myInterface myinterface) {
this.myinterface = myinterface;
}
@foobraco
foobraco / CLI
Last active October 6, 2015 11:08
android code for getting ads to work in playn
mvn install:install-file \
-DgroupId=com.yourname.jgoodies \
-DartifactId=jgoodies-forms \
-Dversion=1.50 \
-Dfile=/path/to/jgoodies-1.50.jar \
-Dpackaging=jar \
-Durl=file://path/to/your/local/repository
@foobraco
foobraco / deploy error
Created March 13, 2012 00:08
deploy error
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error:
error: There was an error while attempting to start your application.
error: Error spawning drone
error: Script prematurely exited
error:
error: This type of error is usually a user error.
error: Error output from your application:
error: