Første opgave - Old school Zelda spil
Indholdsfortegnelse
Introduktion
Vi skal lave følgende spil der hedder Zelda Old School Style:
Du kan lige prøve det af så du kender funktionaliteten.
Vigtigt: Når du har åbnet spillet, så husk at klikke på siden med musen for at gøre den aktiv. Ellers virker piletasterne ikke.
Prøv spillet her: https://editor.p5js.org/JensValdez/full/aCJLmc8YD
Tag udgangspunkt i en start kode ved at gå ind på koden (linket nedenfor) og vælge File → Duplicate
https://editor.p5js.org/JensValdez/sketches/bw13rYLzV
Giv spillet et navn og husk at gemme løbende.
Delopgave 1: Baggrund
Vis baggrundsbillede og del det op i felter
Prøv løsningen til delopgaven her: https://editor.p5js.org/JensValdez/full/IBpQFulsv
Delopgave 2: Zelda
Indsæt Zelda og tilret så hun kan gå rundt på kortet
Prøv løsningen til delopgaven her: https://editor.p5js.org/JensValdez/full/W5EO2Dkjl
Delopgave 3: Begrænsninger
Tilret så Zelda ikke kan gå hvor der er sten (i de to hjørner til højre)
Prøv løsningen til delopgaven her: https://editor.p5js.org/JensValdez/full/9QMcWTPMR
Delopgave 4: Mure
Sæt selv nogle mure/sten ind på kortet
Prøv løsningen til delopgaven her: https://editor.p5js.org/JensValdez/full/_BgqBSq6T
Delopgave 5: Fjender
Tilret så der er to bosser/fjender der kan bevæge sig tilfældigt rundt og så man mister liv hvis man rør dem og så man kan tabe spillet hvis ikke man har flere liv
Prøv løsningen til delopgaven her: https://editor.p5js.org/JensValdez/full/D8rRYy7i4
Final game: Vind og tab
Tilret så der er nogle trapper man skal hen til og så man vinder spillet hvis man når derhen
Prøv løsningen til delopgaven her: https://editor.p5js.org/JensValdez/full/aCJLmc8YD
First task - Old school Zelda game
Table of Contents
Introduction
We are going to make the following game called Zelda Old School Style:
You can try it out so you know the functionality.
Important: When you have opened the game, remember to click on the page with the mouse to activate it. Otherwise, the arrow keys will not work.
Try the game here: https://editor.p5js.org/JensValdez/full/aCJLmc8YD
Start with a starting code by going to the code (link below) and choosing File → Duplicate
https://editor.p5js.org/JensValdez/sketches/bw13rYLzV
Give the game a name and remember to save regularly.
Subtask 1: Background
Show background image and divide it into fields
Try the solution to the subtask here: https://editor.p5js.org/JensValdez/full/IBpQFulsv
Subtask 2: Zelda
Insert Zelda and adjust so she can walk around the map
Try the solution to the subtask here: https://editor.p5js.org/JensValdez/full/W5EO2Dkjl
Subtask 3: Constraints
Adjust so that Zelda cannot go where there are stones (in the two corners on the right)
Try the solution to the subtask here: https://editor.p5js.org/JensValdez/full/9QMcWTPMR
Subtask 4: Walls
Put some walls/stones on the map yourself
Try the solution to the subtask here: https://editor.p5js.org/JensValdez/full/_BgqBSq6T
Subtask 5: Enemies
Adjust so that there are two bosses/enemies that can move around randomly and so that you lose life if you touch them and so that you can lose the game if you have no more lives
Try the solution to the subtask here: https://editor.p5js.org/JensValdez/full/D8rRYy7i4
Final game: Win and lose
Adjust so that there are some stairs you have to go to and so that you win the game if you get there
Try the solution to the subtask here: https://editor.p5js.org/JensValdez/full/aCJLmc8YD