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
const unsigned short bgTiles[64] __attribute__((aligned(4)))= | |
{ | |
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, | |
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, | |
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, | |
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000, | |
0x0101,0x0202,0x0101,0x0202,0x0101,0x0202,0x0101,0x0202, | |
0x0202,0x0101,0x0202,0x0101,0x0202,0x0101,0x0202,0x0101, | |
0x0101,0x0202,0x0101,0x0202,0x0101,0x0202,0x0101,0x0202, | |
0x0202,0x0101,0x0202,0x0101,0x0202,0x0101,0x0202,0x0101, |
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
typedef unsigned char uint8; | |
typedef unsigned short uint16; | |
typedef unsigned int uint32; | |
#define REG_DISPLAYCONTROL *((volatile uint32*)(0x04000000)) | |
#define VIDEOMODE_3 0x0003 | |
#define BGMODE_2 0x0400 | |
#define SCREENBUFFER ((volatile uint16*)0x06000000) | |
#define SCREEN_W 240 |
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
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
public class PackToRGB : EditorWindow | |
{ | |
private Texture2D[] RGB; |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using System.IO; | |
public class AtlasImporter : AssetPostprocessor | |
{ | |
private void OnPostprocessTexture(Texture2D import) | |
{ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
enum ShipAttribute | |
{ | |
EnergyShield = 0x1, | |
PlasmaCannon = 0x2, | |
IonThrusters = 0x4, | |
Teleporter = 0x8, | |
FireSuppression = 0x10 | |
}; |