engine.c
// Called each iteration while key is being held down
Called each iteration while key is being held down
Called each iteration while key is being held down
void key_down(const char *key) {
  char method[64];
  sprintf(method, "while_key_down(\"%s\")", key);
  mrb_load_string(mrb, method); 
}
void key_down ( const char * key ) { char method [ 64 ] ; sprintf ( method , " \" \" " , key ) ; mrb_load_string ( mrb , method ) ; }
Called each iteration while key is being held down
Called each iteration while key is being held down
// printf("key_down: %s\n", key); // call the while_key_down method defined in game.rb