Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
M
mangala-pardusacikhack
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Tuğba Fıçıcı
mangala-pardusacikhack
Commits
30aa7cb7
Kaydet (Commit)
30aa7cb7
authored
May 04, 2021
tarafından
Tuğba Fıçıcı
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Overlay eklendi
üst
ad428aab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
2 deletions
+56
-2
gameArea.css
assets/gameArea.css
+23
-0
gameArea.html
pages/gameArea.html
+3
-0
gameArea.js
pages/gameArea.js
+30
-2
No files found.
assets/gameArea.css
Dosyayı görüntüle @
30aa7cb7
...
...
@@ -58,3 +58,25 @@
padding
:
10px
;
border
:
1px
solid
#aaaaaa
;
}
#overlay
{
position
:
fixed
;
display
:
none
;
width
:
100%
;
height
:
100%
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
z-index
:
2
;
cursor
:
pointer
;
}
#text
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
font-size
:
50px
;
color
:
white
;
transform
:
translate
(
-50%
,
-50%
);
-ms-transform
:
translate
(
-50%
,
-50%
);
}
\ No newline at end of file
pages/gameArea.html
Dosyayı görüntüle @
30aa7cb7
...
...
@@ -10,6 +10,9 @@
<body>
<div
class=
"container"
>
<div
id=
"overlay"
onclick=
"overlayOff()"
>
<div
id=
"text"
>
Bitti
</div>
</div>
<div
id=
"user1hole7"
class=
"rectangle"
>
hazine
</div>
<div
class=
"circle_container"
>
<div
class=
"circle_wrap"
>
...
...
pages/gameArea.js
Dosyayı görüntüle @
30aa7cb7
...
...
@@ -116,6 +116,7 @@ function dagit(user,hole){
user2hole
[
k
].
value
=
0
;
}
user1hole
[
6
].
value
+=
tabladakiBoncuklar
;
overlay
();
}
//#####################3333
...
...
@@ -189,6 +190,7 @@ function dagit(user,hole){
user1hole
[
k
].
value
=
0
;
}
user2hole
[
6
].
value
+=
tabladakiBoncuklar
;
overlay
();
}
}
...
...
@@ -242,6 +244,22 @@ function boncukCiz(){
}
function
robotEasy
(){
// player 1 i kontrol eden robot
let
x
=
0
;
let
holeID
=
Math
.
floor
(
Math
.
random
()
*
10
)
%
6
;
while
(
user1hole
[
holeID
]
==
0
&&
x
<
100
){
holeID
=
Math
.
floor
(
Math
.
random
()
*
10
)
%
6
;
x
+=
1
;
}
return
holeID
}
var
clicks
=
0
;
function
counterUp
()
{
clicks
+=
1
;
...
...
@@ -265,4 +283,15 @@ function drop(ev) {
var
data
=
ev
.
dataTransfer
.
getData
(
"text"
);
ev
.
target
.
appendChild
(
document
.
getElementById
(
data
));
counterDown
();
}
\ No newline at end of file
}
//overlay ac kapa
function
overlay
()
{
document
.
getElementById
(
"overlay"
).
style
.
display
=
"block"
;
}
function
overlayOff
()
{
document
.
getElementById
(
"overlay"
).
style
.
display
=
"none"
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment