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
| Camera2D cam; | |
| Player player; | |
| ArrayList<PVector> backgroundItems = new ArrayList<PVector>(); | |
| void setup() { | |
| size(500, 500); | |
| cam = new Camera2D(0, 0); | |
| player = new Player(width/2, height/2); | |
| for (int i = 0; i < 100; i++) { | |
| backgroundItems.add(new PVector(random(-width, width*2), random(-height, height*2))); |
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
| // tested with the PWB-16205b | |
| // manual for the display: http://users.ece.utexas.edu/~valvano/Datasheets/LCDOptrex.pdf | |
| int _rs = 12; | |
| int _enable = 11; | |
| int _d4 = 2; | |
| int _d5 = 3; | |
| int _d6 = 4; | |
| int _d7 = 5; |
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
| var _ = require("lodash"); | |
| var harvestController = require("harvester"); | |
| var buildController = require("builder"); | |
| var guardController = require("guard"); | |
| var healerController = require("healer"); | |
| var spawnController = require("spawner"); | |
| var data = require("data"); | |
| // control creeps |
NewerOlder