Institute of Computer Science
  1. Main page
  2. Scratchi materjalid
ET
Log in

Scratchi materjalid

  • Sissejuhatus
  • 1. Spraidi välimus
  • 2. Joonistamine I
  • 3. Joonistamine II
  • 4. Liikumine ja andurid I
  • 5. Liikumine ja andurid II
  • 6. Heli ja graafika
  • 7. Muutujad I
  • 8. Muutujad II
  • 9. Muutujate edastamine I
  • 10. Muutujate edastamine II
  • 11. Küsitluse loomine
  • 12. Alamprogramm
  • 13. Mängude näited
  • 14. Esitluse loomine
  • Scratchi näited

7. Muutujad I

Video 1

Eesmärk:

  • oskad luua uut muutujat menüüst Andmed, mis loeks mängus punkte;
  • oskad punkte nullida.

https://www.youtube.com/watch?v=oggpmgegAPg

Ülesanne 1

Tee mäng, milles
  • Õige tegelase kättesaamisel punktid suurenevad
  • Valede tegelastega kokkupõrgates punktid vähenevad

Video 2

Eesmärk

  • oskad sisestada tegelast, kellel on sama programm, mis mõnel samas projektis oleval tegelasel (ei sisesta uut tegelast, vaid teed koopia eelmisest ja lisad uue kostüümi)
  • oskad lisada tegelasele liikumist, mille kiirust saab üles ja alla noolega muuta (privaatse muutuja abil).

https://www.youtube.com/watch?v=9wVoyqa69_k

Ülesanne 2

Tee koopia eelmisest mängust ning lisa juurde programmijupid, mille abil saab muuta peategelase kiirust.

Proffidele

Tee taimer, mis loeb sekundeid maha ja kui jõuab nulli, kõik seiskub.


Creative Commons litsentsiga Autorile viitamine + Mitteäriline eesmärk 3.0 Eesti (CC BY-NC 3.0 EE) - https://creativecommons.org/licenses/by-nc/3.0/ee/

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment