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 | |
{ | |
import flash.display.*; | |
[SWF(width = "640", height = "480")] | |
public class Main extends Sprite | |
{ | |
public function Main () | |
{ | |
graphics.beginFill(0x000000); |
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
12 people next to 12 numbered doors. A sign saying that there is one and only one safe door to exit. | |
Talking to each of the people they will tell you: | |
1) The safe door is either 1, 2, 3 or 4 | |
2) All even numbers tell the truth | |
3) All multiples of 3 are liars | |
4) The safe door is either 4, 5, 6 or 7 | |
5) #4 is telling the truth | |
6) All odd numbers are lying |
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 | |
{ | |
import flash.display.*; | |
import flash.text.*; | |
import flash.events.*; | |
import flash.utils.getDefinitionByName; | |
[SWF(width = "640", height = "480")] | |
public class Preloader extends Sprite | |
{ |
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 | |
{ | |
import net.flashpunk.*; | |
import net.flashpunk.graphics.*; | |
import flash.net.*; | |
import flash.display.*; | |
[SWF(width = "800", height = "640", backgroundColor="#000000")] | |
public class Main extends Engine |
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
Annoyances with FlashPunk: | |
Mask code has nonintuitive data dependencies | |
-> can directly change origin/size even when mask set | |
-> hitbox is not a usable mask | |
Too many private variables: make more stuff public | |
/** private */ comments: unnecessary and often out of date | |
Entity.world gets unset immediately when removed |
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 | |
{ | |
import net.flashpunk.*; | |
import net.flashpunk.graphics.*; | |
import net.flashpunk.masks.*; | |
import flash.display.*; | |
[SWF(width = "640", height = "480", backgroundColor="#000000")] | |
public class Main extends Engine |
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
$array['value'] = 'Original'; | |
$reference = &$array['value']; | |
$array_copy = $array; | |
$array['value'] = 'Changed'; | |
$array_copy['value'] == 'Changed'; // =( |
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
On init: | |
var startOrientation:String = FP.stage.orientation; | |
if (startOrientation == StageOrientation.DEFAULT || startOrientation == StageOrientation.UPSIDE_DOWN) | |
{ | |
FP.stage.setOrientation(StageOrientation.ROTATED_RIGHT); | |
} | |
else | |
{ |
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 | |
{ | |
import flash.display.*; | |
import flash.events.*; | |
import flash.text.*; | |
import flash.ui.*; | |
public class CopyPaste | |
{ | |
/** |
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
#!/bin/sh | |
function getinput { | |
echo continue | |
cat | |
} | |
SWF="$1" | |
getinput | fdb "$SWF" |
OlderNewer