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
GSound myTrack; | |
GSample myPlayableTrack = myTrack.load("path/to/file.mp3", true); | |
myPlayableTrack.play(); | |
//It looks like that's passing back a GError so you could try this: | |
GError myError = myTrack.load("path/to/file.mp3", true); | |
Gwin.writeString(myError.getErrorMsg()); |
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
/* | |
* use import to include classes defined within the java.io package | |
*/ | |
import java.io.*; | |
/** | |
* This example will demonstrate how to write information to a file. | |
* <p> | |
* It also shows you how to use comments that can be used by javadoc to produce | |
* HTML api document files for your class. There are a number of javadoc tags that |
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
// Space Invaders Project.cpp : Defines the entry point for the application. | |
// Author: | |
// ID: | |
// Version: | |
// Date: 17 Feb 2012 | |
// Description: | |
#include "stdafx.h" | |
#include "gwin.h" |
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 "stdafx.h" | |
#include "gwin.h" | |
class Pacman { | |
public: | |
int x; | |
int y; | |
int Scale; | |
// direction |
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
struct Track { | |
char TrackName[MAXCHARS]; | |
int Genre; | |
int PlayMin; | |
int PlaySec; | |
}; | |
Track MusicTrack[MAXTRACKS] = { //opening the array | |
{"Holst_Mars", 1, 15, 10}, //first struct in the array with each item in the struct | |
{"New_York", 2, 3, 50}, //second |
NewerOlder