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 punk.transition.effects | |
{ | |
import flash.utils.getTimer; | |
import net.flashpunk.Entity; | |
import net.flashpunk.FP; | |
import net.flashpunk.Tween; | |
public class Effect extends Entity | |
{ | |
protected static var _autoStart:Boolean = false; |
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 punk.transition.effects | |
{ | |
import net.flashpunk.FP; | |
import net.flashpunk.graphics.Image; | |
/** | |
* Fade effect class. | |
* | |
* @author azrafe7 | |
*/ |
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
/* | |
The MIT License | |
Copyright (c) <year> <copyright holders> | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
// Slightly modified code from http://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx | |
// Ma non capisco perché non mi termina dopo aver stampato l'output | |
// E comunque popen continua a non funzionarmi (CodeBlocks with MinGW - gcc 4.7.2) | |
#include <windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
//#include <strsafe.h> |
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.Entity; | |
import net.flashpunk.FP; | |
import punk.fx.effects.BloomFX; | |
import punk.fx.effects.GlitchFX; | |
import punk.fx.graphics.FXImage; | |
/** | |
* TitleEntity |
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 com.adobe.images.PNGEncoder; | |
import flash.display.BitmapData; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.events.KeyboardEvent; | |
import flash.events.MouseEvent; | |
import flash.geom.Point; | |
import flash.geom.Rectangle; |
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 com.adobe.images.PNGEncoder; | |
import flash.display.BitmapData; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.events.KeyboardEvent; | |
import flash.events.MouseEvent; | |
import flash.geom.Point; | |
import flash.geom.Rectangle; |
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 net.flashpunk.utils | |
{ | |
import flash.display.*; | |
import flash.geom.Matrix; | |
import flash.geom.Point; | |
import flash.geom.Rectangle; | |
import net.flashpunk.Entity; | |
import net.flashpunk.FP; | |
import net.flashpunk.Graphic; | |
import net.flashpunk.graphics.Text; |
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
/** | |
* Masks the `source` BitmapData (in place) using alpha data from `alphaMask`. | |
* | |
* Note: `source` and `alphaMask` must be of the same size. | |
* | |
* @param source BitmapData to be masked. | |
* @param alphaMask BitmapData to be used as mask. | |
* @param copyAlpha If true the alpha value of `alphaMask` will be copied over to `source`. | |
*/ | |
public static function applyAlphaMask(source:BitmapData, alphaMask:BitmapData, copyAlpha:Bool = false):Void |
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
// see https://github.com/azrafe7/FlashPunk/commit/475c4c4fb11a3554261ba871f64f16c5ddd53693 | |
package | |
{ | |
import flash.display.BlendMode; | |
import flash.geom.Point; | |
import flash.system.System; | |
import flash.text.AntiAliasType; | |
import flash.text.TextField; | |
import flash.text.TextFormat; |
OlderNewer