Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
placing loot in each room, not functional
- Loading branch information
Showing
6 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
|
||
bin/ | ||
obj/ | ||
lib/ | ||
lib/ | ||
|
||
*.db |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package game | ||
{ | ||
import org.flixel.FlxSprite; | ||
|
||
/** | ||
* Ludum Dare 21 - Escape | ||
* @author Paul S Burgess - 21/8/2011 | ||
*/ | ||
public class Loot extends FlxSprite | ||
{ | ||
[Embed(source = '../../data/textures/loot.png')] private var imgLoot:Class; | ||
|
||
public function Loot(xLeft:Number, yBottom:Number, colour:uint = 0xffffffff) | ||
{ | ||
super(xLeft, yBottom); | ||
|
||
loadGraphic(imgLoot); | ||
y -= height; | ||
|
||
// Adjust collision rect: | ||
offset.y = (height - width); | ||
height -= offset.y; | ||
y += offset.y; | ||
|
||
alpha = 0.75; | ||
} | ||
} | ||
} |
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
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