SoraMame.ps.js/

֥ȻظʥɤɤΤ褦˵Ҥ뤫

ץߥ󥰸äƤߤͤʤ顢٤ϹͤơޤȻפޤ(ۤȤ)

錄ϡؤäݤץߥ󥰤Τ顢ܸץߥ󥰸ΥХꥨȤơ֤ƦץȡפäƤޤޤ
ʤΤǡ֥ȻظܸץǤɤΤ褦˵ҤȤ狼䤹ͤƤߤޤ

ƦץȤ뤿ʪǡ
줫λͤˤʤ뤫ɤʬޤ󤬡Ƥޤ

Ƭǡɤɤ

¿Υץߥ󥰸Ǥϡץѿȵǥɤ񤭤ޤ͡

ȤС錄˳Ф١åȤץߥ󥰸BASIC - Wikipedia

PRINT "˥"

ʤƤ˽񤭤ޤ

꤫̿ξϡ

FOR i = 0 TO 9
PRINT "˥"
NEXT i

ʤƴˤʤޤ

Υɤ¹Ԥȡ̤ˡ֥˥ϡפ10ɽޤ

Τ褦˥ץȤʤϡƬǥɤɤǤޤ󤫡

ȤСǽΥɤ

֥˥ ɽ

2ܤΥɤ

ѿi09ޤǡ꤫
˥ ɽ
ˤ

Ȥ褦ʶǤ

⺣⡢ޤȤ˱Ѹ줬Ǥ櫓ǤϤޤ󤫤顢

ΤޤޱѸɤߤΤǤϤʤ
ɤϡΤʤӤȤƽ񤭤路ơ

ƬΤʤǡܸäݤѴɤ߾夲ƤΤǤ

ѴΤɡˤʤȡ ɤΤȤʤˡʸܸäݤ񤯤ʤ ⤢ޤ

FOR i = 0 TO 9      'ѿi09ޤǡ꤫
PRINT "˥"  '˥ ɽ
NEXT i              'ˤ

졢ץߥ󥰤ãͤΤǤϡ ȤΰȤơΤƤޤ

Ǥ⡢ɤʤ顢ΥʸΤޤޤǡץǤ餤Τ

ȤΤ֤ܸץߥ󥰸ΥȤʤΤǤ()

֥ȻظȤ

ޤ䡢ܳŪʥץߥ󥰸ΤۤȤɤϡ ֥Ȼظ򥵥ݡȤƤޤ

֥Ȼظץߥ󥰸ΥץȤơ Processing.jsȤꤢޤ礦

ȤСɤǥܡ򤢤魯֥ȤƤơ ballȤ֥ȤƤǤ

ball֥ȤϡΤ褦ˤʤޤ

ball.move();
ball.draw();

ϡޤΤʤ

ܡư
ܡ

ɤശǤ礦

줫顢ballθ֤߰Τˤ

text(ball.x, 0, 0);
text(ball.y, 0, 10);

Ȥˤʤޤ

ball.xפȡball.yפ줾

ܡxɸ
ܡyɸ

ȤǤ

֥ȻظѤȡץǡ ưȥǡΥåȤǤĤ褦ˤʤꡢȤƤǤ

Ǥäץ⡢äȽ񤱤褦ˤʤޤ

ξϡܡȤоʪˤĤơ ư(movedraw)ȥǡ(xɸyɸ) ޤȤƤĤ褦ˤʤޤ

ǤϡΤ褦ˤޤɤ߾夲ȥФ ܸץߥ󥰸˺Ѥ ޤΤǤ礦

ǽΥץ

ƦץȤϡܸäݤɤProcessing.jsѴưޤ

ƦץȤκǽΥץǤϡ ۤɾҲ𤷤ޤΤʤΥȥФΤ褦ˡ ץ򵭽ҤƤޤ

ۤɤΥܡưɤϡΤ褦˽񤭤ޤ

@ܡư
@ܡ

ball.move()פΡ.(ԥꥪ) ֤פȤ֤褦ʴǤ

ˡ򤢤ϡ

ball.move(10)

ˤ碌

@ܡ{Υ:10}˰ư

Ƚ񤭤ޤ

оʪ򤢤ĤΤǡ֤פȤ줬 礦ɰ̣ȤƤԥåˤʤޤ

줫顢@ܡθ֤߰򤢤魯ˤ

@ܡ@x
@ܡ@y

Ƚ񤭤ޤ

٤ϡ֤ΡפȤ줬 ball.xפΡ.(ԥꥪ)бƤޤ

ǽΥץ

򡢤ʥץ̿ˤƤϤƤäȤ Ĥ꤬뤳Ȥ狼ޤ

֡פǤϡԥåꤤʤ礬ΤǤ

ȤСProcessingDz֥ȤΥԡ̿ϡ Τ褦˽񤭤ޤ

img.copy(50, 0, 50, 100, 0, 0, 50, 100); 

ϡimgȤ̾β֥ȤФƤϡ

x=50, y=0, =50, ⤵=100פΰ x=0, y=0, =50, ⤵=100פΰ ԡȤ̿Ǥ

򡢥ޤΤʤɤ߾夲Ȥȡ

imgФơ"50, 0, 50, 100""0, 0, 50, 100"˥ԡ Ȥˤʤޤ

ξϡоʪʣ뤿ᡢ֤פҤȤĤǤɽʤΤǤ

ȤȤΥ֥Ȼظ

ȤϡäơͤƤߤΤ֤Ǥ

ǡ֥ȻظˤĤơĴ٤Ƥߤޤ

ǡ󥿡ͥåȤǤƤߤȡ֥ȻظˤĤƼΤ褦ǤƤޤ

֥ԥ塼ƥ󥰤˴ؤ뤹٤Ƥȥ֥ȡɤȡ
Фȥå̿ɤɽ

Ĥޤꡢ֥ܡפФơְư!פƤΤǤ

狼䤹Фȡ

Υԥ4ǡ

֥롼衢եȤ

ȡӥʹƤߤ(󤼤ʬ䤹ʤ)

[ӥ] -- եȤ ---> [롼]

ξ硢֥롼פоݤǡ֥եȤפåǤ

뤤ϡĶǽϼԤդˤȡ

֥ס衢ʤ!
[Ķǽϼ] -- ʤ ---> [ס]

(äȡʬʤ)

ϤޤˡȤդˤȡ

ͤ衢Ǥ!
[ˡȤ] -- Ǥ ---> []

(ʤˤʤˤ)

2ܤΥץ

ʴǥޤΤʤɽ륳ȥФ ܸץߥ󥰸ȤƤ路Ƥߤȡ ʤդˤʤޤ

@ܡ롢{Υ:10}˰ư

֡()ball.move()פΡ.(ԥꥪ)бƤޤ

@ܡפȤоʪ(֥)ˡ ƤӤƤ褦ʴǤ͡

ȤϤ֥롼衢եȤ׷ǤϤʤ

롼եȤ

ȤˤʤäƤޤ

ϡץ򥢥ޤΤʤɤȤ

̿ǤϤʤоݤξ֤Ȥɤߤۤ ˴Ǥ

ۤˤʤä imgФơ"50, 0, 50, 100""0, 0, 50, 100"˥ԡ ȤȥФ

@img{x:50, y:0, :50, ⤵:100}{x:0, y:0, :50, ⤵:100}˥ԡ

ʤƽ񤯤Ȥˤʤޤ͡

ޤоʪ(֥)°(ץѥƥ)ϡ@ܡ@xפȤ褦 ֤ΡפΤޤޤˤʤäƤޤ

ʤ顢⤦ɤܸäݤ񤱤Ǥ

ɵץ

Ȥ櫓ǡ2012ǯǯˡƦץȤʸˡƤߤޤ

ץץʤɤѹơʤܸäݤʡȻפäƤޤ

ȤҤȤ꤬ФƤޤ

֥ȤФ᥽åɤʸȤƽ񤯾ϡʤΤǤ

@ܡ롢ư

Ǥ⡢᥽åɤ׻Ȥ߹Ȱ´ΤǤ

ܡ륪֥Ȥο񤤤η̡֤ͤƤơ׻˻ȤȤ

@ܡư + 1

ʤդˡ@ܡפȡְư + 1פȤޤΤ褦˸ΤǤ ξ硢"ư"ϥ᥽åɤǤ

ʤʤդ˸뤫ȤȡܸǤϡ֡פ+פΤۤ黻Ҥ̤ͥ⤯ߤ뤫Ȼפޤ

ƤȤƤϡ

ޤä(...)ǰϤȤˡ

 (@ܡư) + 1

ʤտޤ褯狼ޤˡʸˡϽʤƤ⤤

⤦Ĥϡ᥽åɸƤӽФ׻ǻȤΤˡ֡(ԥꥪ)Ȥ褦ˤ뤳ȡ

@ܡư + 1

⡢ѿȤΰŪʥ֥ɽʤΤǡޤΩޤ

Ǥ⡢ɤȾüʴʡ

ϤƤơɤΤ顣

ޤȤ

Ȥ櫓ǡܸäݤץߥ󥰸ǡ֥ȻظɤΤ褦˵Ҥ٤ͤƤߤޤ

ƦץȤϡܸܻؤƤϤޤ󤬡 ޤΤʤɤ߾夲륳ɤ´ʤɽǤ褦ˤȻפäƤޤ

ΩƤСǤ

ͤˤʤ


  ȥå   ʬ Хåå   ñ측 ǽ   إ   ǽRSS
Last-modified: 2014-06-06 () 12:42:47 (1746d)