Game 44: "One Year"
Make the most of your year, and try to discover the secret seasonal bonuses.
Go play more games at NMcCoy.net!
This work by Nathan McCoy is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
/
boolean[] keys = new boolean[256];
boolean title;
boolean paused;
boolean muted;
int drawing_ms_last;
int physics_ms_last;
int CORE_FPS = 540;
int DRAWING_FPS = 60;
int PHYSICS_FPS = 180;
int DRAW_MS = 1000 / DRAWING_FPS;
int PHYS_MS = 1000 / PHYSICS_FPS;
Minim minim;
AudioSample s1;
AudioSample s2;
AudioSample s3;
AudioSample s4;
AudioSample s5;
AudioSample s6;
void audioInit()
{
minim = new Minim(this);
s1 = minim.loadSample("1.wav", 1024);
s2 = minim.loadSample("2.wav", 1024);
s3 = minim.loadSample("3.wav", 1024);
s4 = minim.loadSample("4.wav", 1024);
s5 = minim.loadSample("5.wav", 1024);
s6 = minim.loadSample("6.wav", 1024);
}
void audioClose()
{
s1.close();
s2.close();
s3.close();
s4.close();
s5.close();
s6.close();
minim.stop();
}
int SEGMENTS = 12;
float wheel_angle;
float WHEEL_RADIUS = 130;
int DOT_FALL_FRAMES = 360;
int dot_fall_timer;
int clear_timer;
int SEGMENT_CLEAR_BASETIME = 20;
float DOT_OUTER_RADIUS = 400;
int recent_points;
int recent_points_timer;
int RECENT_POINTS_DELAY = 180;
int MOSAIC_TIME = 45;
int MOSAIC_STRENGTH = 32;
int year_timer;
int YEAR_TIME = DOT_FALL_FRAMES * 4/*seasons*/ * 4 /*waves per clear*/ * 4 /*clears per season
Source code: game44_one_year Classes Jukebox Utility_Stuff
Built with Processing