Skip to content

Instantly share code, notes, and snippets.

@Datoh
Datoh / call.gd
Last active September 25, 2020 12:54
func remote_call(node, method, varargs):
if solo:
node.call(method, varargs)
else:
node.rpc(method,varargs)
func test():
remote_call(self, "foo", 10, 20)
// Draw in an offline image and a create a spritebatch
use ggez::{Context, event, graphics, nalgebra, GameResult};
struct MainState {
rect_size: f32,
sprite_count: usize,
spritebatch: graphics::spritebatch::SpriteBatch,
}
@Datoh
Datoh / gist:44ecdaa49e50bea0a0c7
Created June 11, 2014 06:34
Android: How to kill the monkey
adb shell ps | awk '/com\.android\.commands\.monkey/ { system("adb shell kill " $2) }'