Tower defense (OOP4Fun Book)

TLA:n tiedot

Nimi
Task 7.2 and 7.3
Kuvaus

The teacher should prepare icons for the manually controlled tower. To change the icon of the object programmatically, the teacher should explain to the students how to use the Actor.setImage(String) method. Allow students some time to test this function.

The teacher should discuss with students how to determine whether the tower is manually controlled. Emphasize that it is not only important to change the object's state but also to update its image. Highlight that if a user wants to change the state of a Tower object and only changes the attribute directly, the image will remain the same. This discussion should help students understand the need to change the value of an attribute through a method and to keep attributes private rather than public. Explain to the students that this practice is called encapsulation, where the internal state is hidden, and public methods are used to change that state in a controlled manner.

Allow the students to implement the logic of the function. Let them manually invoke their method and observe changes in the internal state.

Oppimistyypi
Tuotanto
Kuvaus Oppiminen tuotannon kautta on tapa, jolla opettaja motivoi oppijaa vahvistamaan oppimaansa ilmaisemalla nykyistä käsitteellistä ymmärrystään ja miten hän on käyttänyt sitä käytännössä.
Example usage Essaihtien, raporttien, suunnitelmien, artefaktien, esitysten, sähköisten portfoliot, blogien,…
Työmäärä
30
Aktiviteetin toimitus
Verkkotyöskentely
Paikan päällä
Hybrid
Synnkroninen
Asynkroninen
Opettaja läsnä
Opettaja ei läsnä
Yhteistyö
Työskentely ryhmissä
Palaute
Palauteen antaja
Opettaja
Automaattinen
Vertais
Muu

AI usage level
-

Arviointi