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
/* WARNING: Automatically generated file */ | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Security; | |
using System.Collections; | |
namespace FreeType { | |
[StructLayout(LayoutKind.Sequential)] |
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
/* | |
Shameless port of a shameless port | |
@defunkt => @janl => @aq | |
See http://github.com/defunkt/mustache for more info. | |
*/ | |
;(function($) { | |
/*! |
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 <SDL2/SDL.h> | |
#include <SDL2/SDL_image.h> | |
#define WIDTH 800 | |
#define HEIGHT 600 | |
#define IMG_PATH "exit.png" | |
int main (int argc, char *argv[]) { |
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 <SDL2/SDL.h> | |
#define MUS_PATH "Roland-GR-1-Trumpet-C5.wav" | |
// prototype for our audio callback | |
// see the implementation for more information | |
void my_audio_callback(void *userdata, Uint8 *stream, int len); | |
// variable declarations | |
static Uint8 *audio_pos; // global pointer to the audio buffer to be played |
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
# This will create a dist directory containing the executable file, all the data | |
# directories. All Libraries will be bundled in executable file. | |
# | |
# Run the build process by entering 'pygame2exe.py' or | |
# 'python pygame2exe.py' in a console prompt. | |
# | |
# To build exe, python, pygame, and py2exe have to be installed. After | |
# building exe none of this libraries are needed. | |
#Please Note have a backup file in a different directory as if it crashes you | |
#will loose it all!(I lost 6 months of work because I did not do this) |
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 <SDL2/SDL.h> | |
#include <SDL2/SDL_mixer.h> | |
#define WAV_PATH "Roland-GR-1-Trumpet-C5.wav" | |
#define MUS_PATH "HR2_Friska.ogg" | |
// Our wave file | |
Mix_Chunk *wave = NULL; | |
// Our music file | |
Mix_Music *music = NULL; |
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
-- exporting table | |
local exports = {} | |
-- table containing the resources | |
local resources = {} | |
local imagepath = "image" | |
local soundpath = "sounds" | |
local fontpath = "fonts" | |
-- add image to resource manager |
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
<!-- | |
This file will get included twice - once at the beginning - once at the end. | |
The first time though, the "vars" section is parsed, and this is where you can | |
set variables to control the setup of the standard compilers and install paths etc. | |
The second time, the "exes" section is parsed, and you can modify the linkers/compilers | |
by adding flags to these executables. | |
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
-- debug helper function | |
function _dump (t) | |
local ttype = type(t) | |
if ttype == "table" then | |
local vals = {} | |
for k,v in pairs(t) do | |
table.insert(vals, _dump(k) .. " = " .. _dump(v)) | |
end | |
return "{"..table.concat(vals, " , ").."}" | |
elseif ttype == "string" then |
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
//// seed.c /////////////////////////////////////////////////////////////////// | |
// seed is a lua executable which loads data and lua code embedded in the | |
// executable. Specifically, it loads from a zip file concatenated to its | |
// executable. Initially /init.lua from the zip file is run, and a loader is | |
// added to package.loaders so that 'require' searches inside the zip file. If | |
// a module is not found in the archive, then the default loaders are used. | |
// | |
// In addition to using 'require', lua files can be loaded with seed.loadfile, | |
// which is like loadfile except that it gets the file from inside the archive. | |
// Basic reading of arbitrary files from the archive is supported. |
OlderNewer