Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Teaching Programming through Game Development

Damir
October 17, 2014

Teaching Programming through Game Development

Slides for Sarajevo GameDev Meetup

Damir

October 17, 2014
Tweet

More Decks by Damir

Other Decks in Programming

Transcript

  1. Igra treba biti… … poznata … dovoljno jednostavna za napraviti

    … prepoznatljiva i u reduciranoj formi → zabavnije je praviti nešto što znamo → ne želimo komplikovati → kako ne bismo morali riješiti
 svaki detalj
  2. Shoes.app :width => 300 do background "assets/bg.png" @gravity = 0

    @bird_x = 0.5 @bird_y = 0 ! @bird = image "assets/bird.png" @bird.move @bird_x, @bird_y ! @pipe_x = 0.9 @pipe_y = 0.7 @pipe = image "assets/pipe.png" @pipe.move @pipe_x, @pipe_y ! @animate = animate(20) do @gravity = @gravity + 0.002 @bird_y = @bird_y + @gravity @bird.move @bird_x, @bird_y ! @pipe_x = @pipe_x - 0.02 if @pipe_x < -0.2 @pipe_x = 0.9 end @pipe.move @pipe_x, @pipe_y ! if (@bird_y > 1) || (@pipe_x < 0.6 && @pipe_x > 0.3 && @bird_y > @pipe_y) title "Game over!" @animate.stop end end ! keypress do |key| @gravity = -0.02 end end
  3. Academy387 — Uvod u programiranje za mlade (Muamer Ribica) Noć

    istraživača 2014 — Pravimo igru za 3 sata (Muamer Ribica & Damir Zekić)