This file contains 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
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) |
This file contains 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
// 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, | |
} |
This file contains 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
adb shell ps | awk '/com\.android\.commands\.monkey/ { system("adb shell kill " $2) }' |