Rabu, 23 Juli 2014

Tugas Softskill_ Pengantar Teknologi Game



Codingan Pembuatan Game :


//////////////////////////////


//     Global Variables     //

//////////////////////////////

private Game game = new Game();

private Question question = new Question();

private Answer[] answers = new Answer[3];

  

// Coordinates for where to draw the buttons

private static final int[] buttonXCoords = {40, 240, 440};

  

// Limits for generating the random numbers in the questions

private static final int[] limits = {1, 301};

  

// To store the coordinates of the mouse when clicked

private float[] mouseCoordsOnClick = new float[2];

  

// Flag for whether we need a new question for the user

private boolean newQuestion = true;

  

// Flag for whether the game has been started

private boolean gameStarted = false;

  

// Flag for winning or losing the game

private int gameWon = 0;

  

// Create new object for the class Cars

private Cars cars = new Cars();

  

/////////////////////////////

//      Setup method       //

/////////////////////////////

void setup(){

  frameRate(30);

  size(600, 600);

  smooth();

  

  // Initialise the Answer objects

  for(int i=0; i<3; i++){

    answers[i] = new Answer();

      

    // Set each answer box's x-coordinate

    answers[i].setXCoord(buttonXCoords[i]);

  }

}

  

//////////////////////////////

//     Main draw method     //

//////////////////////////////

void draw(){

    // Draw background

    fill(255);

    rect(0, 0, width, 250);

      

    // If the button has been pressed to start the game

    if(gameStarted == true){

      // Game lost

      if(gameWon==1){

        fill(0);

        textSize(35);

        text("YOU LOST!", 215, 200);

      }

      else if(gameWon==2){

        fill(0);

        textSize(35);

        text("YOU WON!", 215, 200);

      }

      if(gameWon==0){

        // If a new question is needed (user answered)

        if(newQuestion == true){

          // No new questions until the user has answered

          newQuestion = false;

        

          // Draw background

          fill(255);

          rect(0, 250, width, 350);

      

          // New question!

          game.newQuestion();

        }

        cars.moveCars();

        cars.drawCars();

        cars.checkWin();

      }

    }

    else{

      fill(0);

      rect(200, 200, 200, 100);

      fill(255);

      textSize(25);

      text("Start Game", 235, 255);

    }

}

  

//////////////////////////////

//        Game class        //

//////////////////////////////

class Game{

  // Constructor

  public void Game(){

      

  }

    

  // Sets up and initiates the Question and Answer classes,

  // creating a new question and answer selection for the user

  public void newQuestion(){

    int rand=0;

    // Draw a new question to the screen

    question.drawQuestion();

  

    // Reset the 'correct' answer box

    for(int i=0; i<3; i++){

      answers[i].setCorrect(false);

    }

  

    // Randomly designate an answer box as the 'correct' one

    answers[int(random(0, 3))].setCorrect(true);

    

    for(int i=0; i<3; i++){

      if(answers[i].isCorrect()==true){

        // Give the 'correct' answer box the value of the answer that was worked out earlier

        answers[i].setValue(question.getAnswer());

      }

      else{

        // Give the two other answer boxes random numbers in the possible range

        do{

          rand = int(random(-149, 301));

        } while(rand==question.getAnswer());

        answers[i].setValue(int(random(-149, 301)));

      }

      

      // Draw the box that the answer sits in

      answers[i].drawButton();

      

      // Draw the answer text in the box

      answers[i].drawText();

    }

  }

}

  

//////////////////////////////

//      Question class      //

//////////////////////////////

class Question{

  private int num1;

  private int num2;

  private int operator;

  private int answer;

  private String questionString;

    

  // For use in building questionString

  private final String[] operators = {"+", "-", "*", "/"};

    

  // Constructor

  public void Question(){

      

  }

    

  // Used by drawQuestion to build a question to display to the

  // user and set fields we'll need later such as the answer

  private void createQuestion(){

    // Create the two random numbers

    num1 = int(random(limits[0], limits[1]));

    num2 = int(random(limits[0], limits[1]));

      

    // Select a random operator (multiplication and division aren't used)

    int opSelect = int(random(0, 2));

      

    switch(opSelect){

      case 0:

        answer = num1 + num2;

        break;

      case 1:

        answer = num1 - num2;

        break;

      case 2: // Unused

        answer = num1 * num2;

        break;

      case 3: // Unused

        answer = num1 / num2;

        break;

    }

    // Build the question string we want to display to the user

    questionString = num1 + " " + operators[opSelect] + " " + num2 + " = ?";

  }

    

  // Create and display the question string to the user

  public void drawQuestion(){

    createQuestion();

    fill(0);

    textSize(30);

    text(questionString, 175, 300);

  }

    

  // Used for returning the correct answer to the random question

  public int getAnswer(){

    return answer;

  }

    

  // Use the mouse coordinates stored by the mouseclicked event handler

  // and the known coordinates of the answer boxes to find which answer

  // the user actually clicked on, returns -1 if no box was clicked.

  public int getAnswerChoice(){

    // For simplicity

    float x = mouseCoordsOnClick[0];

    float y = mouseCoordsOnClick[1];

      

    if((y>=475) && (y<=550)){ // Check if mouse is on the right level (y-coordinates)

      if((x>=40) && (x<=165)){ // Leftmost box

        //print("First answer\n");

        return 0;

      }

      else if((x>=240) && (x<=365)){ // Middle box

        //print("Second answer\n");

        return 1;

      }

      else if((x>=440) && (x<=565)){ // Rightmost box

        //print("Third answer\n");

        return 2;

      }

      else{

        return -1;

      }

    }

    else{

      return -1;

    }

  }

    

  // Check if the user's answer pick was the correct one

  public void checkAnswer(){

    int choice = getAnswerChoice();

    // A return value of -1 indicates that the user

    // did not click within any of the answer boxes

    if(choice==-1){

      print("Not a button\n");

      return;

    }

    else if(answers[choice].isCorrect()==true){

      print("Correct answer\n");

      cars.speedUp();

    }

    else if(answers[0].isCorrect()==false){

      print("Wrong answer\n");

      cars.slowDown();

    }

    // Set the flag to start a new question

    newQuestion = true;

  }

}

  

  

//////////////////////////////

//       Answer class       //

//////////////////////////////

class Answer{

  // X-coordinate of the box to draw

  private int xCoord;

  // Value of the answer to display

  private int value = 0;

  // Whether this answer box is the 'correct' one

  private boolean correct = false;

    

  // Constructor

  public void Answer(){

        

  }

    

  // Draw the box in which the answer text sits

  public void drawButton(){

    fill(0);

    rect(xCoord, 475, 125, 75);

  }

    

  // Draw the text onto the box

  public void drawText(){

    fill(255);

    text(value, xCoord+35, 525);

  }

    

  // Mutator for the x-coordinate

  public void setXCoord(int newXCoord){

    xCoord = newXCoord;

  }

    

  // Mutator for the answer value

  public void setValue(int newValue){

    value = newValue;

  }

    

  // Accessor for the answer value

  public int getValue(){

    return value;

  }

    

  // Mutator for the 'correct answer box' boolean

  public void setCorrect(boolean isCorrect){

    correct = isCorrect;

  }

    

  // Accessor for the 'correct answer box' boolean

  public boolean isCorrect(){

    return correct;

  }

}

  

//////////////////////////////

//        Cars Class        //

//////////////////////////////

class Cars{

  float car1speed;

  float car2speed;

  float x1;

  float x2;

  boolean value;

  boolean correct;

  boolean win;

    

  //Initialise Variables

  public Cars(){

    x1 = 0;

    x2 = 0;

  }

    

  public void drawCars(){

    //Draw two cars

    fill(#FF0000);

    rect(x1, 120, 50, 20);

    fill(#03FF04);

    rect(x2, 180, 50, 20);

     

    // To indicate that the green car is the player's

    fill(0);

    textSize(13);

    text("Player", x2+10, 195);

  }

  

  public void moveCars(){

    x1 += 0.4;

    x2 += 0.25;

  }

      

  public void speedUp(){

    x2 += 15;

  }

    

  public void slowDown(){

    x2 -= 25;

  }

    

  public void checkWin(){

    if(x1>=550){

      gameWon=1;

    }

    else if(x2>=550){

      gameWon=2;

    }

  }

}

////////////////////////////////

//  Mouseclick event handler  //

////////////////////////////////

void mouseClicked(){

  // Store the mouse's current coordinates

  // for use in another method

  if(gameStarted==true){

    mouseCoordsOnClick[0] = mouseX;

    mouseCoordsOnClick[1] = mouseY;

    question.checkAnswer();

  }

  else{

    if(mouseX>200 && mouseX<400 && mouseY>200 && mouseY<300){

      gameStarted = true;

    }

  }

}
Yang harus dijelasin kodingan di blog  jelasin secara singkat aja gak usah menyeluruh nanti di blognya dikasih link youtubenya batas akhir sampe uas gundar kelar 23 juli:

/////////////////////////////

//      Setup method       //

/////////////////////////////

void setup(){

  frameRate(30);

  size(600, 600);

  smooth();

  

  // Initialise the Answer objects

  for(int i=0; i<3; i++){

    answers[i] = new Answer();

      

    // Set each answer box's x-coordinate

    answers[i].setXCoord(buttonXCoords[i]);

  }

}

  
//////////////////////////////

//        Cars Class        //

//////////////////////////////

class Cars{

  float car1speed;

  float car2speed;

  float x1;

  float x2;

  boolean value;

  boolean correct;

  boolean win;

    

  //Initialise Variables

  public Cars(){

    x1 = 0;

    x2 = 0;

  }

    

  public void drawCars(){

    //Draw two cars

    fill(#FF0000);

    rect(x1, 120, 50, 20);

    fill(#03FF04);

    rect(x2, 180, 50, 20);

     

    // To indicate that the green car is the player's

    fill(0);

    textSize(13);

    text("Player", x2+10, 195);

  }

  

  public void moveCars(){

    x1 += 0.4;

    x2 += 0.25;

  }

      

  public void speedUp(){

    x2 += 15;

  }

    

  public void slowDown(){

    x2 -= 25;

  }

    

  public void checkWin(){

    if(x1>=550){

      gameWon=1;

    }

    else if(x2>=550){

      gameWon=2;

    }

  }

}

////////////////////////////////

//  Mouseclick event handler  //

////////////////////////////////

void mouseClicked(){

  // Store the mouse's current coordinates

  // for use in another method

  if(gameStarted==true){

    mouseCoordsOnClick[0] = mouseX;

    mouseCoordsOnClick[1] = mouseY;

    question.checkAnswer();

  }

  else{

    if(mouseX>200 && mouseX<400 && mouseY>200 && mouseY<300){

      gameStarted = true;

    }

  }

}


Link Youtube : http://www.youtube.com/watch?v=hESaNfg8bmc&feature=youtu.be
 

Senin, 13 Januari 2014

TUGAS EBOOK BAB III SOFTWARE DAN TOOLS



BAB III
SOFTWARE DAN TOOLS
SOFTWARE
Software yang digunakan dalam implementasi ini adalah Adobe Photoshop. Adobe Photoshop, atau biasa disebut Photoshop, adalah perangkat lunak editor citra buatan Adobe Systems yang dikhususkan untuk pengeditan foto/gambar dan pembuatan efek. Perangkat lunak ini banyak digunakan oleh fotografer digital dan perusahaan iklan sehingga dianggap sebagai pemimpin pasar (market leader) untuk perangkat lunak pengolah gambar/foto, dan, bersama Adobe Acrobat, dianggap sebagai produk terbaik yang pernah diproduksi oleh Adobe Systems. Versi kedelapan aplikasi ini disebut dengan nama Photoshop CS (Creative Suite), versi sembilan disebut Adobe Photoshop CS2, versi sepuluh disebut Adobe Photoshop CS3 , versi kesebelas adalah Adobe Photoshop CS4 , versi keduabelas adalah Adobe Photoshop CS5 , dan versi yang terakhir (ketigabelas) adalah Adobe Photoshop CS6.
Photoshop tersedia untuk Microsoft Windows, Mac OS X, dan Mac OS; versi 9 ke atas juga dapat digunakan oleh sistem operasi lain seperti Linux dengan bantuan perangkat lunak tertentu seperti CrossOver.
TOOLS
  • Zoom Tool (Z), Untuk memperbesar tampilan gambar
Klik objek yang akan diperbesar. Zoom juga bisa di gunakan untuk memperkecil gambar. Gambar yang akan di perbesar secara terus-menerus dapat di lakukan sambil meng-klik shift sebaliknya jika ingin memperkecil gambar lakukan klik + alt.
  • Set Color, Untuk merubah warna
Isi warna pada area yang tersedia dengan cara, pilih Edit > Fill > Use pilih Color atau shift + F5 > Use pilih Color. Jika anda ingin mengisi warna pada suatu area itu saja tanpa mempengaruhi area lain lakukan dengan cara menekan tombol shift + ctrl + del bersamaan.
  • Brightness / Contrast
Brightness digunakan untuk mengatur kecerahan gambar, Contrast digunakan untuk mengatur ketajaman gambar,  Gunakan menu image -> Adjustment -> Brightness / Contrast.
  • Hue / Saturation
Hue / Saturation digunakan untuk mengganti warna pada keseluruhan gambar / seleksi. Hue adalah corak warna sedangkan Saturation adalah tebal/tipisnya warna. Gunakan tool ini pada image -> Adjustment -> Hue / Saturation. Perubahan warna dapat diatur pada channel master.

Kamis, 28 November 2013

Tugas Softskill ke tiga_Tentang Tutorial software modelling



“Tutorial software modelling”
Langkah-langkah penggunaan CorelDraw dan contoh  cara pembuatan iPod cover menggunakan CorelDraw.

Nama: A’an
Npm: 50411003
Kelas: 3IA05
Mata kuliah softskill: Desain pemodelan grafik #
Dosen: Ali Akbar


1.  Pertama gunakan Polygon Tool, Buatlah objek segi lima pada lembar kerja, Tekan tombol Ctrl saat menggambar objek untuk membuat segi lima objek tampak proporsional.


2.  Mengganti nilai Number of Point or Side on Polygon, Star, and Complex Star pada property bar menjadi 8 untuk mengubah objek segi lima menjadi segi delapan.3.       Klik dan tarik garis panah berwarna biru yang muncul ke arah luar untuk membuat sisi objek melengkung seperti berikut.


4.  Ulangi langkah serupa untuk melengkung sisi objek yang lain hingga hasilnya tampak menyerupai objek bunga.


5. Untuk mengatur perataannya, seleksi kedua objek lingkaran dan bunga, klik tombol align and Distribute pada property bar. Padapanel  Align and Distribute, centangi opsi Center di bagian atas dan samping kiri panel, kemudian klik apply dan akhiri dengan Close, seperti terlihat pada gambar di bawah ini.


6.  Kemudian seleksi hanya objek bunga, beri nama fill color sesuai kehendak dan hapus garis outline dengan klik  Outline Tool>No Outline seperti pada gambar di bawah ini.


7.  Klik menu Effects > Contour untuk mmembuka panel Coutour pada tab Countor Step pilih tipe Outside dengan nilai Offset: 0,05 (sesuai kehendak) dan Step: 2, Kemudian klik apply.


8.Klik menu Arrage > Break Countour Group Apart untuk memisahkan objek bunga dengan countournya. 
9.  Kemudian dapat juga mengganti warna fill objek countour hingga tampak senada dengan warna objek bunga. Ungroup terlebih dahulu objek countour untuk memisahkan masing0-masing warnanya.


 10. Denga teknik serupa buat juga countour pada objek lingkaran yang berada di tengah-tengah objek bunga.


11. Copy dan paste objek bunga kemudian susunlah seperti gambar berikut, dan dapat menggantikan ukuran dan warna fill objek hingga tampak lebih bervariasi.

 

12.   Buatlah objek dasar berbentuk iPod menggunakan Rectangle Tool.



13.   Letakkan objek iPod di depan objek bunga. Seleksi objek iPod, tekan ship dan klik objek bunga hingga terseleksi. Klik tombol intersect pada property bar untuk membuat objek prsinggunngan antara iPod dan bunga. Hapuslah objek bunga awal hingga hasilnya tampak seperti gambar berikut ini.


14.   Gunakan Rectange Tool dan buat objek tegak pesrsegi seperti berikut.


15.   Buat lagi objek persegi panjang dengan ukuran lebih kecil. Perbanyak objek ini dan gabungkan dengan objek awal hingga membentuk ruas-ruas bambu seperti  pada gambar berikut.


16.   Seleksi semua objek bambu dan ruas-ruasnya, klik tombol weld pada property bar untuk menyatukan objek-objek tersebut. 
17.   Ulangi teknik di atas untuk melengkungkan sisi objek yang lain. Aturan sedemikian rupa hingga membentuk seperti batang bambu.


18.   Gunakan Pen Tool dan buat objek dasar daun dengan langkah-langkah pembuatan sperti gambar di bawah ini. Pastikan  objek ini menjadi objek kurva tertutup (titik node akhir harus berhubungan degan titik node awal).


19.   Gunakan Shape Tool dan teknik Countour Line To Curve untuk melengkungkan sisi-sisi objek hingga menjadi objek daun bambu.


20.   Perbanyak objek daun ini dengan teknik copy paste objek. Susunlah dengan objek batang bambu dan aturlah bentuk, ukuran, dan posisi daun hingga menyerupai bentuk aslinya sesuai kreasi kita.


21.   Seleksi semua objek batang bambu dan dedaunannya, klik tombol Weld pada property bar untuk menyatukan seperti gambar berikut ini.


22.   Buatlah lingkaran bersinggungan dengan objek batang bambu sperti berikut.


23.   Seleksi kedua objek bambu dan lingkaran keudian klik tombol Intersect pada property bar.


24.   Ceri warna fill objek sesuai kehendak dan hapus garis outline.


25.   Langkah terakhir tambahkan Artistik Teks yang menarik. Hasil akhir desain tampak seperti gambar berikut ini.

Daftar Pustaka:

Senin, 14 Oktober 2013

RIVIEW JURNAL MENGENAI FONT PADA DESAIN GRAFIS ATAU TIPOGRAFI DESAIN GRAFIS


Review Jurnal

 FONT PADA DESAIN GRAFIS ATAU TIPOGRAFI DESAIN GRAFIS
A’an, 50411003, 3ia05

Tipograpi dalam desain garfis
Oleh : Danton Sihombing MFA

Daftar Isi :

Pendahuluan


Pengertian font

Huruf memiliki perpaduan nilai fungsional dan nilai estetik

Huruf memiliki berbagai organ yang berbeda

Terminologi yang umum di gunakan dalam penamaan setiap komponen visual yang gterstruktur dalam fisik huruf

Sistem pengukuran huruf dalam tipografi 


Kesimpulan

Daftar pustaka


A. Pendahuluan
Sebelum membahas lebih jauh mengenai isi paper maka terlebih dahulu akan diterangkan apa yang dimaksud dengan font pada desain grafis.  

B. Pengertian font
Font adalah ukuran, bentuk, dan gaya desain huruf, Atau font biasa juga di pakai dalam tulisan teks dalam sebuah komputer.

C. Huruf memiliki perpaduan nilai fungsional dan nilai estetik

Salah satu aktivitas yang sangat penting dalam kehidupan manusia adalah berkomunikasi, Baik itu dalam melakukan kegiatan belajar, bekerja, maupun bermain. Secara tidak sadar dalam kehidupan sehari-hari kita merupakan partisipan dari kegiatan berkomunikasi, baik sebagai si pengirim pesan maupun selaku si penerima pesan. Huruf merupakan bagian terkecil dari struktur bahasa tulis dan merupakan elemen dasar untuk membangun sebuah kata atau kalimat.

D. Huruf memiliki berbagai organ yang berbeda

Setiap bentuk huruf dalam sebuah alfabert memiliki keunikan fisik yang menyebabkan mata kita dapat membedakan antara huruf  'm'  dengan 'p' atau 'C' dengan 'Q', Keunikan ini di sebabkan oleh cara mata kita melihat korelasi antara komponen visual yang satu dengan yang lain.

E. Terminologi yang umum di gunakan dalam penamaan setiap komponen visual yang gterstruktur dalam fisik huruf

1. Baseline 

Sebuah garis maya lurus horisontal yang menjadi batas dari bagian terbawah dari setiap huruf besar.

2.  Capline

Sebuah garis maya lurus horisontal yang menjadi batas dari bagian teratas dari setiap huruf besar.

3. Meanline

Sebuah garis maya lurus horisontal yang menjadi batas dari bagian teratas dari badan setiap huruf kecil.

4. x-Height

Jarak ketinggian dari baseline sampai ke meanline. x-Height merupakan tinggi dari badan huruf kecil. Cara yang termudah mengukur ketinggian badan huruf kecil adalah dengan menggunakan huruf 'x'.

5.  Ascender

Bagian dari huruf kecil yang posisinya tepat berada di antara meanline dan capline.

6. Descender

Bagian dari huruf kecil yang posisinya tepat berada di baselin

F. Sistem pengukuran huruf dalam tipografi

Apabila kita perhatikan susunan huruf-huruf pada sebuah naskah dalam majalah, buku ataupun brosur, makan akan terlihat bahwa susunan dari huruf-huruf tersebut memiliki suatu disiplin dalam pengukuran dan proporsi. Hal tersebut biasanya mencakup pengukuran tinggi huruf, panjang baris huruf, jarak antara huruf yang satu dengan yang lain, serta jarak antar basis.

G. Kesimpulan

Jadi font atau pada tipografi desain grafis ini, menyatakan bahwa bentuk huruf sangat penting dalam aktivitas dan kegiatan manusia dalam sehari-hari, bekerja, kuliah, sekolah d,an sebaginya di sini juga huruf mempunyai aturan dan bagian tertentu.

H. Daftar putaka