This file contains 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
package service; | |
import service.Node; | |
class Engine { | |
public var map:Array<Array<Node>>; | |
public var startNode(default, set_startNode):Node; | |
public var endNode(default, set_endNode):Node; | |
public function new(){ | |
this.map = new Array(); |
This file contains 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
package service; | |
class Node { | |
public var x:Int; | |
public var y:Int; | |
public var cost:Int; | |
public var type(default, set_type):Type; | |
public var parent:Node; | |
public var direction:Int; | |
public var open:Bool; | |
public var close:Bool; |
This file contains 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
``` | |
// Save | |
Upon Pressing Enter | |
+IsSaving == 0 | |
--> (Text) Set Focus On | |
--> (Text) Set selection to 99999... | |
// Unsave | |
Upon Pressing Enter | |
+IsSaving == 1 |
This file contains 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
What Is Product-Market Fit? 3 | |
The Product-Market Fit Pyramid 4 | |
Quicken: from #47 to #1 7 | |
The Lean Product Process 8 | |
Chapter 2 Problem Space versus Solution Space 13 | |
The Space Pen 13 | |
Problems Define Markets 15 | |
The What and the How 16 | |
Outside-In Product Development 16 | |
Should You Listen to Customers? 17 |
This file contains 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
When you start a game, you get a small base in the middle of a cavern. You have one worker and low visibility. | |
Surrounding your base, about 5 tiles away, are walls all around you. | |
############### # = Rock Wall, able to be mined | |
#### ########## B = Base | |
## ## #### M = Miner | |
# # | |
## B M ## | |
### # ## | |
##### ######### |
This file contains 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
package util; | |
typedef EasingFunction = Float->Float->Float->Float->Float->Float; | |
class Easing | |
{ | |
// simple linear tweening - no easing:Float, no acceleration | |
public static function linear(time:Float, startValue:Float, changeInValue:Float, duration:Float, ?o:Float): Float | |
{ | |
return changeInValue * time / duration + startValue; |
This file contains 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
class Worker { | |
public var miningExperience:Float = 0; | |
public var walkingExperience:Float = 0; | |
public var carryExperience:Float = 0; | |
public var attackExperience:Float = 0; | |
public function new() {} | |
/** A worker is likely to accept any task that surpasses its threshold. | |
* A skilled miner will thus have a very low mining threshold **/ |
This file contains 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
"Balin", | |
"Bashful", | |
"Bifur", | |
"Bob", | |
"Bofur", | |
"Bombur", | |
"Doc", | |
"Dopey", | |
"Dori", | |
"Durin", |
This file contains 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
// Triggered on click | |
public function showNotifications() { | |
var options = new DialogOptions(); | |
options.title = "Notifications"; | |
var dialog = ComponentMacros.buildComponent("assets/ui/events.xml"); | |
dialog.height = 400; | |
var tabView = dialog.findComponent("tabview", null, null, "css"); | |
var eventTab:ScrollView = new ScrollView(); |
This file contains 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
{ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "WebInspector", | |
"version": "537.36" | |
}, | |
"pages": [ | |
{ | |
"startedDateTime": "2018-07-28T03:01:09.144Z", |
OlderNewer