From 48069b01c72aac7d2ac3a1b2c706abcefdfdc697 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Wed, 28 Aug 2024 14:12:05 +0200 Subject: [PATCH] some work on team assignment --- team/oppgave1/uke4/img/angry.jpg | Bin 0 -> 18758 bytes team/oppgave1/uke4/img/style.css | 0 team/oppgave1/uke4/index.html | 16 +++++++---- team/oppgave1/uke4/script.js | 44 +++++++++++++++++-------------- team/oppgave1/uke4/style.css | 23 ++++++++++++++++ 5 files changed, 58 insertions(+), 25 deletions(-) create mode 100644 team/oppgave1/uke4/img/angry.jpg delete mode 100644 team/oppgave1/uke4/img/style.css create mode 100644 team/oppgave1/uke4/style.css diff --git a/team/oppgave1/uke4/img/angry.jpg b/team/oppgave1/uke4/img/angry.jpg new file mode 100644 index 0000000000000000000000000000000000000000..aecad5567616c1bf1ed8eddc6e2ced1a37f97eb6 GIT binary patch literal 18758 zcmeIZcU)8No-Vo|VCcQKpnxD%Iw&L{(nUa|2tuScktPTl5(KG&Gyy@R2#9p)Qlxk3 zoggi!NRtEwA|&DFxA*LsIWuR@?78=I|2vDkgoKrq^?lcRzvX$J@7coH8o*+tXQ&5I zP*4B{~=4h%j=!$8NtKu#yCb6Q5P5}|LbX?p#ynJF8#U(CDDk-a|s;OVmxvs0H zZ(wL-aof_$+UAa}vx}>nyN9P&;KQKcM4D3&&Yh0mHoD`sQ6vU z`_i)7y84F3rjN}n-95d1{R4wT!&B2Uvvczci|BRC#@BD(H-Btx;|_lPK0G?c|2g@~ zE(!qjceDQ0vj1QgE7>keDk=~a_%FLCC?Amrh?R=^y!<&fZF8`rKl=rRr!*YbQVMFi zXhjrnVL6=wCh53DmDa^@f0_0-%l~`La<{$@8)4&g$!t6^U!risJ+o!^suXtC+^uht-QPgm5BX~ zYP_WWE^aOC8m157sv29h_uWH`Pbg2hSNr8!`m3_O3%DM=U1lm5Gw@u!^|$>**jm$x zNmWT0_!)`QVcXX4hAn)DuiMsW%*Vnz96VLHaewR ze|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h*I@^7!9qUj7G8?Vo|*(#Y-0luij`B%C&$90!4m h5_BB*7|1XG#|`5DB|7*&Y&8GB$N8t`9&)z${{Sk&eLDaE literal 0 HcmV?d00001 diff --git a/team/oppgave1/uke4/img/style.css b/team/oppgave1/uke4/img/style.css deleted file mode 100644 index e69de29..0000000 diff --git a/team/oppgave1/uke4/index.html b/team/oppgave1/uke4/index.html index b22f063..340943a 100644 --- a/team/oppgave1/uke4/index.html +++ b/team/oppgave1/uke4/index.html @@ -1,23 +1,29 @@ + - Sir Quacksalot + Sir Quacksalot + - +
+
+ +
- - + +
+ + \ No newline at end of file diff --git a/team/oppgave1/uke4/script.js b/team/oppgave1/uke4/script.js index 5747a49..4ce7934 100644 --- a/team/oppgave1/uke4/script.js +++ b/team/oppgave1/uke4/script.js @@ -1,5 +1,4 @@ // Model -let lifeTimer = 100; let foodTime = 10; let petTime = 10; let foodElement = document.getElementById("foodId"); @@ -7,31 +6,36 @@ let petElement = document.getElementById('petId'); let frogImage = document.getElementById('tamaFrog').src = "img/default.jpg"; -setInterval(foodFunction, 1000) +setInterval(foodFunction, 1000); +setInterval(petFunction, 1000); // View +// function reset() { +// if (foodTime < 0){ +// foodTime += 50; +// petTime += 10; +// defaultImg(); +// } +// } function foodFunction() { - if (foodTime < 0) { //game over??? document.getElementById('tamaFrog').src = "img/dead.jpg"; - document.getElementById('tamaFrog').style.backgroundColor = 'red'; - setInterval(afterLife, 1000); + // setTimeout(afterLife, 1000); } else { foodElement.innerHTML = foodTime + " seconds remaining" foodTime-- - if (foodTime < 5) { + if (foodTime < 15) { document.getElementById('tamaFrog').src = "img/need_food.jpg"; } } } // Controller function feed() { - if (foodTime > 0) { + if (foodTime > 0 && petTime > 5) { foodTime += 10; document.getElementById('tamaFrog').src = "img/eating.jpg"; setTimeout(defaultImg, 500) - } } @@ -41,24 +45,24 @@ function defaultImg() { } function petFunction() { - if (petTime < 0) { - - document.getElementById('petFrog').src = "img/need_petting.jpg"; - } else { - petElement.innerHTML = petTime + "seconds remaining" - foodTime-- - if (petTime < 3) { - document.getElementById('petFrog').src = "img/need_love.jpg"; - } + if (petTime < 5) { + document.getElementById('tamaFrog').src = "img/angry.jpg"; + } + else { + petElement.innerHTML = petTime + " seconds remaining" + petTime-- + } } function pet() { - if (petTime > 0) { + if (foodTime > 0) { petTime += 10; - document.getElementById('petFrog').src = "img/need_love.jpg"; + document.getElementById('tamaFrog').src = "img/need_love.jpg"; setTimeout(defaultImg, 500) - } + + + } function defaultImg() { diff --git a/team/oppgave1/uke4/style.css b/team/oppgave1/uke4/style.css new file mode 100644 index 0000000..df9746e --- /dev/null +++ b/team/oppgave1/uke4/style.css @@ -0,0 +1,23 @@ + +.FrogFace { + user-select: none; + padding: 2px; + border: solid, 5px rgb(19, 204, 19); + max-width: 650px; + +} +img{ + max-width: 100%; + max-height: 100%; +} +.square { + height: 75px; + width: 75px; +} +/* #app{ + display: grid; + padding: 2px; + border: solid, yellow, 2px; +} */ + +