Subversion Repositories Kolibri OS

Rev

Rev 7977 | Rev 7995 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7977 Rev 7985
Line 128... Line 128...
128
	load_dll(libimg, #libimg_init,1);
128
	load_dll(libimg, #libimg_init,1);
129
	menu.load(abspath("menu.png"));
129
	menu.load(abspath("menu.png"));
130
	road.load(abspath("road.png"));
130
	road.load(abspath("road.png"));
131
	objects.load(abspath("objects.png"));
131
	objects.load(abspath("objects.png"));
Line 132... Line -...
132
	
-
 
133
	loop()
-
 
134
	{
132
	
135
		WaitEventTimeout(frame_timeout);
-
 
136
 
-
 
137
		switch(EAX & 0xFF)
133
	loop() switch(@WaitEventTimeout(frame_timeout))
138
		{
134
	{
139
			case evKey: 
135
		case evKey: 
140
				GetKeys();
136
			GetKeys();
141
				if (key_scancode == SCAN_CODE_ESC)
137
			if (key_scancode == SCAN_CODE_ESC)
Line 236... Line 232...
236
 
232
 
237
					DrawRoad();
233
				DrawRoad();
238
				}
234
			}
239
		}
235
	}
240
	}
-
 
Line 241... Line 236...
241
}
236
}
242
 
237
 
243
void NewLevel()
238
void NewLevel()
244
{
239
{