diff --git a/gambar/ApelLayer.png b/gambar/ApelLayer.png new file mode 100644 index 0000000..6e0a485 Binary files /dev/null and b/gambar/ApelLayer.png differ diff --git a/gambar/BadanHorizontal.png b/gambar/BadanHorizontal.png new file mode 100644 index 0000000..3e95b8c Binary files /dev/null and b/gambar/BadanHorizontal.png differ diff --git a/gambar/BadanVertikal.png b/gambar/BadanVertikal.png new file mode 100644 index 0000000..112d4cd Binary files /dev/null and b/gambar/BadanVertikal.png differ diff --git a/gambar/BelokAtasKanan.png b/gambar/BelokAtasKanan.png new file mode 100644 index 0000000..6e04606 Binary files /dev/null and b/gambar/BelokAtasKanan.png differ diff --git a/gambar/BelokAtasKiri.png b/gambar/BelokAtasKiri.png new file mode 100644 index 0000000..56dbc54 Binary files /dev/null and b/gambar/BelokAtasKiri.png differ diff --git a/gambar/BelokBawahKanan.png b/gambar/BelokBawahKanan.png new file mode 100644 index 0000000..02f7449 Binary files /dev/null and b/gambar/BelokBawahKanan.png differ diff --git a/gambar/BelokBawahKiri.png b/gambar/BelokBawahKiri.png new file mode 100644 index 0000000..aa6a1f9 Binary files /dev/null and b/gambar/BelokBawahKiri.png differ diff --git a/gambar/BokongHorizontalKanan.png b/gambar/BokongHorizontalKanan.png new file mode 100644 index 0000000..715a3d7 Binary files /dev/null and b/gambar/BokongHorizontalKanan.png differ diff --git a/gambar/BokongHorizontalKiri.png b/gambar/BokongHorizontalKiri.png new file mode 100644 index 0000000..9249679 Binary files /dev/null and b/gambar/BokongHorizontalKiri.png differ diff --git a/gambar/BokongVertikalAtas.png b/gambar/BokongVertikalAtas.png new file mode 100644 index 0000000..47d09c8 Binary files /dev/null and b/gambar/BokongVertikalAtas.png differ diff --git a/gambar/BokongVertikalBawah.png b/gambar/BokongVertikalBawah.png new file mode 100644 index 0000000..879b900 Binary files /dev/null and b/gambar/BokongVertikalBawah.png differ diff --git a/gambar/KepalaHorizontalKanan.png b/gambar/KepalaHorizontalKanan.png new file mode 100644 index 0000000..6fc8cba Binary files /dev/null and b/gambar/KepalaHorizontalKanan.png differ diff --git a/gambar/KepalaHorizontalKiri.png b/gambar/KepalaHorizontalKiri.png new file mode 100644 index 0000000..9b62d18 Binary files /dev/null and b/gambar/KepalaHorizontalKiri.png differ diff --git a/gambar/KepalaVertikalAtas.png b/gambar/KepalaVertikalAtas.png new file mode 100644 index 0000000..270012a Binary files /dev/null and b/gambar/KepalaVertikalAtas.png differ diff --git a/gambar/KepalaVertikalBawah.png b/gambar/KepalaVertikalBawah.png new file mode 100644 index 0000000..a653ef1 Binary files /dev/null and b/gambar/KepalaVertikalBawah.png differ diff --git a/gambar/PialaLayer.png b/gambar/PialaLayer.png new file mode 100644 index 0000000..c318312 Binary files /dev/null and b/gambar/PialaLayer.png differ diff --git a/gambar/Tembok.png b/gambar/Tembok.png new file mode 100644 index 0000000..f544a41 Binary files /dev/null and b/gambar/Tembok.png differ diff --git a/gambar/daftar.php b/gambar/daftar.php new file mode 100644 index 0000000..b6facd6 --- /dev/null +++ b/gambar/daftar.php @@ -0,0 +1,60 @@ + + + + + + + + Halaman: Daftar + + + alert("Selamat, anda berhasil mandaftarkan acc anda!")'; + } else { + echo ''; + } + } + + ?> + +
+ + + + + + + + + + + + + + + + + + + + +
+

Pendaftaran User

+
Nama
Username
Password
+ + Login +
+
+ + + \ No newline at end of file diff --git a/gambar/index.php b/gambar/index.php new file mode 100644 index 0000000..0ec3d92 --- /dev/null +++ b/gambar/index.php @@ -0,0 +1,26 @@ + + + + + + + + Halaman ke-1 + + +

Halaman ke-1

+ Home + Logout +
+ +

Selamat datang,

+ Halaman ini akan tampil setelah user login. + + \ No newline at end of file diff --git a/gambar/koneksi.php b/gambar/koneksi.php new file mode 100644 index 0000000..18ee0c8 --- /dev/null +++ b/gambar/koneksi.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/gambar/login.php b/gambar/login.php new file mode 100644 index 0000000..dce79d1 --- /dev/null +++ b/gambar/login.php @@ -0,0 +1,58 @@ + + + + + + + + Halaman: Login + + + 0) { + $data = mysqli_fetch_array($query); + $_SESSION['users'] = $data; + echo ''; + } else { + echo ''; + } + } + ?> + +
+ + + + + + + + + + + + + + + + + +
+

Login User

+
Username
Password
+ + Daftar +
+
+ + + \ No newline at end of file diff --git a/gambar/logout.php b/gambar/logout.php new file mode 100644 index 0000000..99fdf0c --- /dev/null +++ b/gambar/logout.php @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/game.html b/game.html index 0a22b0d..76970c5 100644 --- a/game.html +++ b/game.html @@ -105,13 +105,15 @@ //generate gambar external var KepalaUlarImage = new Image(); - KepalaUlarImage.src = "KepalaVertikalAtas.png"; // kepala ular + KepalaUlarImage.src = "image/KepalaVertikalAtas.png"; // kepala ular var BadanUlarImage = new Image(); - BadanUlarImage.src = "BadanVertikal.png"; // badan ular awal + BadanUlarImage.src = "image/BadanVertikal.png"; // badan ular awal var ApelImage = new Image(); - ApelImage.src = "ApelLayer.png"; // Apel + ApelImage.src = "image/ApelLayer.png"; // Apel var TembokImage = new Image(); - TembokImage.src = "Tembok.png"; // Tembok Batagor + TembokImage.src = "image/Tembok.png"; // Tembok Batagor + +//D:\PROYEK UAS\Game ULAR\gambar\Tembok.png //set posisi ular dan Apel var Ular = { x: 400, y: 400, dx: grid, dy: 0, cells: [], maxCells: 4 };