This file contains hidden or 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
// Test program for LED matrix, Simple PONG game | |
// 8x8 Matrix is connected using a 74HC138 multiplexer | |
// on PIN 2,3 and 4 controlling the collumns | |
// The rows are controlled (sourced) by PIN 5-12 | |
// | |
// In a timer interrupt (timer2, 1kHz) the display routine is | |
// called, outputting the global imageMem buffer. | |
// | |
// one paddle (potentiometer) is connected to Analog input 0 | |
// autoplay can be defined for a static demo. |
This file contains hidden or 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
/* | |
Project name: | |
05 #kidSerie - Adafruit-IO Meets ESP8266, Arduino & MIT App Inventor 2 (Awesome Smart Phone App!) | |
Flavour IV | |
Hex File: _05_kidSerie_sketch_04.Adafruit_Forth_Try.ino | |
Revision History: | |
20161029: | |
- from github adafruit/Adafruit_MQTT_Library | |
https://github.com/adafruit/Adafruit_MQTT_Library/blob/master/examples/mqtt_esp8266/mqtt_esp8266.ino | |
https://learn.adafruit.com/mqtt-adafruit-io-and-you/intro-to-adafruit-mqtt |
This file contains hidden or 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
<!doctype html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<!--<script type="text/javascript" src="./jquery311.js"></script> --> | |
<script type="text/javascript" src="https://github.com/adafruit/io-issues/releases/download/mqttjs/mqtt.js"></script> | |
<!-- <script type="text/javascript" src="./mqtt.js"></script> --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> |
This file contains hidden or 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; | |
public class Crosshair : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
//hide the mouse cursor |
This file contains hidden or 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; | |
public class Soldier : MonoBehaviour { | |
private GameObject mEnemy; | |
// Use this for initialization | |
void Start () { | |
//Move to the left |
This file contains hidden or 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; | |
public class Soldier : MonoBehaviour { | |
private GameObject mEnemy; | |
public float RightTime = 1.0f; | |
public float ShootTime = 1.0f; |
This file contains hidden or 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; | |
public class EnemyController : MonoBehaviour { | |
public Soldier[] enemies; | |
// Use this for initialization | |
void Start () { | |
This file contains hidden or 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Soldier : MonoBehaviour { | |
private GameObject mEnemy; | |
This file contains hidden or 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; | |
public class EnemyController : MonoBehaviour { | |
public Soldier[] Enemies; | |
// Use this for initialization | |
void Start () { |
This file contains hidden or 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GameController : Singleton<GameController> | |
{ | |
protected GameController() { } // guarantee this will be always a singleton only - can't use the constructor! |