Top Banner
“Making a game to play on a swing” motivated from 춘향전 ※ Contributed as a GameTube™ application
15

GameTube app-swing-introduction

May 06, 2015

Download

Technology

Cho Hyunghun

GameTube is a project launched by Daddy's Lab for young children.
This slide shows the steps to program Scratch with GameTube.
I hope you can easily understand how GameTube works.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: GameTube app-swing-introduction

“Making a game to play on a swing”

motivated from 춘향전

※ Contributed as a GameTube™ application

Page 2: GameTube app-swing-introduction

MAKE It Yourself! – Everything’s ready for you.

Imagine wholeheartedly! – Creativity Matters

– Learn, Design, Make, Share iteratively

Page 3: GameTube app-swing-introduction

Linked Data, Linked Economy and Linked Thinking.

– All subjects are connected in real world.

Knowledge for descendants

– Creating contents for everyone

Page 4: GameTube app-swing-introduction

HW: Breadino™ and a few modules

SW: Scratch for Arduino (S4A) as IDE

Page 5: GameTube app-swing-introduction

http://www.ohmynews.com/nws_web/view/at_pg.aspx?CNTN_CD=A0001409717

Page 6: GameTube app-swing-introduction

Joystick module offers an analog value 0~1023 for each X-Y axis

– Left & Right : at port Analog4

– Up & Down : at port Analog3

Set the 5 intervals of each direction

–0…1023

100− 5 × −1 → {0…5}

Page 7: GameTube app-swing-introduction

Scratch uses 480*360 pixels screen

– Origin located at the center

Page 8: GameTube app-swing-introduction

Trigonometric functions

– X = cos 𝜃

– Y = sin 𝜃

– 𝜃 is the degree of angle.

Scratch supports mathematics

Page 9: GameTube app-swing-introduction

Mechanical energy conservation law

– Swinging pendulum conserves the energy

– Simplifying equation was required for better performance.

Page 10: GameTube app-swing-introduction

Introducing the values for speeding

– Velocity: v = 𝑠

𝑡 (t = time, s = distance)

– Acceleration: 𝑎 =𝑣

𝑡=

𝑠

𝑡2

Direction of speed

– Pendulum changes the direction on top

Reducing the speed for each swings

– To emulate the real world

Page 11: GameTube app-swing-introduction

Simplicity is hard rather then easy

– Keep It Simple and Short

Page 12: GameTube app-swing-introduction

Version 0.2

– Playing on a swing with joystick

Page 13: GameTube app-swing-introduction

Better spites & game scenario

http://social.ktcu.or.kr/story/cultureView.do?boardIndex=30152

Page 14: GameTube app-swing-introduction

Literatures – http://en.wikipedia.org/wiki/Chunhyangjeon

Mathematics – http://en.wikipedia.org/wiki/Normalization – http://en.wikipedia.org/wiki/Trigonometric_functions

Physics – http://en.wikipedia.org/wiki/Acceleration – http://en.wikipedia.org/wiki/Mechanical_energy

Art & culture – http://en.wikipedia.org/wiki/Shin_Yun-bok – http://social.ktcu.or.kr/story/cultureView.do?boardIndex=

30152

Page 15: GameTube app-swing-introduction