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
#!/usr/bin/luajit | |
local wpi = require ("wiringlua") | |
local ADDR = 0x27 | |
local BLEN = 1 | |
local fd = 0 | |
function write_word(data) | |
local temp = data |
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
#!/usr/bin/luajit | |
local wpi = require ("wiringlua") | |
local ADDR = 0x27 | |
local BLEN = 1 | |
local fd = 0 | |
function write_word(data) | |
local temp = data |
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
/* stbi-1.16 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c | |
when you control the images you're loading | |
QUICK NOTES: | |
Primarily of interest to game developers and other people who can | |
avoid problematic images and only need the trivial interface | |
JPEG baseline (no JPEG progressive, no oddball channel decimations) | |
PNG non-interlaced | |
BMP non-1bpp, non-RLE |
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
DIRS = . | |
MOONS = $(wildcard $(DIRS:=/*.moon)) | |
all: compile | |
love love/ | |
compile: | |
@echo compiling ... $(MOONS) | |
moonc -t love/ $(MOONS) |
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 "ResourceLoader.h" | |
bool ResourceLoader::m_done = false; | |
std::string ResourceLoader::datafolder = "data"; | |
std::map<std::string, sf::Texture> ResourceLoader::m_textures; | |
std::map<std::string, sf::Font> ResourceLoader::m_fonts; | |
std::map<std::string, sf::SoundBuffer> ResourceLoader::m_sounds; | |
void ResourceLoader::m_load() | |
{ |
NewerOlder