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
function GetProfessionInformation() | |
local prof1, prof2, archaeology, fishing, cooking, firstAid = GetProfessions() | |
if prof1 ~= nil then PrintProfessionInformation(prof1) end | |
if prof2 ~= nil then PrintProfessionInformation(prof2) end | |
if archaeology ~= nil then PrintProfessionInformation(archaeology) end | |
if fishing ~= nil then PrintProfessionInformation(fishing) end | |
if cooking ~= nil then PrintProfessionInformation(cooking) end | |
if firstAid ~= nil then PrintProfessionInformation(firstAid) end | |
end |
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
function MyAddOnSettingsFrame_OnLoad(self) | |
-- Set the name for the Category for the Panel | |
self.name = "My AddOn" .. GetAddOnMetadata("MyAddon", "Version") | |
-- When the player clicks okay, run this function. | |
self.okay = function (self) print("MyAddOnSettings: Okay clicked") end | |
-- When the player clicks cancel, run this function. | |
self.cancel = function (self) print("MyAddOnSettings: Cancel clicked.") end |
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
package net.thegamestudio.SimpleTilemapManager | |
{ | |
import net.flashpunk.graphics.Tilemap; | |
/** | |
* Manages a fixed number of Tilemaps so you can reuse them. | |
* @author Zachary Weston Lewis (http://zacharylew.is) | |
*/ | |
public class SimpleTilemapManager | |
{ |
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
package | |
{ | |
import flash.display.*; | |
import net.flashpunk.*; | |
import net.flashpunk.graphics.*; | |
import net.flashpunk.utils.*; | |
/** | |
* A sample world to demonstrate swapping a sprite from the World on player input. | |
* @author Zachary Weston Lewis (http://zacharylew.is) |
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
package | |
{ | |
import flash.display.BitmapData; | |
import flash.geom.Rectangle; | |
import net.flashpunk.FP; | |
import net.flashpunk.graphics.Emitter; | |
import net.flashpunk.graphics.Graphiclist; | |
import net.flashpunk.graphics.Image; | |
import net.flashpunk.graphics.Text; | |
import net.flashpunk.utils.Input; |
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
/** | |
* @author Zachary Weston Lewis | |
*/ | |
class Main extends MovieClip | |
{ | |
public function Main(target:Object) | |
{ | |
target.__proto__ = this.__proto__; | |
target.__constructor__ = PlayerHUD; |
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
package | |
{ | |
import flash.display.BitmapData; | |
import flash.events.FocusEvent; | |
import flash.geom.Point; | |
import flash.geom.Rectangle; | |
import net.flashpunk.Entity; | |
import net.flashpunk.FP; | |
import net.flashpunk.graphics.Backdrop; | |
import net.flashpunk.graphics.Image; |
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
package | |
{ | |
import flash.geom.Rectangle; | |
import net.flashpunk.Entity; | |
import net.flashpunk.FP; | |
import net.flashpunk.graphics.Image; | |
/** | |
* Describes an enemy. | |
* @author Zachary Weston Lewis |
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
//============================================================================= | |
// [GLOBALS] | |
//============================================================================= | |
float4x4 World; | |
float4x4 Projection; | |
int ShaderIndex = 0; | |
float3 DiffuseColor; | |
struct VertexPositionColor |