Subversion Repositories Kolibri OS

Rev

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

Rev 1805 Rev 7479
Line 70... Line 70...
70
			break;
70
			break;
71
		default:
71
		default:
72
			OnMouseMove();
72
			OnMouseMove();
73
			break;
73
			break;
74
		}
74
		}
-
 
75
		if (kos_GetButtonID()==1) OnExit();
75
		DrawBombs();
76
		DrawBombs();
76
		DrawRocketsAndCrosses();
77
		DrawRocketsAndCrosses();
77
		DrawExplodes();
78
		DrawExplodes();
78
		frame_end = kos_GetTime();
79
		frame_end = kos_GetTime();
79
		if (frame_end - frame_start < FRAME_TIME)
80
		if (frame_end - frame_start < FRAME_TIME)
Line 91... Line 92...
91
{
92
{
92
	kos_WindowRedrawStatus(1);
93
	kos_WindowRedrawStatus(1);
93
	kos_DefineAndDrawWindow(10, 40, WINDOW_WIDTH + 8, WINDOW_HEIGHT + 25, 0x33, BG_COLOR, 0, 0, (Dword)header);
94
	kos_DefineAndDrawWindow(10, 40, WINDOW_WIDTH + 8, WINDOW_HEIGHT + 25, 0x33, BG_COLOR, 0, 0, (Dword)header);
94
	kos_WindowRedrawStatus(2);
95
	kos_WindowRedrawStatus(2);
Line -... Line 96...
-
 
96
 
-
 
97
	kos_WriteTextToWindow(8, 10, 0, TEXT_COLOR, "Population:    %", 16);
-
 
98
	kos_WriteTextToWindow(8, 22, 0, TEXT_COLOR, "Score:", 6);
95
 
99
 
Line 96... Line 100...
96
	OnMouseMove();
100
	OnMouseMove();
97
 
101
 
98
	// Draw buildings
102
	// Draw buildings
Line 218... Line 222...
218
	else
222
	else
219
	{
223
	{
220
		ms.lbclick = 0;
224
		ms.lbclick = 0;
221
	}
225
	}
Line 222... Line -...
222
 
-
 
223
 
-
 
224
	kos_WriteTextToWindow(8, 10, 0, TEXT_COLOR, "Population:    %", 16);
226
 
225
	kos_DisplayNumberToWindowBg(health, 3, 79, 10, TEXT_COLOR, BG_COLOR, nbDecimal, false);
-
 
226
	kos_WriteTextToWindow(8, 22, 0, TEXT_COLOR, "Score:", 6);
227
	kos_DisplayNumberToWindowBg(health, 3, 79, 10, TEXT_COLOR, BG_COLOR, nbDecimal, false);
Line 227... Line 228...
227
	kos_DisplayNumberToWindowBg(score, 4, 49, 22, TEXT_COLOR, BG_COLOR, nbDecimal, false);
228
	kos_DisplayNumberToWindowBg(score, 4, 49, 22, TEXT_COLOR, BG_COLOR, nbDecimal, false);
228
 
229
 
229
	if (ms.x >= 0 && ms.x < WINDOW_WIDTH &&  ms.y >= 0 && ms.y < WINDOW_HEIGHT)
230
	if (ms.x >= 0 && ms.x < WINDOW_WIDTH &&  ms.y >= 0 && ms.y < WINDOW_HEIGHT)