Giter Site home page Giter Site logo

pbo's Introduction

Last - Ninja


Last - Ninja

Last - Ninja
(Tugas Besar PBO RD-10)

Contributors Pygame


Description of Project

Proyek yang kami buat yaitu Proyek game sederhana bernama Last - Ninja, Last - Ninja adalah sebuah game yang berkonsep sama seperti game Dinosaurus yang ada di google chrome, jadi nanti ada sebuah character yang dapat digerakan oleh user, character dapat digerakan dengan cara menekan tombol panah atas untuk melompat dan panah bawah untuk menunduk.

How to Run a Game

  • Install Dependecies

git clone https://github.com/Chrisnico123/PBO.git
cd PBO
pip install pygame
  • Run a Game

python main.py


How to Run a Game in Docker (Linux)


Step 1

Buka Terminal pada Linux anda masing-masing dan pastikan docker sudah terinstall di komputer anda.

Step 2

Silahkan clone file game yang ada di Github dengan cara :
Syntax :

sudo git clone https://github.com/Chrisnico123/PBO.git

Step 3

sudo docker build -t last-ninja .

Step 4

Jalankan Perintah berikut ini:

XAUTH=$HOME/.Xauthority
touch $XAUTH
xhost +
xhost + username (username linux anda)

Last Step

Run a Game

docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix  -e DISPLAY=unix$DISPLAY --device /dev/snd mckriw/last-ninja

Or

sudo docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix  -e DISPLAY=unix$DISPLAY --device /dev/snd mckriw/last-ninja

How to Play a Game

  • Start a Game

Berikut ini adalah gambar untuk panduan memulai Game Last - Ninja

Last - Ninja

  • Game Play

Berikut ini adalah panduan untuk bermain Last - Ninja

Gameplay :

  1. User pertama tama akan memilih karakter untuk dimainkan
  2. Setelah itu user akan menekan tombol space untuk memulai game
  3. Kemudian User akan menghindari rintangan yang ada kemudian mengumpulkan score yang banyak.
  • End Game

Permainan akan berakhir apabila karakter menyentuh rintangan
Bisa dilihat pada gambar dibawah ini :

Last - Ninja

  • Control in Game

Berikut adalah gambar untuk contoh control untuk menjalankan karakter.
Last - Ninja

  1. Panah atas berguna untuk melompat
  2. Panah bawah digunakan untuk menunduk

Link Video YouTube

Untuk penjelasan dari perintah-perintah menjalankan game pygame di docker container dapat dilihat pada video dibawah ini.
Klik Gambar untuk menonton :)

Penjalasan cara menjalankan game pygame di Docker Container

๐Ÿš€ About Team (Kelompok 10)

-Chrisnico Alexander Hutapea 120140244

-Iqbal Alfarizi 120140122

-Booby Julian Akbar 120140082

-Alfahmi Irfan 120140206

-Michael Pascalis Simanjuntak 120140137

pbo's People

Contributors

chrisnico123 avatar iqbalalfarizi avatar

Stargazers

Martin avatar

Watchers

 avatar

Forkers

alfahmiirfan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.