diff --git a/css/app.css b/css/app.css index e2f46ac..57a084e 100644 --- a/css/app.css +++ b/css/app.css @@ -1,13 +1,14 @@ body { font-family: Arial, sans-serif; + background-image: url('../assets/sand/fishTile_001.png'); } .rod { - float: right; width: 50px; height: 300px; border: 1px solid black; - background-color: lightblue; + /*background-color: lightblue;*/ + background-image: url('../assets/water/fishTile_089.png') ; padding: 0; display: flex; @@ -26,8 +27,7 @@ body { .pull { background-color: cornflowerblue; - width: 250px; - height: 250px; + height: 100px; border-radius: 15px; border: 5px solid darkblue; @@ -36,11 +36,13 @@ body { justify-content: space-around; align-items: center; - font-size: 4.7em; - user-select: none; color: white; } +.pull * { + user-select: none; +} + .pull:active { background-color: #a4bbe5; margin-top: 3px; @@ -70,4 +72,5 @@ body { margin: 0; padding: 0; background-color: greenyellow; + z-index: 50; } \ No newline at end of file diff --git a/index.html b/index.html index fea861e..d8ff835 100644 --- a/index.html +++ b/index.html @@ -4,37 +4,48 @@ Fishy + + -
-
-

-
- fishy.sprite
-
-
+
+
+
+ Score: {{ score }}
+ let there be fish +
+
+
+

+
+ fishy.sprite
+
+
+
+
+
+
+
+ PULL
+
+ + + +
- - Score: {{ score }}
- Force: {{ force }}
- Pulling: {{ pull }}
- -
-
- PULL -
- let there be fish
+ + diff --git a/js/app.js b/js/app.js index 2d38159..3a5998d 100644 --- a/js/app.js +++ b/js/app.js @@ -15,6 +15,7 @@ const FishApp = { fishMovementIntervalID: null }, fishy: null, + fishiesCaught: [], fishies: [ { name: 'Franz the Flying Fishy', @@ -121,10 +122,15 @@ const FishApp = { window.clearInterval(this.intervals.fishMovementIntervalID); this.score += this.fishy.points; + this.fishyCaught.push(this.fishy); + this.fishy = null; this.pull = false; - alert('fischi ist jetzt dein freund'); + iziToast.success({ + title: 'fischi ist jetzt dein freund', + position: 'topCenter' + }); }, fishyFled() { window.clearInterval(this.intervals.fishMovementIntervalID); @@ -132,7 +138,10 @@ const FishApp = { this.fishy = null; this.pull = false; - alert('fischi fort!'); + iziToast.warning({ + title: 'fischi fort!', + position: 'topCenter' + }); } } };