root / processing / blacklight / blacklight.pde @ 19
Histórico | Ver | Anotar | Download (1,03 KB)
| 1 |
/* |
|---|---|
| 2 |
BLACKLIGHT v1.0 |
| 3 |
Project made for Mestrado de Comunicação Multimédia, Ramo Multimédia Interactivo at Departamento de Comunicação e Arte at Universidade de Aveiro. |
| 4 |
|
| 5 |
Author: Nuno Simaria - nsimaria@ua.pt - #23652 |
| 6 |
Other workgroup members: Ana Filipa Lacerda, Daniela Rei, Renato Costa, Julien Cuenin |
| 7 |
*/ |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
import krister.Ess.*; |
| 13 |
import fullscreen.*; |
| 14 |
import processing.opengl.*; |
| 15 |
|
| 16 |
|
| 17 |
Game _game_; |
| 18 |
PApplet _root_; |
| 19 |
SoftFullScreen _fs_; |
| 20 |
PFont _bold_; |
| 21 |
PFont _regular_; |
| 22 |
Detector _detector_ = null; |
| 23 |
|
| 24 |
void setup () |
| 25 |
{
|
| 26 |
size (1024, 768, OPENGL); |
| 27 |
|
| 28 |
_root_ = this; |
| 29 |
|
| 30 |
// smooth (); |
| 31 |
// frameRate (30); |
| 32 |
|
| 33 |
println ("the beat starts here.");
|
| 34 |
_fs_ = new SoftFullScreen (this); |
| 35 |
_fs_.enter (); |
| 36 |
|
| 37 |
Ess.start (this); |
| 38 |
_bold_ = loadFont ("Code-Bold-48.vlw");
|
| 39 |
_regular_ = loadFont ("Code-Light-48.vlw");
|
| 40 |
|
| 41 |
_detector_ = new Detector (); |
| 42 |
_detector_.setup (); |
| 43 |
|
| 44 |
_game_ = new Game (); |
| 45 |
_game_.setup (); |
| 46 |
|
| 47 |
|
| 48 |
//Ess.start (_root_); |
| 49 |
//AudioChannel ost = new AudioChannel ("ost.mp3");
|
| 50 |
// ost.play (); |
| 51 |
|
| 52 |
} |
| 53 |
|
| 54 |
void draw () |
| 55 |
{
|
| 56 |
_game_.draw (); |
| 57 |
} |