This file contains hidden or 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
#ifndef _CRT_SECURE_NO_WARNINGS | |
# define _CRT_SECURE_NO_WARNINGS | |
#endif | |
#ifndef _CRT_NONSTDC_NO_DEPRECATE | |
# define _CRT_NONSTDC_NO_DEPRECATE | |
#endif | |
#include <vector> | |
// ------------------------------------------------------------------------------------------------- |
This file contains hidden or 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
#include <stdio.h> | |
#include <assert.h> | |
struct item_t | |
{ | |
int key; | |
int val; | |
}; | |
int get_byte(int val, int byte_index) |
This file contains hidden or 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
-- Splits a sprite upon a grid into individual frames. | |
-- This file should go into your Aseprite scripts folder. | |
-- Aseprite -> File -> Scripts -> Open Scripts Folder | |
local dialog = Dialog("Split Tiles to Layers") | |
dialog:label{ id="help", label="", text="Set the width and height to split tiles by:" } | |
dialog:number{ id="tile_w", label="Tile Width:", text="8", focus=true } | |
dialog:number{ id="tile_h", label="Tile Height:", text="8" } | |
dialog:button{ id="ok", text="&OK", focus=true } | |
dialog:button{ text="&Cancel" } |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
if (argc < 3) { | |
printf("Usage: embed <filename> <symbol>\n"); return -1; | |
} | |
const char* path = argv[1]; |
NewerOlder