“Making a game to play on a swing” motivated from 춘향전 ※ Contributed as a GameTube™ application
May 06, 2015
“Making a game to play on a swing”
motivated from 춘향전
※ Contributed as a GameTube™ application
MAKE It Yourself! – Everything’s ready for you.
Imagine wholeheartedly! – Creativity Matters
– Learn, Design, Make, Share iteratively
Linked Data, Linked Economy and Linked Thinking.
– All subjects are connected in real world.
Knowledge for descendants
– Creating contents for everyone
HW: Breadino™ and a few modules
SW: Scratch for Arduino (S4A) as IDE
http://www.ohmynews.com/nws_web/view/at_pg.aspx?CNTN_CD=A0001409717
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}
Scratch uses 480*360 pixels screen
– Origin located at the center
Trigonometric functions
– X = cos 𝜃
– Y = sin 𝜃
– 𝜃 is the degree of angle.
Scratch supports mathematics
Mechanical energy conservation law
– Swinging pendulum conserves the energy
– Simplifying equation was required for better performance.
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
Simplicity is hard rather then easy
– Keep It Simple and Short
Version 0.2
– Playing on a swing with joystick
Better spites & game scenario
http://social.ktcu.or.kr/story/cultureView.do?boardIndex=30152
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