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
--# Main | |
-- Use this function to perform your initial setup | |
displayMode(OVERLAY) | |
supportedOrientations(LANDSCAPE_ANY) | |
function setup() |
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
--# Main | |
-- Main | |
saveProjectInfo( "Description", "Two-choice Adventure Games by Rosie and Charlotte." ) | |
--**NOTE** Assets can be found at: | |
--https://www.dropbox.com/sh/hg5cplngi7v7268/AAA8ezcK_ZJk2gZNF52sAvL_a?dl=0 | |
--**project will not run without these in the project folder** | |
--[[ |
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
--# Main | |
displayMode(FULLSCREEN) | |
function setup() | |
showBuffer = true | |
readPixelCode = true | |
local w,h = WIDTH,HEIGHT | |
local w,h = 20,20 | |
source = image(w,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
--# Main | |
-- MakeDice | |
function setup() | |
colorPicker = SwipeColorPicker() | |
colorPicker.position.x, colorPicker.position.y = 50, 50 | |
makeDice = MakeDice() | |
usingMiniBufferAndOverlay = false | |
texture = makeDice.mesh.texture |
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
--# ChoiceItem | |
ChoiceItem = class(XFC.MenuItem) | |
XFC.itemClass["choice"] = ChoiceItem | |
function ChoiceItem:init(data) | |
-- this item is a button to make choices | |
-- special fields of data: | |
-- data.choices = table of choice elements: {txt="comment",value=v,iconLetter=nil} | |
-- (iconLetter is optionnal) |