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
I am attesting that this GitHub handle digitpain is linked to the Tezos account tz1gkf8EexComFBJvjtT1zdsisdah791KwBE for tzprofiles | |
sig:edsigtkZhdiLWq1fKRSYdEjWVL6cBxJykmv2M6pE9mYh8EBbgdJrjm7gDB6LgGxh2XKVJ1TTXWtzXTg5Pna6h5oZQ4nJzajaKJM |
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
static mut PIXELS: [u8; 128 * 128 * 4] = [0; 128 * 128 * 4]; | |
#[no_mangle] | |
pub fn update_pixels() { | |
// How to remove this unsafe block? | |
unsafe { | |
PIXELS[0] = 255; | |
PIXELS[1] = 255; | |
PIXELS[2] = 0; | |
PIXELS[3] = 255; |
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
def('surf.graph', function (act, viewport, size) { | |
'use strict'; | |
var vec2 = use('lib.vec2'), | |
t = use('lib.transform')({ | |
size: size, | |
anchor: vec2.scal(viewport.win, 0.5) | |
}), | |
worms = {}, |
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
def('softy', function (act) { | |
'use strict'; | |
act.on('prep tool', function (p) { | |
act.out('softy.graph.prep', p); | |
act.out('touch surf', {p: p, and: function (opts) { | |
act.out('softy.graph.spot', opts); | |
}}); | |
}); |
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 <SDL.h> | |
#include <emscripten/emscripten.h> | |
int eventFilter(void* userdata, SDL_Event* event){ | |
int audio_started; | |
(void)(userdata); | |
switch(event->type){ | |
case SDL_FINGERDOWN: | |
case SDL_MOUSEBUTTONDOWN: | |
case SDL_KEYDOWN: |
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
OBJS = ios-audio.c | |
OBJ_NAME = "ios-audio" | |
mac: | |
mkdir -p builds/native/mac | |
gcc -Wall -o $(OBJ_NAME) $(OBJS) `sdl2-config --cflags --libs`; | |
mv $(OBJ_NAME) builds/native/mac | |
web: | |
mkdir -p builds/html |
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
<head> <!-- These tags should be placed within the document's head tag, but there are exceptions. --> | |
<link rel="stylesheet" type="text/css" href="my_stylesheet.css"> | |
<script src="js/my_javascript.js"></script> <!-- Looks for a file called `my_javascript.js` within the directory `your_project/js/` | |
</head> |