-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
590 lines (417 loc) · 11.6 KB
/
index.html
File metadata and controls
590 lines (417 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Flappy Bird</title>
<meta name="description" content="A workshop for creating your own Flappy Bird">
<meta name="author" content="Henk Jurriens, CodingStuff.org">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides" >
<section data-background="img/flappy_bird.jpg">
<h1 >Kreiraj sam svoju igricu</h1>
</section>
<section data-background="img/commodore-vic-20.jpg">
<h1 >Uvod</h1>
<aside class="notes">
Henk
</aside>
</section>
<section>
<h1 >Budućnost</h1>
<aside class="notes">
Kakve su mogućnosti tehnologije
</aside>
</section>
<section>
<h2 >Ono što nosimo</h2>
<img src="img/smartwatch.jpg" />
<aside class="notes">
</aside>
</section>
<section>
<h2 >Ono što nosimo</h2>
<iframe width="860" height="615" src="https://www.youtube.com/embed/P5XO_Q-R79Y" frameborder="0" allowfullscreen></iframe>
<aside class="notes">
Pametni satovi
</aside>
</section>
<section>
<h2 >Roboti</h2>
<iframe width="860" height="615" src="https://www.youtube.com/embed/IVmurWnuXmk" frameborder="0" allowfullscreen></iframe>
<aside class="notes">
Humanoidi
</aside>
</section>
<section>
<h2 >Programer koji ima 12 godina</h2>
<iframe width="860" height="615" src="https://www.youtube.com/embed/ehDAP1OQ9Zw" frameborder="0" allowfullscreen></iframe>
<aside class="notes">
Priča o izvanrednom programeru koji ima samo 12 godina... On je osnovao klub aplikacija u svojoj skoli...
Eto ideje da i vi napravite isto
</aside>
</section>
<section>
<h2 >Web stranice</h2>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>Javascript</li>
</ul>
<aside class="notes">
Igrica koju ćete vi danas napraviti je samo web stranica. Ono od čega se web stranice prave su HTML, CSS i Javascript
</aside>
</section>
<section>
<h1>HTML</h1>
<aside class="notes">
</aside>
</section>
<section>
<h2 >Tagovi</h2>
<ul>
<li><h1></li></br>
<li><p></li></br>
<li><ul></li></br>
<li><li></li></br>
</ul>
<aside class="notes">
Primjer tagova
</aside>
</section>
<section>
<h2 >Slika</h2>
<pre><code style="font-size: 30px">
<img src="img/mediatheek-twickel.jpg" />
</code></pre>
<aside class="notes">
Primjer slike
</aside>
</section>
<section>
<h2 >Slika</h2>
<img src="img/mediatheek-twickel.jpg" />
<aside class="notes">
</aside>
</section>
<section>
<h2 >Alati</h2>
<ul>
<li>http://www.cssdesk.com</li>
<li>http://www.w3schools.com</li>
</ul>
<aside class="notes">
<p>Vise informacija o HTML-u i CSS-u možete naći guglajući.</p>
<p>Na sajtu cssdesk.com možemo jednostavno i brzo vježbati HTML i CSS</p>
<p>Na sajtovima W3Schools se nalazi objašnjenje za skoro sve vezano za ove dvije tehnologije.</p>
</aside>
</section>
<section >
<h2 >Zadatak 1</h2>
<h3 >Kreiraj jednostavnu web stranicu</h3>
<p >Idi na : http://www.cssdesk.com</p>
<aside class="notes">
Probaj da dodaš i promijeniš par jednostavnih tagova.
</aside>
</section>
<section>
<h1>CSS</h1>
<aside class="notes">
</aside>
</section>
<section >
<pre><code>
h1 {
color : red;
}
</code></pre>
<pre class="example" style="background : white">
<h1 style="color : red; margin-left : auto; margin-right : auto; width : 250px;">school</h1>
</pre>
<aside class="notes">
</aside>
</section>
<section >
<pre><code>
h1 {
color : red;
border : 4px solid blue;
}
</code></pre>
<pre class="example" style="background : white">
<h1 style="font-family : arial; color : red; border : 4px solid blue; width : 250px; margin-left : auto; margin-right : auto">school</h1>
</pre>
<aside class="notes">
</aside>
</section>
<section>
<h2 >Zadatak 2 </h2>
<h3 >Uljepšaj svoju web stranicu</h3>
<p >Idi na : http://www.cssdesk.com</p>
<aside class="notes">
</aside>
</section>
<section>
<h1>Javascript</h1>
<aside class="notes">
</aside>
</section>
<section>
<h1 >Programski jezik</h1>
<ul>
<li >Programirati znaci pričati jezikom tvog računara</li>
<li >tj. pričati tako da te računar razumije</li>
</ul>
<aside class="notes">
</aside>
</section>
<section>
<h1 >Varijable</h1>
<pre><code style="font-size : 28px">
var x = 5;
var y = 6;
var z = x + y;
</code></pre>
</section>
<section>
<h1 >Naredbe</h1>
<pre><code style="font-size : 28px">
var age = prompt("What's your name");
</code></pre>
</section>
<section>
<h1 >Funkcije</h1>
<pre><code style="font-size : 28px">
function myFunction(a, b) {
return a + b;
}
var c = myFunction(2, 3);
</code></pre>
</section>
<section data-background="img/flappy_bird.jpg">
<h1 style="color : white">Flappy Bird</h1>
</section>
<section>
<h1 >Prgram za pravljenje igrice</h1>
<h1>Brackets</h1>
<img src="img/brackets-ed.jpeg"/>
</section>
<section>
<h1>Fajlovi</h1>
<ul>
<li>index.html</li>
<li>main.js</li>
<li>phaser.min.js</li>
</ul>
</section>
<section>
<h1>Pomoćni program - framework</h1>
</section>
<section>
<h2>Phaser</h2>
<img src="img/phaser.png" style="background : white; height : 400px;">
<h3>www.phaser.io</h3>
</section>
<section>
<h1 >Start</h1>
</section>
<section>
<pre><code style="font-size : 28px; line-height : 1.5">
<p > Press the spacebar to jump </p>
<div id="gameDiv"> </div>
</code></pre>
</section>
<section>
<canvas id="canvas-1" width="500" height="500" style="background : #71c5cf">
</canvas>
<script>
var canvas = document.getElementById("canvas-1");
var ctx = canvas.getContext("2d");
ctx.fillStyle = 'yellow';
ctx.fillRect (200,200, 50, 50);
</script>
</section>
<section>
<h2 >Zadatak 3</h2>
<h3>Otvori zadatak 3 </h3>
</section>
<section>
<h1 >The bird</h1>
</section>
<section>
<ul>
<li>preload()</li>
<li>create()</li>
<li>update()</li>
<li>jump()</li>
</ul>
</section>
<section>
<h2>preload()</h2>
<pre><code>
// Change the background color of the game
game.stage.backgroundColor = '#71c5cf';
// Load the bird sprite
game.load.image('bird', bird);
</code></pre>
</section>
<section>
<h2>create()</h2>
<pre><code>
// Set the physics system
game.physics.startSystem(Phaser.Physics.ARCADE);
// Display the bird on the screen
this.bird = this.game.add.sprite(100, 245, 'bird');
// Add gravity to the bird to make it fall
game.physics.arcade.enable(this.bird);
this.bird.body.gravity.y = 1000;
// Call the 'jump' function when the spacekey is hit
var spaceKey = this.game.input.keyboard
.addKey(Phaser.Keyboard.SPACEBAR);
spaceKey.onDown.add(this.jump, this);
</code></pre>
</section>
<section>
<h2>preload()</h2>
<pre><code>
// If the bird is out of the world (too high or too low),
// call the 'restartGame' function
if (this.bird.inWorld == false)
this.restartGame();
</code></pre>
</section>
<section>
<h2>jump()</h2>
<pre><code>
// Add a vertical velocity to the bird
this.bird.body.velocity.y = -350;
</code></pre>
</section>
<section>
<h2 >Zadatak 4</h2>
<h3>Otvori zadatak 4 & promijeni objekat 'bird'</h3>
</section>
<section>
<h1 >Pipes</h1>
</section>
<section>
<h2>Pipe</h2>
<pre><code>
game.load.image('pipe', 'pipe');
</code></pre>
</section>
<section>
<h2 >Pipes</h2>
<pre><code>
this.pipes = game.add.group(); // Create a group
this.pipes.enableBody = true; // Add physics to the group
this.pipes.createMultiple(20, 'pipe'); // Create 20 pipes
</code></pre>
</section>
<section>
<h2 >Dodaj jednu cijev</h2>
<pre><code>
addOnePipe: function(x, y) {
// Get the first dead pipe of our group
var pipe = this.pipes.getFirstDead();
// Set the new position of the pipe
pipe.reset(x, y);
// Add velocity to the pipe to make it move left
pipe.body.velocity.x = -200;
// Kill the pipe when it's no longer visible
pipe.checkWorldBounds = true;
pipe.outOfBoundsKill = true;
}
</code></pre>
</section>
<section>
<h2 >Dodaj još cijevi</h2>
<pre><code>
addRowOfPipes: function() {
// Pick where the hole will be
var hole = Math.floor(Math.random() * 5) + 1;
// Add the 6 pipes
for (var i = 0; i < 8; i++)
if (i != hole && i != hole + 1)
this.addOnePipe(400, i * 60 + 10);
}
</code></pre>
</section>
<section>
<h2 >Dodaj to na objekat 'game'</h2>
<pre><code>
this.timer = game.time.events.loop(1500, this.addRowOfPipes, this);
</code></pre>
</section>
<section>
<h2 >Zadatak 5</h2>
<h3>Otvori zadatak 5 & promijeni 'pipes'</h3>
</section>
<section>
<h2 >Rezultat</h2>
</section>
<section>
<h2 >create()</h2>
<pre><code>
this.score = 0;
this.labelScore = game.add.text(20, 20, "0",
{ font: "30px Arial", fill: "#ffffff" });
</code></pre>
</section>
<section>
<h2 >addToPipes()</h2>
<pre><code>
this.score += 1;
this.labelScore.text = this.score;
</code></pre>
</section>
<section>
<h2 >Zadatak 6</h2>
<h3>Otvori zadatak 6 & igraj svoju prvu igricu!</h3>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'convex', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>