KATA PENGANTAR
Puji dan syukur penulis panjatkan kehadapan Tuhan Yang Maha Esa, karena atas Berkat RahmatNya, akhirnya penulis dapat menyelesaikan Tugas Akhir ini. Tugas Akhir yang berjudul “RANCANG BANGUN GAME BALANCED BALL PADA PLATFORM
ANDROID
DENGAN
MENGGUNAKAN
SENSOR
ACCELEROMETER” ini disusun sebagai syarat untuk memenuhi sebagian persyaratan menyelesaikan Program Sarjana S-1 pada Program Studi Teknologi Informasi Universitas Udayana. Dalam penyusunan Tugas Akhir ini, penulis mendapatkan petunjuk dan bimbingan dari berbagai pihak. Sehubungan dengan hal tersebut pada kesempatan ini penulis menyampaikan ucapan terima kasih kepada : 1.
Bapak Prof. Ir. Ngakan Putu Gede Suardana, M.T.,Ph.D selaku Dekan Fakultas Teknik Universitas Udayana.
2.
Bapak Dr. Eng. I Putu Agung Bayupati, S.T.,M.T. selaku ketua Jurusan Teknologi Informasi Fakultas Teknik Universitas Udayana.
3.
Bapak A.A. Ketut Agung Cahyawan W., S.T.,M.T. selaku Dosen pembimbing I yang telah memberikan banyak semangat, motivasi, petunjuk dan arahan dalam penyusunan laporan ini.
4.
Ibu Ni Kadek Dwi Rusjayanti, S.T.,M.T. selaku Dosen Pembimbing II yang telah memberikan semangat dan motivasi serta bimbingan dalam penyusunan laporan ini.
5.
Bapak I Made Sukarsa, S.T.,M.T. sebagai Pembimbing Akademis yang telah memberikan bimbingan dan arahan selama menempuh kuliah di Jurusan Teknologi Informasi Fakultas Teknik Universitas Udayana.
6.
Segenap dosen dan staf pegawai Teknologi Informasi Fakultas Teknik Universitas Udayana yang telah banyak membantu selama proses perkuliahan.
vi
7.
Kedua orang tua, I Made Arya Sukadana, Ni Nengah Wirati serta adik Ni Made Nia Wira Aryadewi dan keluarga yang telah memberikan dukungan moril, material, dan doa selama menempuh kuliah dan penyusunan Tugas Akhir ini.
8.
Ni Luh Putu Novi Ambariani yang setia menemani dan memberi semangat selama penyusunan Tugas Akhir ini.
9.
Teman-teman seperjuangan Foreplay dan yang lainnya yaitu Merta Prayuda, Aris Andhika, Widarma Eka Putra, Hagi Semara Putra, dan Lanang Trisna, atas motivasinya yang luar biasa, dukungan, saran-saran, bantuan, walekan, kegembiraan disela-sela kesibukan surat-menyurat.
10.
Serta terima kasih teman-teman seperjuangan TI 2012 lainya atas dukungan dan saran-sarannya yang tak dapat penulis utarakan satu persatu. Penulis menyadari sepenuhnya bahwa Tugas Akhir ini masih terdapat
kekurangan yang berada di luar kemampuan penulis, untuk itu penulis mengharapkan sumbangan saran dan kritik yang bersifat membangun guna perbaikan dan pengembangan lebih lanjut. Akhir kata penulis mohon maaf jika ada kesalahan dalam penyusunan Tugas Akhir ini. Semoga Tugas Akhir ini dapat bermanfaat bagi pembaca serta perkembangan teknologi informasi walaupun masih jauh dari sempurna.
Badung, 26 September 2016 Penulis
(I Putu Joddy Wira Ananta)
vii
ABSTRAK
Game Balanced Ball merupakan game yang terinspirasi dari permainan Marble Maze. Marble Maze bukanlah permainan yang terkenal di Indonesia, namun permainan ini cukup terkenal di beberapa negara tertentu. Permainan Marble Maze di beberapa negara tersebut sering disebut permainan Labyrinth. Permainan Marble Maze pernah dibuat dalam format game komputer dengan menggunakan keyboard atau mouse sebagai media penggerak. Game Balanced Ball dikembangkan pada penelitian ini dengan penerapan cara bermain yang berbeda, yaitu dengan penerapan sensor accelerometer sehingga permainan dapat dimainkan tanpa perangkat tambahan, cukup dengan menggerakkan smartphone. Permainan dirancang berlatar persegi panjang dengan bidang menyerupai tanah dan diberi tembok sebagai labirin, serta rintangan berupa lubang dan bom. Game Balanced Ball dikembangkan terdiri dari tiga level, masing-masing level mempunyai empat stage, dan memiliki empat karakter bola dengan kecepatan yang berbeda-beda. User dapat menyelesaikan game yang dihasilkan dengan menggerakkan bola hingga mencapai titik akhir dengan menghindari rintangan dan mengumpulkan koin yang digunakan sebagai score. Penerapan sensor accelerometer digunakan user untuk menggerakkan karakter bola dengan menggerakkan smartphone, gerakan karakter bola yang dihasilkan sesuai dengan arah dan kemiringan smartphone. Kata kunci: Marble Maze, Ballanced Ball, Android, Game, Accelerometer
viii
ABSTRACT
Balanced Ball Game is a game inspired by the game Marble Maze. Marble Maze is not a game that is famous in Indonesia, but the game is quite well known in certain countries. Marble Maze game in some countries is often called the game Labyrinth. Marble Maze game ever created in a computer game format by using a keyboard or mouse as a media drive. Balanced Ball Game was developed in this study with the application of a different way of playing, which is the application of accelerometer sensor. Rectangular playing on the ground and given a field resembling a maze of walls and barriers such as multiple holes and bombs. Balanced Ball game has four characters balls with different speeds. Balanced Ball Game has three levels and each level has four stages. Users can finish the game by moving the ball until it reaches the end point to avoid obstacles and collect coins used as the score in the game. Application of accelerometer sensor to move the ball to the left, right, up, or down to avoid obstacles and to the finish. Moving the ball character adapted to the direction of motion of smartphones, this is because the application of the existing accelerometer sensor on the game. Keywords: Marble Maze, Ballanced Ball, Android, Game, Accelerometer
ix
DAFTAR ISI HALAMAN SAMPUL .......................................................................................... i HALAMAN JUDUL ............................................................................................. ii LEMBAR PERNYATAAN ................................................................................. iii LEMBAR PENGESAHAN TUGAS AKHIR .................................................... iv BERITA ACARA ...................................................................................................v KATA PENGANTAR .......................................................................................... vi ABSTRAK .......................................................................................................... viii ABSTRACT .......................................................................................................... ix DAFTAR ISI ...........................................................................................................x DAFTAR GAMBAR .......................................................................................... xiii DAFTAR TABEL ................................................................................................xv DAFTAR KODE PROGRAM .......................................................................... xvi BAB I PENDAHULUAN .......................................................................................1 1.1 Latar Belakang .............................................................................................1 1.2 Rumusan masalah .........................................................................................3 1.3 Batasan Masalah ...........................................................................................3 1.4 Tujuan...........................................................................................................4 1.5 Manfaat .........................................................................................................4 1.6 Sistematika Penulisan ...................................................................................4 BAB II TINJAUAN PUSTAKA............................................................................6 2.1. State of the Art ..............................................................................................6 2.2 Marble Maze ................................................................................................8 2.3 Pengenalan Accelerometer .........................................................................11 2.4 Game ..........................................................................................................12 2.4.1 Genre Game .........................................................................................13 2.5 Corona SDK ...............................................................................................15 2.6 LUA ............................................................................................................16 BAB III METODE DAN PERANCANGAN SISTEM .....................................19 3.1 Tempat dan Waktu Penelitian ....................................................................19 3.2 Alur Penelitian............................................................................................19 3.3 Sumber data ................................................................................................20 3.3.1 Metode Pengambilan Data ...................................................................21 3.4 Gambaran Umum .......................................................................................21 3.5 Alur Program ..............................................................................................22 3.6 Perancangan Game .....................................................................................24 3.6.1 Diagram Use Case ...............................................................................24 3.6.2 Activity Diagram Menu Play ................................................................25 3.6.3 Activity Diagram Menu Option ............................................................27 3.6.4 Activity Diagram Menu Credit .............................................................28 3.6.5 Activity Diagram Exit Game ................................................................29 x
3.7 Alur Level Permainan .................................................................................30 3.8 Perancangan Grafis ....................................................................................35 3.8.1 Desain Karakter ...................................................................................35 3.8.2 Desain Button .......................................................................................36 3.8.3 Desain Rintangan .................................................................................37 3.8.4 Desain Arena........................................................................................38 BAB IV PEMBAHASAN DAN ANALISIS SISTEM .......................................41 4.1 Konfigurasi Hardware ...............................................................................41 4.2 Konfigurasi Software..................................................................................41 4.3 Penerapan Sensor Accelerometer ...............................................................41 4.4 Uji Coba Penerapan Accelerometer. ..........................................................43 4.5 Hasil Perancangan ......................................................................................47 4.5.1 Splash Scene ........................................................................................48 4.5.2 Scene Main Menu.................................................................................49 4.5.3 Scene Credit .........................................................................................50 4.5.5 Scene Select Level ................................................................................51 4.5.6 Scene Stage Level Easy ........................................................................52 4.5.7 Scene Stage 1 Level Easy .....................................................................53 4.5.8 Scene Stage 2 Level Easy .....................................................................53 4.5.9 Scene Stage 3 Level Easy .....................................................................54 4.5.10 Scene Stage 4 Level Easy .....................................................................55 4.5.11 Scene Stage Level Medium ..................................................................55 4.5.12 Scene Stage 1 Level Medium ...............................................................56 4.5.13 Scene Stage 2 Level Medium ...............................................................57 4.5.14 Scene Stage 3 Level Medium ...............................................................57 4.5.15 Scene Stage 4 Level Medium ...............................................................58 4.5.16 Scene Stage Level Hard .......................................................................59 4.5.17 Scene Stage 1 Level Hard ....................................................................59 4.5.18 Scene Stage 2 Level Hard ....................................................................60 4.5.19 Scene Stage 3 Level Hard ....................................................................61 4.5.20 Scene Stage 4 Level Hard ....................................................................61 4.5.21 Scene Option ........................................................................................62 4.5.22 Scene Tutorial ......................................................................................63 4.5.23 Scene Kalah..........................................................................................63 4.5.24 Scene Menang ......................................................................................64 4.5.25 Scene Pause .........................................................................................65 4.6 Uji Coba pada Device .................................................................................65 4.7 Pengujian Game oleh User .........................................................................75 4.8 Analisa Sistem ............................................................................................76 4.8.1 Metode Pengambilan Data ...................................................................76 4.8.2 Kriteria Variabel ..................................................................................76 4.8.2.1 Aspek Grafis Game ......................................................................... 76 4.8.2.2 Aspek Rekayasa Perangkat Lunak .................................................. 77 xi
4.8.2.3 Aspek Hiburan ................................................................................ 77 4.8.3 Penetapan Skor ....................................................................................77 4.9 Perhitungan dan Penyajian Data ................................................................77 4.9.1 Aspek Grafis ........................................................................................78 4.9.2 Aspek Rekayasa Perangkat Lunak .......................................................80 4.9.3 Aspek Hiburan .....................................................................................83 4.10 Kelebihan dan Kekurangan Sistem ............................................................85 4.10.1 Kelebihan Sistem .................................................................................85 4.10.2 Kekurangan Sistem ..............................................................................85 BAB V PENUTUP ................................................................................................86 5.1 Simpulan.....................................................................................................86 5.2 Saran ...........................................................................................................86 DAFTAR PUSTAKA ...........................................................................................88
xii
DAFTAR GAMBAR
Gambar 2.1 Permainan Fisika ................................................................................. 6 Gambar 2.2 Permainan Labyrinth (Sumber : en.wikipedia.org) ............................. 9 Gambar 2.3 Permainan Marble Maze (Sumber: Google.com) ............................. 10 Gambar 2.4 Prinsip Kerja Accelerometer (sumber: andromin.com)..................... 11 Gambar 2.5 Logo Corona (sumber:coronalabs.com) ............................................ 15 Gambar 2.6 Logo Lua (sumber:wikipedia.com) ................................................... 17 Gambar 3.1 Diagram alur penelitian ..................................................................... 20 Gambar 3.2 Diagram Gambaran Umum ............................................................... 22 Gambar 3.3 Alur Permainan ................................................................................. 23 Gambar 3.4 Diagram Use Case Game Balanced Ball........................................... 24 Gambar 3.5 Activity Diagram Menu Play ............................................................. 26 Gambar 3.6 Activity Diagram Menu Option ......................................................... 27 Gambar 3.7 Activity Diagram Menu Credit .......................................................... 28 Gambar 3.8 Activity Diagram Exit Game .............................................................. 29 Gambar 3.9 Alur Game Level Pertama ................................................................. 31 Gambar 3.10 Alur Game Level Kedua .................................................................. 32 Gambar 3.11 Alur Game Level Ketiga .................................................................. 34 Gambar 3.12 Desain Arena ................................................................................... 38 Gambar 4.1 Titik Awal Bola Abu-abu .................................................................. 44 Gambar 4.2 Titik Akhir Bola Abu-abu ................................................................. 44 Gambar 4.3 Titik Awal Bola Ungu ....................................................................... 45 Gambar 4.4 Titik Akhir Bola Ungu ...................................................................... 45 Gambar 4.5 Titik Awal Bola Biru ......................................................................... 46 Gambar 4.6 Titik Akhir Bola Biru ........................................................................ 46 Gambar 4.7 Titik Awal Bola Merah ..................................................................... 47 Gambar 4.8 Titik Akhir Bola Merah ..................................................................... 47 Gambar 4.9 Tampilan Splash scene 1 ................................................................... 49 Gambar 4.10 Tampilan Splash scene 2 ................................................................. 49 Gambar 4.11 Tampilan Scene Main Menu ............................................................ 50 Gambar 4.12 Tampilan Scene Credit .................................................................... 50 Gambar 4.13 Tampilan Scene Select Character ................................................... 51 Gambar 4.14 Tampilan Scene Level...................................................................... 52 Gambar 4.15 Tampilan Scene Stage Level Easy ................................................... 52 Gambar 4.16 Tampilan Scene Stage 1 Level Easy ................................................ 53 Gambar 4.17 Tampilan Scene Stage 2 Level Easy ................................................ 54 Gambar 4.18 Tampilan Scene Stage 3 Level Easy ................................................ 54 Gambar 4.19 Tampilan Scene Stage 4 Level Easy ................................................ 55 Gambar 4.20 Tampilan Scene Stage Level Medium.............................................. 56 Gambar 4. 21 Tampilan Scene Stage 1 Level Medium.......................................... 56
xiii
Gambar 4.22 Tampilan Scene Stage 2 Level Medium........................................... 57 Gambar 4.23 Tampilan Scene Stage 3 Level Medium........................................... 58 Gambar 4.24 Tampilan Scene Stage 4 Level Medium........................................... 58 Gambar 4.25 Tampilan Scene Stage Level Hard .................................................. 59 Gambar 4.26 Tampilan Scene Stage 1 Level Medium........................................... 60 Gambar 4.27 Tampilan Scene Stage 2 Level Medium........................................... 60 Gambar 4.28 Tampilan Scene Stage 3 Level Medium........................................... 61 Gambar 4.29 Tampilan Scene Stage 4 Level Medium........................................... 62 Gambar 4.30 Tampilan Scene Option ................................................................... 62 Gambar 4.31 Tampilan Scene Tutorial ................................................................. 63 Gambar 4.32 Tampilan Scene Kalah ..................................................................... 64 Gambar 4.33 Tampilan Scene Menang ................................................................. 64 Gambar 4.34 Tampilan Scene Pause .................................................................... 65 Gambar 4.35 Tampilan Menu utama pada Asus Zenfone C ................................. 66 Gambar 4.36 Tampilan Select Character pada Asus Zenfone C .......................... 66 Gambar 4.37 Tampilan Select Level pada Asus Zenfone C .................................. 67 Gambar 4.38 Tampilan Stage Level Easy pada Asus Zenfone C .......................... 67 Gambar 4.39 Tampilan Stage 1 Level Easy pada Asus Zenfone C ....................... 67 Gambar 4.40 Tampilan Stage 2 Level Easy pada Asus Zenfone C ....................... 68 Gambar 4.41 Tampilan Stage 3 Level Easy pada Asus Zenfone C ....................... 68 Gambar 4.42 Tampilan Stage 4 Level Easy pada Asus Zenfone C ....................... 69 Gambar 4.43 Tampilan Stage Level Medium pada Asus Zenfone C .................... 69 Gambar 4.44 Tampilan Stage 1 Level Medium pada Asus Zenfone C ................. 70 Gambar 4.45 Tampilan Stage 2 Level Medium pada Asus Zenfone C ................. 70 Gambar 4.46 Tampilan Stage 3 Level Medium pada Asus Zenfone C ................. 70 Gambar 4.47 Tampilan Stage 4 Level Medium pada Asus Zenfone C ................. 71 Gambar 4.48 Tampilan Stage Level Hard pada Asus Zenfone C ......................... 71 Gambar 4.49 Tampilan Stage 1 Level Hard pada Asus Zenfone C ...................... 72 Gambar 4.50 Tampilan Stage 2 Level Hard pada Asus Zenfone C ...................... 72 Gambar 4.51 Tampilan Stage 3 Level Hard pada Asus Zenfone C ...................... 72 Gambar 4.52 Tampilan Stage 3 Level Hard pada Asus Zenfone C ...................... 73 Gambar 4.53 Tampilan Kalah pada Asus Zenfone C ........................................... 73 Gambar 4.54 Tampilan Menang pada Asus Zenfone C ........................................ 74 Gambar 4.55 Tampilan Credit pada Asus Zenfone C ........................................... 74 Gambar 4.56 Tampilan Option pada Asus Zenfone C .......................................... 74 Gambar 4.57 Aspek Grafis.................................................................................... 80 Gambar 4.58 Aspek Perangkat Lunak .................................................................. 82 Gambar 4.59 Aspek Hiburan ................................................................................ 84
xiv
DAFTAR TABEL
Tabel 3.1 Tabel Karakter....................................................................................... 35 Tabel 3.2 Desain Button ........................................................................................ 36 Tabel 3.3 Desain Rintangan .................................................................................. 38 Tabel 3.4 Atribut Bola........................................................................................... 39 Tabel 4.1 Pengujian Game .................................................................................... 75 Tabel 4.2 Penilaian Responden Terhadap Grafis .................................................. 78 Tabel 4.3 Penilaian Responden Terhadap Rekayasa Perangkat Lunak ................ 80 Tabel 4.4 Penilaian Responden Terhadap Hiburan ............................................... 83
xv
DAFTAR KODE PROGRAM
Kode Program 4.1 Penerapan Accelerometer ....................................................... 42 Kode Program 4.2 Penerapan Kecepatan Bola Abu-abu ...................................... 42 Kode Program 4.3 Penerapan Kecepatan Bola Ungu ........................................... 42 Kode Program 4.4 Penerapan Kecepatan Bola Biru ............................................. 43 Kode Program 4.5 Penerapan Kecepatan Bola Merah .......................................... 43
xvi