I hereby claim:
- I am shawngrimes on github.
- I am shawngrimes (https://keybase.io/shawngrimes) on keybase.
- I have a public key whose fingerprint is 8C8B F893 1135 A62F 33BC B48F 7A42 4C82 0E4C 6058
To claim this, I am signing this object:
--This adds the widget library to our project | |
local widget = require "widget" | |
--This is what is run when we press our button | |
local myButtonEvent = function (event ) | |
if event.phase == "release" then | |
print( "You pressed and released the "..event.target.id.." button!" ) | |
end | |
end |
--This is a work in progress | |
--Create the first background | |
local myBackground=display.newImage("background1.png") | |
myBackground:setReferencePoint(display.CenterLeftReferencePoint) | |
myBackground.x=0 | |
--Create the second background | |
local myBackground2=display.newImage("background2.png") | |
myBackground2:setReferencePoint(display.CenterLeftReferencePoint) |
--Change the reference point of the object | |
myObject:setReferencePoint(display.BottomLeftReferencePoint) | |
--This will add a buffer of half the objects width, if you want it flush with the | |
--left, change it to myObject.x=0 | |
myObject.x=0 + myObject.contentWidth/2 | |
--This will add a vertical buffer of half the object's height, if you want it flush with the | |
--bottom, change it to myobject.y=display.contentHeight | |
myObject.y=display.contentHeight - myObject.contentHeight/2 |
--Change the reference point of the object | |
myObject:setReferencePoint(display.BottomRightReferencePoint) | |
--This will add a buffer of half the objects width, if you want it flush with the | |
--right, change it to myObject.x=display.contentWidth | |
myObject.x=display.contentWidth - myObject.contentWidth/2 | |
--This will add a vertical buffer of half the object's height, if you want it flush with the | |
--bottom, change it to myobject.y=display.contentHeight |
--Load Physics Library | |
local physics = require "physics" | |
--Show physics drawing lines, for help with debugging | |
physics.setDrawMode( "hybrid" ) | |
--Start Physics | |
physics.start() | |
--load your sound effect near the beginning of your file | |
local mySoundEffect = audio.loadSound("mySound.mp3") | |
--To play the sound effect, call this whenever you want to play it | |
audio.play(mySoundEffect) |
----------------------------------------------------------------------------------------- | |
-- | |
-- main.lua | |
-- | |
----------------------------------------------------------------------------------------- | |
-- Your code here | |
local myMole=display.newImageRect("images/mole_1.png",178,200) |
import ddf.minim.*; | |
import ddf.minim.analysis.*; | |
float myOpacity; | |
float getVolume; | |
int mappedVolume; | |
Minim minim; | |
AudioInput in; |
if( in.isMonitoring() ){ | |
ellipse(50,400,55,55); | |
} |
I hereby claim:
To claim this, I am signing this object: