예제 #1
0
int main() {
	int fil[6][8];
	int i,j;
	//inisialisasi
	for (i = 0;i <= 5;i++) {
		for (j = 0;j <= 7;j++) {
			fil[i][j] = 1;
		}
	}
	Display LCD;
	LCD.SetJudul(3, 5, 4, 10, 2, 2, 4, "PANAS", "TERANG");
	LCD.SetWarna(1,15);
	
	//UBAH NAMA
	LCD.SetStrPanel(1,0,"FIDEL CASTRO");
	
	//UBAH STATUS
	LCD.SetStrPanel(1,1,"NORMAL");
	
	//UBAH UANG
	LCD.SetStrPanel(1,2,"65.000 BUCK");
	
	//UBAH NAMA TANAMAN
	LCD.SetStrPanel(2,0,"CANABIS");
	
	LCD.ClearScr();
	//string jud;
	/*jud = "TT/BB            HH:MM          RUMAH< , >           MUSIM           CUACA";
	a[1]= "COBAA"				;	b[1]= "ABISA";
	a[2]= "AJAA"					;	b[2]= "INIA";
	a[3]= "NIHA"					;	b[3]= "COBAA";
	a[4]= "TESTINGA"				;	b[4]= "TRUAS";
	a[5]= "YUHUA"				;	b[5]= "MAMPUAS";*/
	LCD << fil;
	LCD.PrintJudul();
	LCD.PrintUtama();
	return 0;
}
예제 #2
0
int main() {
	int fil[6][8];
	int i,j;
	//inisialisasi
	for (i = 0;i <= 5;i++) {
		for (j = 0;j <= 7;j++) {
			fil[i][j] = 1;
		}
	}
	Display LCD;
	LCD.SetJudul(3, 5, 4, 10, 2, 2, 4, "BADAI", "CERAH");
	LCD.SetWarna(1,15);
	
	//UBAH NAMA
	LCD.SetStrPanel(1,0,"FIDEL CASTRO");
	
	//UBAH STATUS
	LCD.SetStrPanel(1,1,"NORMAL");
	
	//UBAH UANG
	LCD.SetStrPanel(1,2,"65.000 BUCK");
	
	//UBAH TANAMAN
	LCD.SetStrPanel(2,0,"CANABIS");
	LCD.SetStrPanel(2,1,LCD.MakeUmur(15));
	LCD.SetStrPanel(2,3,"DEWASA METER:");
	LCD.SetStrPanel(2,4,LCD.Bar(10,10));
	LCD.SetStrPanel(2,6,"PANEN METER:");
	LCD.SetStrPanel(2,7,LCD.Bar(10,15));
	
	//UBAH POS PLAYER
	LCD.SetPlayer(2,2,1);
	LCD.SetKurcaci1(4,4,2);
	LCD.SetKurcaci2(1,1,3);
	LCD.SetKurcaci3(1,4,4);
	
	//SET STATUS KURCACI
	LCD.SetStrPanel(3,2,LCD.StKurcaci(1));
	LCD.SetStrPanel(3,4,LCD.StKurcaci(1));
	LCD.SetStrPanel(3,6,LCD.StKurcaci(1));
	
	//SET INVENTORI
	LCD.SetStrPanel(4,1,"GAN");LCD.SetStrPanel(4,2,LCD.ToSTR(2));
	LCD.SetStrPanel(4,3,"MAR");LCD.SetStrPanel(4,4,LCD.ToSTR(14));
	LCD.SetStrPanel(4,5,"TOB");LCD.SetStrPanel(4,6,LCD.ToSTR(3));
	
	//SET ODMETER
	LCD.SetODMeter(91);
	
	LCD.ClearScr();
	//string jud;
	/*jud = "TT/BB            HH:MM          RUMAH< , >           MUSIM           CUACA";
	a[1]= "COBAA"				;	b[1]= "ABISA";
	a[2]= "AJAA"					;	b[2]= "INIA";
	a[3]= "NIHA"					;	b[3]= "COBAA";
	a[4]= "TESTINGA"				;	b[4]= "TRUAS";
	a[5]= "YUHUA"				;	b[5]= "MAMPUAS";*/
	LCD << fil;
	LCD.Print();
	return 0;
}