Selasa, 28 Februari 2012

How to Create Mobile MidLet

Image 1

Image2
Image3

Image4



import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class Praktekif2 extends MIDlet implements
        CommandListener {
        Display d;
        Form f;
        Image img;
        Command cmdKeluar,cmdBeli,cmdProses,cmdKembali;
        //deklarasi variabel form 2
        Form f2;
        TextField txtKode,txtNama,txtHarga;
        ChoiceGroup cgSatuan;
        ///deklarsi variabel form 3
        private Form f3;
        private StringItem siKode,siNama,siSatuan,siHarga,siKet;
        private Command cmdKembali2;
        //akhir deklarasi
        public Praktekif2(){
        d=Display.getDisplay(this);
        f=new Form("Halaman Utama");
        try {
        img=Image.createImage("/edit.jpg");
        }catch(Exception e) {
            e.printStackTrace();
            System.out.println("Gambar Tidak Ada");
        }
        cmdKeluar=new Command("Keluar",Command.EXIT,0);
        cmdBeli=new Command("Beli",Command.OK,1);
        f.setTicker(new Ticker("Ivo Randi.MS"));
        f.append(img);
        f.addCommand(cmdBeli);
        f.addCommand(cmdKeluar);
        f.setCommandListener(this);
        }

   
       
      
    public void startApp() {
        d.setCurrent(f);
    }
   

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
    public void commandAction(Command c,Displayable s){
        if(c==cmdKeluar){
            destroyApp(true);
            notifyDestroyed();
        }else if (c==cmdBeli){
            f2=new Form("Entry Barang");
            f2.setTicker(new Ticker("Pilih Barang"));
            cmdKembali=new Command("Kembali",Command.BACK,0);
            cmdProses=new Command("Proses",Command.OK,1);
            txtKode=new TextField("Kode Barang","",20,TextField.ANY);
            txtNama=new TextField("Nama Barang","",20,TextField.ANY);
            txtHarga=new TextField("Harga Barang","",10,TextField.NUMERIC);
            cgSatuan=new ChoiceGroup("Satuan",Choice.EXCLUSIVE);
            cgSatuan.append("KG", img);
            cgSatuan.append("BOX", img);
            f2.addCommand(cmdKembali);
            f2.addCommand(cmdProses);
            f2.setCommandListener(this);
            f2.append(txtKode);
            f2.append(txtNama);
            f2.append(txtHarga);
            f2.append(cgSatuan);
            d.setCurrent(f2);
       
        }else if(s==f2){
            if(c==cmdKembali){
                d.setCurrent(f);
            }else if(c==cmdProses){
                int Harga=0;
                String Keterangan="";
                //mengkonversi nilai
                Harga=Integer.parseInt(txtHarga.getString());
                if(Harga>=50000){
                    Keterangan="Anda Dapat Diskon 20%";
                }else{
                    Keterangan="Tidak Ada Diskon,Maaf ya...";
                }
                f3=new Form ("DATA BARANG");
                siKode=new StringItem("Kode Barang :",txtKode.getString());
                siKode.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD|Font.STYLE_UNDERLINED,Font.SIZE_MEDIUM));
                siNama=new StringItem("Nama Barang ;",txtNama.getString());    
                siNama.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
                siSatuan=new StringItem("Satuan ;",cgSatuan.getString(0));    
                siSatuan.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
                siHarga=new StringItem("Harga Barang ;",txtHarga.getString());    
                siHarga.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
               
                siKet=new StringItem("Keterangan :",Keterangan);
                siKet.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
                cmdKembali2=new Command("Kembali",Command.BACK,0);
                //menambahkan objek kedalam form 3
                f3.addCommand(cmdKembali2);
               
                f3.append(siKode);
                f3.append(siNama);
                f3.append(siSatuan);
                f3.append(siHarga);
                f3.append(siKet);
                f3.setCommandListener(this);
               
                d.setCurrent(f3);
            }
           
         
        }
    }
}

Minggu, 12 Februari 2012

Steps to Making the Game

Making a complex or unusual game is not easy. But if we want to try for sure there is a way out of her ..I would share what I get from Google. For the steps to make the game it self can be briefly described as follows :
  •     Making game idea : Before you start making games , we need to think about what kind of games that we  will create , how to play , what would make people happy to play the game we , and others
  •     The process of pre-production : at this stage we need to prepare for various technical issues related to the game that we will create , for example, what technology will be used ( eg, platform or programming language ) , visual art direction or the direction of the game to be made , and finalization game design that we will in the implementation of the game
  •     Production process : at this stage we just created art and programming to the game , the game should be developed as much as possible made ​​version that can be played , so it can be tested at the same time we can spread into the community of game developers to ask for input .
  •     Release process , at this stage we consider the game finished and we release to the market . But we need to be sure to keep an eye on the comments of people who play our games , if any reports or complaints about bugs or errors should we fix it quickly .

Approximately that the game development process , to flowchart you can seen in the page of BlitzGames .


What the Programing Language to Create Games



The programming language used to make the game very dependent on the platform or technology used . For computer games , there are a few commonly used languages ​​, among which are :
  •     C + + , even though they had been there long enough , C + + is still used to make a lot of gaming desktops , ranging from indie games like Crayon Physics Deluxe , even big games like Crysis 2 .
  •     C # , can be used in the manufacture of desktop games using XNA , DirectX , or Unity3D . Can also be used to create web games using Silverlight or Unity3D . Examples of web game created using C # and Unity3D is LiloCity from Agate Studio .
  •     Java can be used to create desktop games , web games ( with format Java Applet ) , even for mobile games . Examples of desktop games created using the Java example Spiral Knights .
  •     Action script 3 , commonly used in making web games Flash Games format , eg : flash games on Facebook such as Shopping Paradise made ​​by Agate Studio or flash games on game portals , such as Earl Grey and Rupert Guy that is also made ​​by Agate Studio .
  •     PHP , HTML , Javascript ; The programming languages ​​used to create web games , for example in Facebook like Football Saga .
  •     Objective- C , is the specific language used to create computer games that use the Apple Mac OS .
Our advice , learned only one , try to create a game to completion . Experience makes the game was very important , because you will be able to train the basic programming skills and algorithms . Because between programming languages ​​are not too different from the algorithm , so if will need to learn another programming language would be easier if one has mastered a programming language .

What games are most popular in Indonesia?




So far there has been no survey that examines the most popular game genres in Indonesia , but in general there are some genres of games are popular in Indonesia :
  •  FPS or First Person Shooter , for example Counter Strike or Point Blank . Counter Strike is one of the most widely played games when the new game center trends emerge around the 2000s .

  •  RPG or Role Playing Game : This genre is quite popular among Indonesian games , ranging from the classic RPG games like Final Fantasy , until MMORPG such as Ragnarok Online

  • Real Time Strategy : Warcraft or DotA for example , type of game is also popular in Indonesia , with a number of community and competition type game
But there are several factors of a game that we feel preferred by Indonesian people :
  • Free-to -play , the majority of gamers in Indonesia prefer F2P models such as subscription models like this than WoW

  • An active community , gamers who love the game in Indonesia active community , so they can interact with other players and compete in games

  •  Competition , Indonesian gamers excited to compete , and like a game that could facilitate them to compete with their friends , though not necessarily in the form of a formal competition

That data on the game genre that gamers like Indonesia could be more complete , Agate Studio create a survey for Indonesian gamers . Come browse for the progress of the Game Industry Indonesia : D