-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
woo
- Loading branch information
Showing
71 changed files
with
7,566 additions
and
393 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
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,7 @@ | ||
PROPER LEVEL FORMAT [ ] (editor?) [ ] | ||
DISK [ ] | ||
NEXT LEVEL HANDLE [ ] | ||
5 SET LEVELS [ ] | ||
LEVEL RESETS (DEATH) [ ] | ||
POSSIBLY DOORS [ ] | ||
ALERT INDICATOR [ ] |
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
|
||
//{{BLOCK(business) | ||
|
||
//====================================================================== | ||
// | ||
// business, 240x160@8, | ||
// + palette 256 entries, not compressed | ||
// + bitmap not compressed | ||
// Total size: 512 + 38400 = 38912 | ||
// | ||
// Time-stamp: 2013-05-16, 15:28:40 | ||
// Exported by Cearn's GBA Image Transmogrifier, v0.8.6 | ||
// ( http://www.coranac.com/projects/#grit ) | ||
// | ||
//====================================================================== | ||
|
||
#ifndef GRIT_BUSINESS_H | ||
#define GRIT_BUSINESS_H | ||
|
||
#define businessBitmapLen 38400 | ||
extern const unsigned short businessBitmap[19200]; | ||
|
||
#define businessPalLen 512 | ||
extern const unsigned short businessPal[256]; | ||
|
||
#endif // GRIT_BUSINESS_H | ||
|
||
//}}BLOCK(business) |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "disk.h" | ||
|
||
Disk::Disk(int x, int y, int width, int height, int objID) : super(x, y, width, height, objID) | ||
{ | ||
diskAnim = new Animation(1, 1); | ||
diskAnim->Frames[0] = 12*2; | ||
|
||
currentAnimation = diskAnim; | ||
|
||
} | ||
|
||
void Disk::Draw() | ||
{ | ||
super::Draw(); | ||
|
||
// Check to make sure we haven't gone offscreen: | ||
|
||
// Check to see if we're on screen or not... | ||
if(ScreenPositionX < 0 || ScreenPositionX > 248 || ScreenPositionY < 0 || ScreenPositionY > 160) | ||
{ | ||
SetObject(objectID, ATTR0_SHAPE(Shape) | ATTR0_8BPP | ATTR0_HIDE | ATTR0_REG | ATTR0_Y(32), | ||
ATTR1_SIZE(Size) | ATTR1_X(32), | ||
ATTR2_ID(currentAnimation->Frames[currentAnimation->CurrentFrame])); | ||
} | ||
|
||
} | ||
|
||
void Disk::Update() | ||
{ | ||
//nada | ||
} |
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,21 @@ | ||
#pragma once | ||
|
||
#include "gameobjects.h" | ||
|
||
class Disk : public GameObject // the data disk, our main objective! | ||
{ | ||
public: | ||
|
||
typedef GameObject super; // Lets me use super() or super::Foo() for parent-class stuff. | ||
|
||
Animation* diskAnim; | ||
|
||
//Main Functions | ||
Disk(int x, int y, int width, int height, int objID); | ||
void Update(); | ||
void Draw(); | ||
|
||
|
||
|
||
|
||
}; |
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
Oops, something went wrong.