|
| ̤²ò·è |
| ²ò·è |
| Ää»ß |
| ºï½üÍ×ÀÁ |
|
2014/2/22(Sat) 20:21:06|NO.60199
¤¤¤Þ¥Þ¥ê¥ª¤ä¥í¥Ã¥¯¥Þ¥ó¤Î¤è¤¦¤Ê¥²¡¼¥à¤òºîÀ®¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤³¤Ç¥Ö¥í¥Ã¥¯Êø¤·¤Î¥µ¥ó¥×¥ë¤ò¤¤¤¸¤Ã¤Æºî¤êÊѤ¨¤Æ¤¤¤¿¤È¤³¤í
¾×ÆÍȽÄê¤Çíµ¤¤¤Æ¤·¤Þ¤·¤Þ¤·¤¿¡£
¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤í¤·¤¤¤Î¤Ç¤·¤ç¤¦¤«¡©
¤Þ¤¿¡¢¥Þ¥Ã¥×¤ò¥Þ¥Ã¥×¥Á¥Ã¥×¤Î¤è¤¦¤Ë¤·¤Æ¥¹¥¯¥í¡¼¥ë¤·¤Æ¿Ê¤ó¤Ç¤¤¤¯¤è¤¦¤Ë
¤·¤Æ¤¤¤¯Í½Äê¤Ç¤¹¡£
¼«Ê¬¤Ê¤ê¤Ë¹Í¤¨¤Æ¸«¤¿¤Î¤Ç¤¹¤¬¡¢ÇÛÎó¤¬Â¤ê¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¿´ÇÛ¤·¤Æ¤ª¤ê¤Þ¤¹¡£
¸½ºßɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥Þ¥Ã¥×¥Á¥Ã¥×¤È¥¹¥¯¥í¡¼¥ë¤·¤Æ¿·¤¿¤Ë±¦¤Ë½Ð¸½¤¹¤ë¥Ö¥í¥Ã¥¯¤ò¤É¤Î¤è¤¦¤Ë
½èÍý¤¹¤ì¤Ð¤¤¤¤¤«Çº¤ó¤Ç¤¤¤Þ¤¹¡£
;
; ¥Ö¥í¥Ã¥¯Êø¤·(3)
;
x1=0.0:y1=0.0 ; ²èÌ̺¸¾å¤ÎºÂɸ
x2=480.0:y2=480.0 ; ²èÌ̱¦²¼¤ÎºÂɸ
clrflag=0 ; ¥¯¥ê¥¢¥Õ¥é¥°
blsize=16.0 ; ¥Ü¡¼¥ë¤Î¥µ¥¤¥º
blspd=5.0 ; ¥Ü¡¼¥ë¤Î¥¹¥Ô¡¼¥É
blx=240.0:bly=300.0 ; ¥Ü¡¼¥ë¤ÎºÂɸ
bpx=4.0:bpy=4.0 ; XYÊý¸þ¤Î¥Ü¡¼¥ëºÂɸ²Ã»»ÃÍ
bk=0 ; ¥Ö¥í¥Ã¥¯¤òÊø¤¹¥Õ¥é¥°(1=Êø¤¹)
mblsize=-blsize;¥Ü¡¼¥ë°ìÅÀºÂɸ¡©
blhalf=blsize/2
wpx=10.0:wpy=10.0 ; ¥Ö¥í¥Ã¥¯1¸Ä¤¢¤¿¤ê¤Î¥µ¥¤¥º
wx=0:wy=y2-100.0 ; ¥Ö¥í¥Ã¥¯¤Îɽ¼¨³«»Ï°ÌÃÖ(º¸¾å)
blnum_x=x2/wpx
blnum_y=100.0/wpy
wsx=blnum_x:wsy=blnum_y ; ¥Ö¥í¥Ã¥¯¤ÎÇÛÃÖ¿ô(X,Y)
dim wall,wsx,wsy ; ¥Ö¥í¥Ã¥¯¤òɽ¼¨¤¹¤ë¥Õ¥é¥°
; 0=ɽ¼¨¡¢1=ɽ¼¨¤·¤Ê¤¤
screen 0,x2,y2
title "¥Ö¥í¥Ã¥¯Êø¤·"
cls 4
*main
redraw 0
gradf 0,0,x2,y2,1,0,128 ; ²èÌÌ¥¯¥ê¥¢
; ¥Ü¡¼¥ë : XÊý¸þ¤Î°ÜÆ°
stick key,15
if key&1 :blx=blx-4.0
if key&4 :blx=blx+4.0
if blx<=x1 : blx=x1 : bpx=-bpx
if blx>=(x2-blsize) : blx=x2-blsize : bpx=-bpx
//ue¥¡¼¤Ç¥¸¥ã¥ó¥×
getkey key,38//ue¥¡¼
if key=1 and ¥¸¥ã¥ó¥×Ãæ=0{
¥¸¥ã¥ó¥×Ãæ=1
¥¥ã¥évy=-8.0
}
//¥¸¥ã¥ó¥×Ãæ¡¢Íî²¼Ãæ¡¢¶¦Ä̤¹¤ëÅÀ¤Ï¡¢ÃÏÌ̤ËÉÕ¤¤¤Æ¤¤¤Ê¤¤»ö¡£
if ¥¸¥ã¥ó¥×Ãæ=1{
¥¥ã¥évy+=0.45//½ÅÎϲîÅÙ¡¢¤Þ¤¢¥Æ¥¥È¡¼¤Ë
bly+=¥¥ã¥évy
}
//ÃåÃÏ
if tyaku=1{
¥¸¥ã¥ó¥×Ãæ=0:¥¥ã¥évy=0.0:tyaku=0}
; ¥Ö¥í¥Ã¥¯¤Î½èÍý
colx=wpx+bsize;¥Ö¥í¥Ã¥¯¤ÎÂ礤µ¡¡¡Ü¡¡¥Ü¡¼¥ë¤Î¥µ¥¤¥º
coly=wpy+bsize
left=0
repeat wsy//¥Ö¥í¥Ã¥¯£ùºÂɸ
cy=cnt
y=cnt*wpy+wy//¥Ö¥í¥Ã¥¯¤ò¤¢¤ëÂ礤µ¤´¤È¤Ë¶èÀڤ롩
hsvcolor cnt*10,255,255
repeat wsx//¥Ö¥í¥Ã¥¯£øºÂɸ
cx=cnt
x=cnt*wpx+wx//¥Ö¥í¥Ã¥¯¤Î°ìÊÕŤµ¡Ü³«»ÏÅÀ¡¡¥Ö¥í¥Ã¥¯¤ò¤¢¤ëÂ礤µ¤Ë¶èÀڤ롩
if wall(cx,cy)=0 {//¥Ö¥í¥Ã¥¯£²¼¡ÇÛÎó
; ¥Ö¥í¥Ã¥¯¤òɽ¼¨
boxf x,y,x+wpx-2.0,y+wpy-2.0
i=x-blx:j=y-bly//¥Ü¡¼¥ëºÂɸ¡¡¡Ý¡¡¥Ö¥í¥Ã¥¯»ÏÅÀºÂɸ
//¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯¤Î¤¢¤¿¤êȽÄê
//¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¤¬¤¬¥Ü¡¼¥ë¥µ¥¤¥º¤è¤ê¾®¤µ¤¤¡¡¥¢¥ó¥É
//¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¤¬¡¡¥Ü¡¼¥ë¥µ¥¤¥º¤È¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬Â礤¤
if (i<=blsize)&(j<=blsize) {
tyaku=1
bly=y-13
}
}
if wall(cx,cy)=0 & cx>30{
wall(cx,cy)=1
tyaku=0//¥Ö¥í¥Ã¥¯¤¬Ìµ¤¤¤È¤¤ÏÃåÃϽèÍý¤ò¤·¤Ê¤¤
}
if wall(cx,cy)=1{
// i=x-blx:j=y-bly//¥Ü¡¼¥ëºÂɸ¡¡¡Ý¡¡¥Ö¥í¥Ã¥¯»ÏÅÀºÂɸ
//¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯¤Î¤¢¤¿¤êȽÄê
//¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¤¬¤¬¥Ü¡¼¥ë¥µ¥¤¥º¤è¤ê¾®¤µ¤¤¡¡¥¢¥ó¥É
//¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¤¬¡¡¥Ü¡¼¥ë¥µ¥¤¥º¤È¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬Â礤¤
if (i<=blsize)&(j<=blsize) {
// ¥¸¥ã¥ó¥×Ãæ=1
tyaku=0
}
}
loop
loop
; ¥Ü¡¼¥ë¤òɽ¼¨
pos blx,bly:color 255,255,255
font msgothic,blsize
mes "¡ü"
redraw 1
await 16
goto *main
*gameover
objsize 180,32
pos 150,330:button "½ª¤ï¤ê",*owari
stop
*owari
end
| |
|
2014/2/22(Sat) 20:34:40|NO.60201
Êä¤Ǥ¹¡£
¸½ºß¡¢±¦Â¦¤Î¥Ö¥í¥Ã¥¯¤Î̵¤¤Éôʬ¤Ë¥Ü¡¼¥ë¤¬°ÜÆ°¤¹¤ë¤È
¥Ü¡¼¥ë¤¬¾Ã¤¨¤ë¤È¤¤¤¦¾õ¶·¤Ç¤¹¡£
|
|
2014/2/22(Sat) 23:54:08|NO.60204
Ê£»¨¤Ê¾ì¹çʬ¤±¤ò¤·¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¤¬¡¢"ʪÍýŪ¤Ë¹Í¤¨" ¤ì¤Ð²¿¤¬¥«¥®¤«¤¬¸«¤¨¤Æ¤¤Þ¤¹¡£
¡û¥¥ã¥é¤Î¾줬¤¢¤ë¤«¤É¤¦¤«
¡û²Ã®ÅÙ
¡û®ÅÙ
°ì¸«Ê£»¨¤Ë¸«¤¨¤ë¸½¾Ý¤â¡¢¾å¤Î3¤Ä¤Î¾ò·ï¤ÇÁÆÊýÊÒÉÕ¤¤¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¥Õ¥é¥°¤È¾ì¹çʬ¤±¤ÎÍò¤«¤é³«Êü¤µ¤ì¤Þ¤¹¡£
²¼¤Ï»²¹Í¡£
//¡Ö//¡×¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤Ï»ä¤¬¾¡¼ê¤ËÉÕ¤±¤¿¥³¥á¥ó¥È¤Ç¤¹¡£
//¤Þ¤³¤È¤Ë¤Þ¤³¤È¤Ë¾¡¼ê¤Ê¤¬¤é....¡¢
// ¢£Ì¤½é´ü²½¤À¤Ã¤¿¡Ö¥¸¥ã¥ó¥×Ãæ¡×¥Õ¥é¥°¤ò¡ÖIsBallJumping¡×¤ÇÃÖ¤´¹¤¨¤µ¤»¤Æ¤â¤é¤¤¤Þ¤·¤¿¡£
// ¢£½ÅÎϲîÅÙ¤ò¡Ö¦Á_G¡×¤È¤·¤Æ¿·¤¿¤ËÄêµÁ¤µ¤»¤Æ¤â¤é¤¤¤Þ¤·¤¿¡£
// ¢£¡Ö¥¥ã¥évy¡×¤ò¡Övy_Char¡×¤ÇÃÖ¤´¹¤¨¤µ¤»¤Æ¤â¤é¤¤¤Þ¤·¤¿¡£
//³Æ½ê¤Ë¸«¤é¤ì¤ëȾ³Ñ¥¹¥Ú¡¼¥¹¤Î¾Êά¤äamazing¤Ê²þ¹Ôµ¬Â§¤Ï¡¢¤â¤·¤«¤·¤ÆHSPTVÍѤÎax¥µ¥¤¥ººï¸º¤Î¤¿¤á¤Ç¤·¤ç¤¦¤«¡©
//¤â¤·¤½¤¦¤Ç¤·¤¿¤é¡¢»ä¤Î¾¡¼ê¤Ê¼êÆþ¤ì¤ÇÈîÂç²½¤µ¤»¤Æ¤·¤Þ¤Ã¤¿¤«¤â¤·¤ì¤Þ¤»¤ó¤³¤È¤òͽ¤á¼Õ¤Ã¤Æ¤ª¤¤Þ¤¹¡£
;
; ¥Ö¥í¥Ã¥¯Êø¤·(3)
;
x1=0.0:y1=0.0 ; ²èÌ̺¸¾å¤ÎºÂɸ
x2=480.0:y2=480.0 ; ²èÌ̱¦²¼¤ÎºÂɸ
clrflag=0 ; ¥¯¥ê¥¢¥Õ¥é¥°
#define ¦Á_G 0.45 //½ÅÎϲîÅÙ
blsize=16.0 ; ¥Ü¡¼¥ë¤Î¥µ¥¤¥º
blspd=5.0 ; ¥Ü¡¼¥ë¤Î¥¹¥Ô¡¼¥É
vy_Char = 0.0 //¥¥ã¥é¤Î®ÅÙ¤ÎyÀ®Ê¬
blx=240.0:bly=300.0 ; ¥Ü¡¼¥ë¤ÎºÂɸ
bpx=4.0:bpy=4.0 ; XYÊý¸þ¤Î¥Ü¡¼¥ëºÂɸ²Ã»»ÃÍ
bk=0 ; ¥Ö¥í¥Ã¥¯¤òÊø¤¹¥Õ¥é¥°(1=Êø¤¹)
mblsize=-blsize;¥Ü¡¼¥ë°ìÅÀºÂɸ¡©
IsBallJumping = 0 //¥Ü¡¼¥ë¤ÎÂÚ¶õ¥Õ¥é¥°(0,1)=(false,true)
blhalf=blsize/2
wpx=10.0:wpy=10.0 ; ¥Ö¥í¥Ã¥¯1¸Ä¤¢¤¿¤ê¤Î¥µ¥¤¥º
wx=0:wy=y2-100.0 ; ¥Ö¥í¥Ã¥¯¤Îɽ¼¨³«»Ï°ÌÃÖ(º¸¾å)
blnum_x=x2/wpx //¥Ö¥í¥Ã¥¯¤ÎxÊý¸þ¤Î¸Ä¿ô
blnum_y=100.0/wpy //¡·y¡·
wsx=blnum_x:wsy=blnum_y ; ¥Ö¥í¥Ã¥¯¤ÎÇÛÃÖ¿ô(X,Y)
dim wall,wsx,wsy ; ¥Ö¥í¥Ã¥¯¤òɽ¼¨¤¹¤ë¥Õ¥é¥° //¢«¡Öɽ¼¨/Èóɽ¼¨¡×¤È¤¤¤¦¤è¤ê¡¢¤à¤·¤í¡Ö¸ºß¤¹¤ë/¤·¤Ê¤¤¡×¤Ç¤Ï¡©
; 0=ɽ¼¨¡¢1=ɽ¼¨¤·¤Ê¤¤ ¢«(¢¨¸Ä¿ÍŪ¤Ë¤Ï¡Ö(0,1)=(ɽ¼¨¤·¤Ê¤¤,¤¹¤ë)¡×¤ÎÊý¤¬ËÜǽŪ¤Ë¤·¤Ã¤¯¤ê¤¯¤ë...¡£(¢¨¤¢¤ó¤Þ¤êµ¤¤Ë¤·¤Ê¤¤¤Ç!))
;¡ã ¥Ö¥í¥Ã¥¯¤Î¸ºß¤ÎÀßÄê ¡ä
repeat 20 ;±¦Ã¼20Îó¤ò·ê¤Ë¤¹¤ë
cnt1 = cnt
repeat wsy
wall(int(wsx)-cnt1-1,cnt) = 1
loop
loop
screen 0,x2,y2
title "¥Ö¥í¥Ã¥¯Êø¤·"
cls 4
*main
redraw 0
gradf 0,0,x2,y2,1,0,128 ; ²èÌÌ¥¯¥ê¥¢
; ¥Ü¡¼¥ë : XÊý¸þ¤Î°ÜÆ°
stick key,15 //(=1+2+4+8)
if key&1 :blx=blx-bpx //¢¨¡Ö¡Þ4.0¡×¸ÇÄê¤À¤Ã¤¿¤Î¤Ç¾¡¼ê¤Ë¡Öbpx¡×¤ËÃÖ¤´¹¤¨¤Þ¤·¤¿¡£°Õ¿Þ¤¬°ã¤Ã¤Æ¤¤¤¿¤é¤´¤á¤ó¤Ê¤µ¤¤¡£
if key&4 :blx=blx+bpx //
if blx<=x1 : blx=x1 : bpx=-bpx //¢«²ò椷¤è¤¦¤È¤¹¤ë¤È®Å٥٥¯¥È¥ë¤¬-1Çܤµ¤ì¤ë¤Î¤Ï»ÅÍÍ?...
if blx>=(x2-blsize) : blx=x2-blsize : bpx=-bpx
//ue¥¡¼¤Ç¥¸¥ã¥ó¥×
getkey key,38//ue¥¡¼
if key=1 and IsBallJumping=0{
vy_Char=-8.0
bly + vy_Char ;¤³¤³¤ÇÆ°¤«¤·¤Æ¤ª¤«¤Ê¤¤¤È¡¢¸å¤ÎºÂɸ¥Á¥§¥Ã¥¯¤Ç°ú¤Ã¤«¤«¤Ã¤Æ»ß¤á¤é¤ì¤ë¡£
}
;//¥¸¥ã¥ó¥×Ãæ¡¢Íî²¼Ãæ¡¢¶¦Ä̤¹¤ëÅÀ¤Ï¡¢ÃÏÌ̤ËÉÕ¤¤¤Æ¤¤¤Ê¤¤»ö¡£
;if IsBallJumping=1{
;vy_Char+=¦Á_G//½ÅÎϲîÅÙ¡¢¤Þ¤¢¥Æ¥¥È¡¼¤Ë
;bly+=vy_Char
;}
//ÃåÃÏ
;if tyaku=1{
; //tyaku¤ÏÃåÃϥե饰
;IsBallJumping=0 : vy_Char=0.0:tyaku=0}
; ¥Ö¥í¥Ã¥¯¤Î½èÍý
colx=wpx+bsize;¥Ö¥í¥Ã¥¯¤ÎÂ礤µ¡¡¡Ü¡¡¥Ü¡¼¥ë¤Î¥µ¥¤¥º
coly=wpy+bsize
left=0
//¡ã ¥Ö¥í¥Ã¥¯¤ÎÉÁ²è & ¥Ü¡¼¥ë¤Î¾ì¶ãÌ£ ¡ä
IsBallJumping = 1 ;¥Õ¥é¥°½é´ü²½
repeat wsy
cy = cnt
y_check = wy + cnt*wpy
hsvcolor cnt*10,255,255
repeat wsx
cx = cnt
x_check = wx + cnt*wpx
if wall(cx,cy) = 0 { ;¥Ö¥í¥Ã¥¯¤¬Â¸ºß¤¹¤ë¤Ê¤é¤Ð
;¡ã ÉÁ²è ¡ä
boxf x_check,y_check ,x_check+wpx-2.0,y_check+wpy-2.0
;¡ã ¾ì¶ãÌ£ ¡ä
if (x_check-blhalf <= blx)&(blx <= x_check+wpx-blhalf) & (y_check-blsize <= bly)&(bly <= y_check) { //¤¤¤Þ¥Õ¥©¡¼¥«¥¹¤·¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¤¬¥Ü¡¼¥ë¤Î¾ì¤Ç¤¢¤ë¤Ê¤é¡¢¥Ü¡¼¥ë¤ÏÀÜÃϤ·¤Æ¤¤¤ë¤È¤ß¤Ê¤»¤ë¡£yºÂɸ¤Ë¤Ä¤¤¤Æ¤Ï¤¹¤êÈ´¤±¸½¾Ý¤òËɤ°¤¿¤á¤Î´Ë¾×Ãͤ¬É¬Íס£
;if (dx <= blsize)&(dy <= blsize) {
IsBallJumping = 0
bly = y_check-blsize
}
}
loop
loop
//¡ã ÎϳؽèÍý ¡ä
;¡ã ®ÅÙ½èÍý ¡ä
if IsBallJumping = 0 { ;ÀÜÃϤ·¤Æ¤¤¤ë¤Ê¤é¤Ð
vy_Char = 0.0
} else { ;ÀÜÃϤ·¤Æ¤¤¤Ê¤¤¤Ê¤é¤Ð
vy_Char + ¦Á_G
}
;¡ã °ÜÆ°½èÍý ¡ä
bly + vy_Char //Ëè²ó®ÅÙÀ®Ê¬¤ò¤·¤Æ¤¤¤ë¤±¤ì¤É¡¢Â®ÅÙ¤¬0¤Ê¤éºÂɸ¤¬ÊѤï¤é¤Ê¤¤¤è¤Í...¡£¤Ä¤Þ¤ê¡¢ÊªÍýŪ¤Ë¹Í¤¨¤ì¤Ð¡Ö®Å١פ¬¥Ü¡¼¥ë¤Î°ÌÃÖ¤òÁà¤ë¸°¤Ã¤Æ¤³¤È! (¢¨¸·Ì©¤Ë¤Ï¡Ö½é´ü°ÌÃÖ¡×&¡Ö½é®¡×&¡ÖÎϡפ¬¸°¤À¤¬¡¢±¿Æ°ÊýÄø¼°¤ò»È¤ï¤Ê¤¤¤³¤Î¥²¡¼¥à¤Ê¤é¤½¤³¤Þ¤ÇÂбþ¤¹¤ëɬÍפϤʤ¤¡£)¡£¤³¤ì¤µ¤¨¥³¥ó¥È¥í¡¼¥ë¤¹¤ì¤Ð¤¢¤È¤Î½èÍý¤Ï¤¤¤«¤Ê¤ë¾ì¹ç¤Ç¤âƱ¤¸·Á¤Î¼ê³¤¤Çµ½Ò¤·¤Æ¤è¤¤¡£¢Í¥³¡¼¥É¤¹¤Ã¤¤ê!
;¢ÉÔÍ×
;#if 0 //¤³¤³¤«¤é¡Ö#endif¡×¤Þ¤Ç¤Ï¼Â¹Ô¤µ¤ì¤Ê¤¤ (¥³¥ó¥Ñ¥¤¥ë»þ¤Ë̵»ë¤µ¤ì¤ë)
; repeat wsy//¥Ö¥í¥Ã¥¯£ùºÂɸ
; cy=cnt
; y=cnt*wpy+wy//¥Ö¥í¥Ã¥¯¤ò¤¢¤ëÂ礤µ¤´¤È¤Ë¶èÀڤ롩 //¢«Yes. »¡¤¹¤ë¤Ë¡¢¡É¶ãÌ£ÂоݤΥ֥í¥Ã¥¯¤ÎyÀ®Ê¬¤ò·èÄꤷ¡É¤Æ¤¤¤ë¤ó¤¸¤ã¤Ê¤¤¡©
; //¢¬(¢¨¹¥¤ß¤Ï¿Í¤µ¤Þ¤¶¤Þ¤À¤±¤É¡¢¸Ä¿ÍŪ¤Ë¤Ï¡Öwy + cnt*wpy¡×¤¬¤ª´«¤á¡£Äê¿ô²½¤ÎÅٹ礤¤¬¹â¤¤¤â¤Î¤Û¤ÉÁ°¤ËÃÖ¤¯¤È¸«¤ä¤¹¤¤¤È»×¤¦¡£)
; hsvcolor cnt*10,255,255
;
; repeat wsx//¥Ö¥í¥Ã¥¯£øºÂɸ
; cx=cnt
; x=cnt*wpx+wx//¥Ö¥í¥Ã¥¯¤Î°ìÊÕŤµ¡Ü³«»ÏÅÀ¡¡¥Ö¥í¥Ã¥¯¤ò¤¢¤ëÂ礤µ¤Ë¶èÀڤ롩
; if wall(cx,cy)=0 {//¥Ö¥í¥Ã¥¯£²¼¡ÇÛÎó
; ; ¥Ö¥í¥Ã¥¯¤òɽ¼¨
; boxf x,y,x+wpx-2.0,y+wpy-2.0
; i = absf(x-blx) : j = absf(y-bly)//¥Ü¡¼¥ëºÂɸ¡¡¡Ý¡¡¥Ö¥í¥Ã¥¯»ÏÅÀºÂɸ
; //¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯¤Î¤¢¤¿¤êȽÄê
; //¡Ö¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¡×¤¬¡Ö¥Ü¡¼¥ë¥µ¥¤¥º¡×¤è¤ê¾®¤µ¤¤¡¡¥¢¥ó¥É
; //¡Ö¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¡×¤¬¡Ö¥Ü¡¼¥ë¥µ¥¤¥º¡×¤è¤êÂ礤¤
;
; //¡Öº¹¡×¤Ï¡Ö|ùx|¡×
;
; if (i<=blsize)&(j<=blsize) {
; tyaku=1
; bly=y-13
; }
;
; }
;
; if wall(cx,cy)=0 & cx>30{
; wall(cx,cy)=1
; tyaku=0//¥Ö¥í¥Ã¥¯¤¬Ìµ¤¤¤È¤¤ÏÃåÃϽèÍý¤ò¤·¤Ê¤¤
; }
; if wall(cx,cy)=1{
;// i=x-blx:j=y-bly//¥Ü¡¼¥ëºÂɸ¡¡¡Ý¡¡¥Ö¥í¥Ã¥¯»ÏÅÀºÂɸ
; //¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯¤Î¤¢¤¿¤êȽÄê
; //¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¤¬¤¬¥Ü¡¼¥ë¥µ¥¤¥º¤è¤ê¾®¤µ¤¤¡¡¥¢¥ó¥É
; //¥Ü¡¼¥ë¤È¥Ö¥í¥Ã¥¯º¹¤¬¡¡¥Ü¡¼¥ë¥µ¥¤¥º¤È¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬Â礤¤
; if (i<=blsize)&(j<=blsize) {
; // IsBallJumping=1
; tyaku=0
; }
; }
; loop
; loop
;#endif
; ¥Ü¡¼¥ë¤òɽ¼¨
pos blx,bly:color 255,255,255
font msgothic,blsize
mes "¡ü"
redraw 1
await 16
goto *main
*gameover
objsize 180,32
pos 150,330:button "½ª¤ï¤ê",*owari
stop
*owari
end
| |
|
2014/2/23(Sun) 08:33:31|NO.60209
No.60204¤Î¡Ö³«Êü¡×¤ÏÀµ¤·¤¯¤Ï¡Ö²òÊü¡×¤Ç¤¹¡£¼ºÎ餷¤Þ¤·¤¿¡£
¤Þ¤¿¡¢
>¤Þ¤¿¡¢¥Þ¥Ã¥×¤ò¥Þ¥Ã¥×¥Á¥Ã¥×¤Î¤è¤¦¤Ë¤·¤Æ¥¹¥¯¥í¡¼¥ë¤·¤Æ¿Ê¤ó¤Ç¤¤¤¯¤è¤¦¤Ë¤·¤Æ¤¤¤¯Í½Äê¤Ç¤¹¡£
>¼«Ê¬¤Ê¤ê¤Ë¹Í¤¨¤Æ¸«¤¿¤Î¤Ç¤¹¤¬¡¢ÇÛÎó¤¬Â¤ê¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¿´ÇÛ¤·¤Æ¤ª¤ê¤Þ¤¹¡£
>¸½ºßɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥Þ¥Ã¥×¥Á¥Ã¥×¤È¥¹¥¯¥í¡¼¥ë¤·¤Æ¿·¤¿¤Ë±¦¤Ë½Ð¸½¤¹¤ë¥Ö¥í¥Ã¥¯¤ò¤É¤Î¤è¤¦¤Ë½èÍý¤¹¤ì¤Ð¤¤¤¤¤«Çº¤ó¤Ç¤¤¤Þ¤¹¡£
¤³¤ì¤Ë´Ø¤·¤Æ¤Ç¤¹¤¬¡¢
>¥Þ¥Ã¥×¤ò¥Þ¥Ã¥×¥Á¥Ã¥×¤Î¤è¤¦¤Ë¤·¤Æ¥¹¥¯¥í¡¼¥ë¤·¤Æ¿Ê¤ó¤Ç¤¤¤¯¤è¤¦¤Ë¤·¤Æ¤¤¤¯Í½Äê
¤¤¤¤¤È»×¤¤¤Þ¤¹¡£
>ÇÛÎó¤¬Â¤ê¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¿´ÇÛ
¤ê¤Ê¤¯¤Ê¤ë¤È¤¤¤¦¤³¤È¤Ï¤Ê¤¤¤È»×¤¤¤Þ¤¹¡£Î㤨¤Ð¡¡dim wall,100000,100¡¡¤È¤·¤Æ¤â40MB¤Ç¤¹¡£
¤½¤ì¤Ë¡¢0or1¤Î¿ôÃͤ·¤«Êݸ¤·¤Ê¤¤¤Î¤Ê¤é¡¢³Æ¥Ö¥í¥Ã¥¯¤Ï1¥Ð¥¤¥È¤Çɽ¤»¤Ð½½Ê¬¤Ê¤Î¤Ç¡¢HSPɸ½à¤ÎÇÛÎó¤ò»È¤ï¤º¤ËÆȼ«¤Î¥Ç¡¼¥¿¤ËÂФ·¤Æpeek ,pokeÅù¤ÎÌ¿Îá¤Ç¥¢¥¯¥»¥¹¤¹¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¤Ç¡¢
¥Þ¥Ã¥×¤ËɬÍפʥá¥â¥ê¤ÎÍÆÎ̤ò1/4¤Ë¸º¤é¤»¤Þ¤¹¡£(¢èÀ°¿ôÇÛÎó¤Ï1Í×ÁÇ4¥Ð¥¤¥È)
>¸½ºßɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥Þ¥Ã¥×¥Á¥Ã¥×¤È¥¹¥¯¥í¡¼¥ë¤·¤Æ¿·¤¿¤Ë±¦¤Ë½Ð¸½¤¹¤ë¥Ö¥í¥Ã¥¯¤ò¤É¤Î¤è¤¦¤Ë½èÍý¤¹¤ì¤Ð¤¤¤¤¤«
ÇÛÎó¤òxÊý¸þ¤Ë¤Ö¤Ã¤³È´¤¤¹¤ë¥¤¥á¡¼¥¸¤Ç¤¹¤«¤Í¡£
¥Þ¥Ã¥×Á´ÂΤòµ²±¤¹¤ëµðÂçÇÛÎóM¤È¡¢²èÌÌÆâ¤Î¥Þ¥Ã¥×¤Î¤ß¤òµ²±¤¹¤ëÇÛÎóD¤òÍÑ°Õ¤·¡¢¥¹¥¯¥í¡¼¥ë¤¹¤ë¤´¤È¤ËM¤«¤éD¤ØÁ³¤ë¤Ù¤Îΰè¤ò¥³¥Ô¡¼¤·¤Æ¡¢
¾×ÆÍȽÄê¤ÏD¤Ç¹Ô¤¦¤Î¤¬¤è¤¤¤È»×¤¤¤Þ¤¹¡£¥¹¥¯¥í¡¼¥ë¤·¤Æ¤âƱ¤¸·×»»¼°¤Ç¤Á¤ç¤Ã¤ÈÄê¿ô¹à¤ò³ú¤Þ¤»¤Æ¤ä¤ë¤À¤±¤Ç½èÍý¤Ç¤¤Þ¤¹¤«¤é¡£
| |
|
2014/2/23(Sun) 14:04:56|NO.60223
¶µ¤¨¤Æ¤¤¤¿¤À¤ËÜÅö¤ËÍÆñ¤¦¤´¤¶¤¤¤Þ¤¹¡ª
¤³¤ì¤Ç¤¢¤È°ìÊâºî¤ê¤¿¤¤¥²¡¼¥à¤Ë¶á¤Å¤±¤ë¤È¤ª¤â¤¤¤Þ¤¹¡£
¤¹¤ß¤Þ¤»¤ó¡¢Ã챤¬¤¢¤Þ¤ê¤Ê¤¯¡¢È¾³Ñ¤ä²þ¹Ôˡ§¤¬¤Ê¤Ë¤«¤ª¤«¤·¤«¤Ã¤¿¤Î¤Ç¤·¤ç¤¦¤«¡©
¥¤¥ì¥®¥å¥é¡¼¤Ê½ñ¤Êý¤ò¤·¤Æ¤¤¤¿¤Î¤Ç¤·¤ç¤¦¤«¡©¶µ¤¨¤Æ¤¤¤¿¤À¤±¤ì¤Ð¹¬¤¤¤Ç¤¹¡£
ÊɤËÅö¤¿¤ë¤ÈµÕÊý¸þ¤ËÆ°¤¯¾ì½ê¤Ï¥Ö¥í¥Ã¥¯Êø¤·¤Î»Ä³¼¤Ç¡¢¾Ã¤·Ëº¤ì¤Ç¤¹¡£
¤¢¤È¥Ö¥í¥Ã¥¯¤Îɽ¼¨¤Ç¤¹¤¬¡¢£°¡á¤Ê¤¤¡¡£±¡áɽ¼¨¤¹¤ë¡¢¤¬»ä¤â¹Í¤¨¤Æ¤ß¤ì¤Ð¤·¤Ã¤¯¤ê¤·¤Þ¤¹¡£
£Ï£Î¤È£Ï£Æ£Æ¤Ê¥¤¥á¡¼¥¸¤Ç¤¹¤Í¡ª
¡¡¤¤¤í¤¤¤í¤Ê¤È¤³¤í¤«¤éÀÚ¤êÄ¥¤ê¤·¤Æ¡¢Äɲ䷤ƤÏ
¾Ã¤·¤Æ¤Î·«¤êÊÖ¤·¤Ç¥Õ¥é¥ó¥±¥ó¥·¥å¥¿¥¤¥ó¤Î¤è¤¦¤Ê¥×¥í¥°¥é¥à¤¬¤Ç¤¤Æ¤¤¤Þ¤¹¡¦¡¦¡¦
|
|
2014/2/23(Sun) 16:31:00|NO.60229
»²¹Í¤Ë¤Ê¤Ã¤ÆÎɤ«¤Ã¤¿¤Ç¤¹¡£
>Ⱦ³Ñ¤ä²þ¹Ôˡ§¤¬¤Ê¤Ë¤«¤ª¤«¤·¤«¤Ã¤¿¤Î¤Ç¤·¤ç¤¦¤«¡©
¤ª¤«¤·¤¤¤È·è¤á¤Ä¤±¤ë¤Ä¤â¤ê¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢
Î㤨¤Ð¡¢
//ÃåÃÏ
if tyaku=1{
IsBallJumping=0 : vy_Char=0.0:tyaku=0}
¤Î¤È¤³¤í¤Ï
//ÃåÃÏ
if tyaku=1{
IsBallJumping=0 : vy_Char=0.0 : tyaku=0
}
¤È¤·¤¿Êý¤¬¸«¤ä¤¹¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤È»×¤¤¤Þ¤·¤¿¡£
ifʸ¤Ç{}¤ò»È¤¦»þ¤Ï¡¢{}¤ÎÃæ¤òTab¤Ç1Ãʾ夲¤Æ¤ª¤¯¤È¹½Â¤¤¬°ìÌܤDzò¤ê¤Þ¤¹¡£
ÆäËif¤òÆó½Å¡¢»°½Å¤Ë¤¹¤ë¤È¤¤Ë¸«¤ä¤¹¤µ¤¬¤°¤ó¤È¾å¤¬¤ë¤Î¤¬¼Â´¶¤Ç¤¤Þ¤¹¡£
±é»»µ¹æ¤ä¡¢Ê£¿ô¤ÎÌ¿Îá¤ä´Ø¿ô¤ò1¹Ô¤Ë¤Þ¤È¤á¤Æµ½Ò¤¹¤ëºÝ¤Î¡Ö:¡×¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥³¥í¥ó¤Îξ¥µ¥¤¥É¤ËȾ³Ñ¥¹¥Ú¡¼¥¹¤¬¤¢¤Ã¤¿Êý¤¬¸«¤ä¤¹¤¤¤È»×¤¤¤Þ¤¹¡£
(Îã)
mes "a":x=ginfo_mesx+cnt
¢
mes "a" : x = ginfo_mesx + cnt
²¿¤ò¤â¤Ã¤Æ¡Ö¸«¤ä¤¹¤¤(¢Í²ò¤ê¤ä¤¹¤¤)¡×¤È¤¹¤ë¤«¤Ï¿Í¤½¤ì¤¾¤ì¤Ê¤Î¤Ç¡¢É¬¤º¤·¤â¡Ö¤³¤¦¤·¤í¡×¤È¤¤¤¦½ñ¤Êý¤Ï¤Ê¤¤¤Ç¤¹¡£
ºÇ½ªÅª¤Ë¤Ï¼«Ê¬¤¬¡Ö¸«¤ä¤¹¤¤¤Ê¡×¤È»×¤¦½ñ¤Êý¤Ç½ñ¤¯¤Î¤¬¼«Ê¬¤Ë¤È¤Ã¤Æ¤Ï°ìÈ֤Ǥ¹¡£
¤Þ¤¿¡¢»þ´Ö¤¬·Ð¤Ä¤ËÏ¢¤ì¤Æ½ñ¤Êý¤Ï¼«Á³¤ÈÎɤ¯¤Ê¤Ã¤Æ¤¤¤¯¤â¤Î¤Ç¤¹¡£
...¤È¡¢¤Ê¤ó¤«°Î¤½¤¦¤Ê¤³¤È¸À¤¤¤Þ¤·¤¿¤¬¡¢
¤È¤Ë¤«¤¯¡¢¤Ù¤ê¡¼¤µ¤ó¤ÎǼÆÀ¤Î¤¤¤¯¥²¡¼¥à¤¬¤Ç¤¤ë¤È¤¤¤¤¤Ç¤¹¤Í¡£³Ú¤·¤ß¤Ê¤¬¤é¤ä¤Ã¤Æ¤¤¤¤Þ¤·¤ç¤¦!
| |
|
2014/2/25(Tue) 00:59:47|NO.60270
¾×ÆÍȽÄê¤Ç¤¹¤¬¡¢²£¤«¤é¤ÎȽÄê¤Ç¤Þ¤¿íµ¤¤Þ¤·¤¿¡£¤ª½õ¤±¤¯¤À¤µ¤¤¡£
¥Ö¥í¥Ã¥¯¤Î¾×ÆÍȽÄê¤Ï¥Ö¥í¥Ã¥¯ÆâÉôºÂɸ¤ËÆþ¤Ã¤¿¤é¾å¤Ë²¡¤·½Ð¤¹¡£¡Ê²ò·èºÑ¡Ë
¡±¦¤«¤éÅö¤¿¤Ã¤¿¤é¥Ö¥í¥Ã¥¯ÆâÉôºÂɸ±¦È¾Ê¬¤Ë¿ÊÆþ¤¹¤ë¤Î¤Ç±¦¤Ë²¡¤·½Ð¤¹
¢º¸¤«¤éÅö¤¿¤Ã¤¿¤é¥Ö¥í¥Ã¥¯ÆâÉôºÂɸº¸È¾Ê¬¤Ë¿ÊÆþ¤¹¤ë¤Î¤Çº¸¤Ë²¡¤·½Ð¤¹
¤Î£²ÅÀ¤¬¤¦¤Þ¤¯¤¤¤¤Þ¤»¤ó¡£±¦¤«¤é¤Î»þ¤Î¤¢¤¿¤êȽÄê¤Ï¤¦¤Þ¤¯¤¤¤¯¤Î¤Ç¤¹¤¬¡£¡£¡£
¥½¡¼¥¹¤Ï°Ê²¼¤Ë
//¡Ö//¡×¤Ç¤Ï¤¸¤Þ¤ë¹Ô¤Ï»ä¤¬¾¡¼ê¤ËÉÕ¤±¤¿¥³¥á¥ó¥È¤Ç¤¹¡£
//¤Þ¤³¤È¤Ë¤Þ¤³¤È¤Ë¾¡¼ê¤Ê¤¬¤é....¡¢
// ¢£Ì¤½é´ü²½¤À¤Ã¤¿¡Ö¥¸¥ã¥ó¥×Ãæ¡×¥Õ¥é¥°¤ò¡ÖIsBallJumping¡×¤ÇÃÖ¤´¹¤¨¤µ¤»¤Æ¤â¤é¤¤¤Þ¤·¤¿¡£
// ¢£½ÅÎϲîÅÙ¤ò¡Ö¦Á_G¡×¤È¤·¤Æ¿·¤¿¤ËÄêµÁ¤µ¤»¤Æ¤â¤é¤¤¤Þ¤·¤¿¡£
// ¢£¡Ö¥¥ã¥évy¡×¤ò¡Övy_Char¡×¤ÇÃÖ¤´¹¤¨¤µ¤»¤Æ¤â¤é¤¤¤Þ¤·¤¿¡£
x1=0.0:y1=0.0 ; ²èÌ̺¸¾å¤ÎºÂɸ
x2=480.0:y2=480.0 ; ²èÌ̱¦²¼¤ÎºÂɸ
clrflag=0 ; ¥¯¥ê¥¢¥Õ¥é¥°
#define ¦Á_G 0.45 //½ÅÎϲîÅÙ
blsize=16.0 ; ¥Ü¡¼¥ë¤Î¥µ¥¤¥º
blspd=5.0 ; ¥Ü¡¼¥ë¤Î¥¹¥Ô¡¼¥É
vy_Char = 0.0 //¥¥ã¥é¤Î®ÅÙ¤ÎyÀ®Ê¬
blx=240.0:bly=300.0 ; ¥Ü¡¼¥ë¤ÎºÂɸ
bpx=1.0:bpy=1.0 ; XYÊý¸þ¤Î¥Ü¡¼¥ëºÂɸ²Ã»»ÃÍ
bk=0 ; ¥Ö¥í¥Ã¥¯¤òÊø¤¹¥Õ¥é¥°(1=Êø¤¹)
mblsize=-blsize;¥Ü¡¼¥ë°ìÅÀºÂɸ¡©
IsBallJumping = 0 //¥Ü¡¼¥ë¤ÎÂÚ¶õ¥Õ¥é¥°(0,1)=(false,true)
// ¡ü---head---¡ü
// ¡Ã ¡¡¡¡¡Ã
// ¡Ã ¡¡¡¡¡Ã
// ¡Ã¡¡¡¡¡¡¡¡¡¡¡Ã
// ¡Ã¡¡¡¡ ¡¡¡¡¡Ã
// ¡ü---leg----¡ü
blhalf=blsize/2//¥Ü¡¼¥ë¤ÎÃæ¿´¡©
wpx=10.0:wpy=10.0 ; ¥Ö¥í¥Ã¥¯1¸Ä¤¢¤¿¤ê¤Î¥µ¥¤¥º
wx=0 :wy =y2-100.0 ; ¥Ö¥í¥Ã¥¯¤Îɽ¼¨³«»Ï°ÌÃÖ(º¸¾å)
blnum_x=x2/wpx //¥Ö¥í¥Ã¥¯¤ÎxÊý¸þ¤Î¸Ä¿ô
blnum_y=100.0/wpy //¡·y¡·
wsx=blnum_x:wsy=blnum_y ; ¥Ö¥í¥Ã¥¯¤ÎÇÛÃÖ¿ô(X,Y)
dim wall,wsx,wsy ; ¥Ö¥í¥Ã¥¯¤òɽ¼¨¤¹¤ë¥Õ¥é¥° //¢«¡Öɽ¼¨/Èóɽ¼¨¡×¤È¤¤¤¦¤è¤ê¡¢¤à¤·¤í¡Ö¸ºß¤¹¤ë/¤·¤Ê¤¤¡×¤Ç¤Ï¡©
; 0=ɽ¼¨¡¢1=ɽ¼¨¤·¤Ê¤¤ ¢«(¢¨¸Ä¿ÍŪ¤Ë¤Ï¡Ö(0,1)=(ɽ¼¨¤·¤Ê¤¤,¤¹¤ë)¡×¤ÎÊý¤¬ËÜǽŪ¤Ë¤·¤Ã¤¯¤ê¤¯¤ë...¡£(¢¨¤¢¤ó¤Þ¤êµ¤¤Ë¤·¤Ê¤¤¤Ç!))
;¡ã ¥Ö¥í¥Ã¥¯¤Î¸ºß¤ÎÀßÄê ¡ä
repeat 20 ;±¦Ã¼20Îó¤ò·ê¤Ë¤¹¤ë
cnt1 = cnt
repeat 5
wall(int(wsx)-cnt1-1,cnt) = 1
loop
loop
repeat 20 ;±¦Ã¼20Îó¤ò·ê¤Ë¤¹¤ë
cnt1 = cnt
repeat 5
wall(cnt1,cnt) = 1
loop
loop
screen 0,x2,y2
title "¥¥ã¥é°ÜÆ°"
cls 4
*main
redraw 0
gradf 0,0,x2,y2,1,0,128 ; ²èÌÌ¥¯¥ê¥¢
; ¥Ü¡¼¥ë : XÊý¸þ¤Î°ÜÆ°
stick key,15 //(=1+2+4+8)
//º¸°ÜÆ°
if key&1 :blx=blx-bpx //bpx¤Ï¿Ê¹Ô®ÅÙ
//±¦°ÜÆ°
if key&4 :blx=blx+bpx //
//mapΥæÀ©¸æ
if blx<=x1 : blx=x1
if blx>=(x2-blsize): blx=x2-blsize
//ue¥¡¼¤Ç¥¸¥ã¥ó¥×
getkey key,38//ue¥¡¼
if key=1 and IsBallJumping=0{
vy_Char=-8.0
bly += vy_Char
}
; ¥Ö¥í¥Ã¥¯¤Î½èÍý
colx=wpx+bsize;¥Ö¥í¥Ã¥¯¤ÎÂ礤µ¡¡¡Ü¡¡¥Ü¡¼¥ë¤Î¥µ¥¤¥º
coly=wpy+bsize
//¡ã ¥Ö¥í¥Ã¥¯¤ÎÉÁ²è & ¥Ü¡¼¥ë¤Î¾ì¶ãÌ£ ¡ä
IsBallJumping = 1 ;¥Õ¥é¥°½é´ü²½
repeat wsy
cy = cnt
y_check = wy + cnt*wpy
hsvcolor cnt*10,255,255
repeat wsx
cx = cnt
x_check = wx + cnt*wpx
if wall(cx,cy) = 0 { ;¥Ö¥í¥Ã¥¯¤¬Â¸ºß¤¹¤ë¤Ê¤é¤Ð
;¡ã ÉÁ²è ¡ä
await 0.1
boxf x_check,y_check ,x_check+wpx-2.0,y_check+wpy-2.0
;¡ã ¾ì¶ãÌ£ ¡ä¡¡¥Ö¥í¥Ã¥¯³«»ÏºÂɸ - ¥Ü¡¼¥ëÃæ¿´ºÂɸ ¡ã¥Ü¡¼¥ëºÂɸ¡¡¡õ¡¡¥Ö¥í¥Ã¥¯³«»ÏºÂɸ¡Ü¥Ö¥í¥Ã¥¯¤Î¥µ¥¤¥º-¥Ü¡¼¥ë¤ÎÃæ¿´ºÂɸ¤¬¡¡¡äŽÎŽÞŽ°¥ëºÂɸ¡¡¤È¤¤Ï¡¦¡¦¡¦Åö¤¿¤ë
bl_headx = blx+(blsize/2) : bl_heady = bly
bl_legx = blx+(blsize/2) : bl_legy = bly+blsize
//Ƭ¤¬¥Ö¥í¥Ã¥¯¤ËÅö¤¿¤Ã¤Æ¤Ê¤¤¤«¡¢Â¤¬¥Ö¥í¥Ã¥¯¤ËÅö¤¿¤Ã¤Æ¤¤¤Ê¤¤¤«
//¤Î½çÈÖ¤ÇȽÄê¤ò¹Ô¤¦
//Ƭ¤¬¥Ö¥í¥Ã¥¯¤ËÅö¤¿¤Ã¤Æ¤¤¤ë¤«È½Äê
if (x_check <= bl_headx) & ( bl_headx <= x_check + wpx ){
if(y_check <= bl_heady) & ( bl_heady <= y_check + wpy ){
IsBallJumping = 1
//ȽÄê¥Ü¥Ã¥¯¥¹¤ÎÅÀÌÇ
color 0,0,0:boxf x_check,y_check ,x_check+wpx-2.0,y_check+wpy-2.0
//if x_cheak+wpx/2 <= bl_headx{
//blx=blx + blsize/3:await 1000
//}else
if x_cheak+wpx/2 <= bl_headx{
blx=blx + blsize/3
}
if x_cheak+wpx/2 > bl_headx{
blx=blx - blsize/3
}
}
}
//blx_old=blx
//¤¬¥Ö¥í¥Ã¥¯¤ËÅö¤¿¤Ã¤Æ¤¤¤ë¤«È½Äê
if (x_check<= bl_legx)&(bl_legx <= x_check+wpx){
if(y_check<= bl_legy)&(bl_legy <= y_check+wpy){
//¤¤¤Þ¥Õ¥©¡¼¥«¥¹¤·¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¤¬¥Ü¡¼¥ë¤Î¾ì¤Ç¤¢¤ë¤Ê¤é¡¢
//¥Ü¡¼¥ë¤ÏÀÜÃϤ·¤Æ¤¤¤ë¤È¤ß¤Ê¤»¤ë¡£yºÂɸ¤Ë¤Ä¤¤¤Æ¤Ï¤¹¤êÈ´¤±¸½¾Ý¤òËɤ°¤¿¤á¤Î´Ë¾×Ãͤ¬É¬Íס£
IsBallJumping = 0
bly = y_check-blsize
}
}
}
loop
loop
//¡ã ÎϳؽèÍý ¡ä
;¡ã ®ÅÙ½èÍý ¡ä
if IsBallJumping = 0 { ;ÀÜÃϤ·¤Æ¤¤¤ë¤Ê¤é¤Ð
vy_Char = 0.0
} else { ;ÀÜÃϤ·¤Æ¤¤¤Ê¤¤¤Ê¤é¤Ð
vy_Char + ¦Á_G
}
;¡ã °ÜÆ°½èÍý ¡ä
bly + vy_Char
//Ëè²ó®ÅÙÀ®Ê¬¤ò¤·¤Æ¤¤¤ë¤±¤ì¤É¡¢Â®ÅÙ¤¬0¤Ê¤éºÂɸ¤¬ÊѤï¤é¤Ê¤¤¤è¤Í...¡£
//¤Ä¤Þ¤ê¡¢ÊªÍýŪ¤Ë¹Í¤¨¤ì¤Ð¡Ö®Å١פ¬¥Ü¡¼¥ë¤Î°ÌÃÖ¤òÁà¤ë¸°¤Ã¤Æ¤³¤È!
//(¢¨¸·Ì©¤Ë¤Ï¡Ö½é´ü°ÌÃÖ¡×&¡Ö½é®¡×&¡ÖÎϡפ¬¸°¤À¤¬¡¢±¿Æ°ÊýÄø¼°¤ò»È¤ï¤Ê¤¤¤³¤Î¥²¡¼¥à¤Ê¤é¤½¤³¤Þ¤ÇÂбþ¤¹¤ëɬÍפϤʤ¤¡£)¡£
//¤³¤ì¤µ¤¨¥³¥ó¥È¥í¡¼¥ë¤¹¤ì¤Ð¤¢¤È¤Î½èÍý¤Ï¤¤¤«¤Ê¤ë¾ì¹ç¤Ç¤âƱ¤¸·Á¤Î¼ê³¤¤Çµ½Ò¤·¤Æ¤è¤¤¡£
//¢Í¥³¡¼¥É¤¹¤Ã¤¤ê!
; ¥Ü¡¼¥ë¤òɽ¼¨
pos blx,bly:color 255,255,255
font msgothic,blsize
mes "¡ü"
redraw 1
await 16
goto *main
*gameover
objsize 180,32
pos 150,330:button "½ª¤ï¤ê",*owari
stop
*owari
end
| |
|
2014/2/26(Wed) 17:16:23|NO.60282
¡Ö¥Ü¡¼¥ë¤òÆ°¤«¤·¤¿¤È²¾Äꤷ¤¿¤È¤¤Ë¥Ü¡¼¥ë¤¬¥Ö¥í¥Ã¥¯¤Ë¿¯Æþ¤¹¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤Æ¡¢
Âç¾æÉפʤé¼ÂºÝ¤ËÆ°¤«¤·¡¢Âç¾æÉפǤϤʤ¤¾ì¹ç¤Ï°ÜÆ°¤ò¹Ô¤ï¤Ê¤¤¡×
¤³¤ó¤Ê¹Í¤¨Êý¤Ç¤É¤¦¤Ç¤·¤ç¤¦¤«¡©
²¼¤Ï¥µ¥ó¥×¥ë¤Ç¤¹¡£
Ä´»Ò¤Ë¾è¤ê¤¹¤®¤Æ¤¤¤í¤¤¤í¤ÈÇɼê¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ì¤â»²¹Í¤Ê¤ì¤Ð...¡£
;²Ã®Å٤Ϥ¹¤Ù¤Æ¡Ìpx/s^2¡Í
;®Å٤Ϥ¹¤Ù¤Æ¡Ìpx/s¡Í
*BOOT
;¡ã ¥ï¡¼¥ë¥ÉÀßÄê ¡ä
;¡ã ¶õ´Ö ¡ä
;¡ã ¥·¥¹¥Æ¥à ¡ä
;²èÌ̤κ¸¾å¤ÎºÂɸ
#define posx1_screen 0
#define posy1_screen 0
#define posx2_screen 479
#define posy2_screen 479
#const sizex_screen posx2_screen+1
#const sizey_screen posy2_screen+1
;¡ã »þ´Ö ¡ä
;¡ã ¥·¥¹¥Æ¥à ¡ä
#define period_loop 16 ;¥ë¡¼¥×¤Î¼þ´ü¡Ìms¡Í
;¡ã ÎÏ¾ì ¡ä
;¡ã ʪÍý ¡ä
#define ¦Á_G 1000.0 ;½ÅÎϲîÅÙ
;¡ã ¥Ü¡¼¥ëÀßÄê ¡ä
;¡ã ʪÍý ¡ä
#define diameter_ball 16 ;¥Ü¡¼¥ë¤Îľ·Â
#const radius_ball diameter_ball/2 ;¥Ü¡¼¥ë¤ÎȾ·Â
#define v_h_ball_¢«¢ª 100.0 ;¢«¢ª¥¡¼¤Ë¤è¤ë¥Ü¡¼¥ë¤Î°ÜÆ°»þ¤Î®ÅÙ
#define v_v_ball_Jump 500.0 ;¥¸¥ã¥ó¥×»þ¤Î±ôľÊý¸þ¤Î½é®
v_ball = 0.0 ,0.0 ;¥Ü¡¼¥ë¤Î®ÅÙ¡£(x,y)
pos_ball = 240.0+radius_ball ,150.0+radius_ball ;¥Ü¡¼¥ë¤ÎÃæ¿´¤ÎºÂɸ
Condition1_ball = 0 ;¥Ü¡¼¥ë¤Î¾õÂÖ¡£(0,1,2) = (¥Ö¥í¥Ã¥¯¤Ø¤Î¿¯Æþ¤Ê¤·&ÂÚ¶õ ,¡·¿¯Æþ¤Ê¤·&ÀÜÃÏ ,¡·¿¯Æþ¤¢¤ê)
;¡ã ¥Ö¥í¥Ã¥¯ÀßÄê ¡ä
;¡ã ʪÍý ¡ä
#define sizex_block 10 ;¥Ö¥í¥Ã¥¯¤Îx¥µ¥¤¥º
#define sizey_block 10 ;¡·y
;¥Ö¥í¥Ã¥¯¤Îɽ¼¨³«»Ï°ÌÃÖ(º¸¾å)
#define posx_StartBlock posx1_screen
#const posy_StartBlock posy2_screen - 200
#const num_block_x sizex_screen/sizex_block
#const num_block_y 200/sizey_block
dim LandForm_Blocks ,num_block_x,num_block_y ;ÃÏ·Á¥Ç¡¼¥¿¡£(0,1)=(¥Ö¥í¥Ã¥¯¤Ê¤·,¤¢¤ê)
repeat num_block_x
cnt1 = cnt
repeat num_block_y
LandForm_Blocks(cnt1,cnt) = 1
loop
loop
;¡ã ÃÏ·Á¤ÎÊÔ½¸ ¡ä
;¡ã (º¸Ã¼¾å20*5)&(±¦Ã¼¾å20*5)¤ò¾Ã¤¹ ¡ä
repeat 20
cnt1 = cnt
repeat 5 : LandForm_Blocks(cnt1,cnt) = 0 : LandForm_Blocks(num_block_x-1-cnt1,cnt) = 0 : loop
loop
;¡ã Ãϲ¼Æ» ¡ä
repeat 15
cnt1 = cnt
repeat 5
LandForm_Blocks(cnt+cnt1,cnt1) = 0
LandForm_Blocks(num_block_x-1-cnt-cnt1,cnt1) = 0
loop
loop
repeat 5
cnt1 = cnt
repeat 18
LandForm_Blocks(15+cnt,10+cnt1) = 0
loop
loop
;¡ã ¥Ö¥í¥Ã¥¯¡½¥Ü¡¼¥ë´ÖÀßÄê ¡ä
;¡ã ʪÍý ¡ä
#define e_Block¡õBall 0.40 ;¥Ö¥í¥Ã¥¯¡½¥Ü¡¼¥ë´Ö¤Îȿȯ·¸¿ô
;¡ã ¥²¡¼¥àãÀ®ÅÙÀßÄê ¡ä
flg_GameClear = 0 ;¥¯¥ê¥¢¥Õ¥é¥°
;¡ã ²èÌ̽é´ü²½ ¡ä
screen 0 ,sizex_screen,sizey_screen
title "¥¥ã¥é°ÜÆ°"
#module mod1
;¥Ü¡¼¥ë¤Î¥Ö¥í¥Ã¥¯¤Ø¤Î¿¯Æþ¥Á¥§¥Ã¥¯
;[ ½ñ¼° ]
;
; val = DoesBallInvadeIntoBlocks(x,y)
;
; x,y : ¥Ü¡¼¥ë¤ÎÃæ¿´¤ÎºÂɸ
;Ìá¤êÃÍ : (0,1,2) = (¿¯Æþ¤Ê¤·&ÂÚ¶õ ,¿¯Æþ¤Ê¤·&ÀÜÃÏ ,¿¯Æþ¤¢¤ê)
#define radius_ball radius_ball@ ;¥â¥¸¥å¡¼¥ëÆ⤫¤é¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤ò"»Ø¤µ¤¹"¤Ë¤Ï@ÉÕ¤¤Î¥Õ¥ë¥Í¡¼¥à¤Ç»ØÄꤷ¤Æ¤ä¤ëɬÍפ¬¤¢¤ë¡£
#define pos_ball pos_ball@
#define sizex_block sizex_block@
#define sizey_block sizey_block@
#define posx_StartBlock posx_StartBlock@
#define posy_StartBlock posy_StartBlock@
#define num_block_x num_block_x@
#define num_block_y num_block_y@
#define LandForm_Blocks LandForm_Blocks@
#defcfunc DoesBallInvadeIntoBlocks double x ,double y
RC = 0 ;Ìá¤êÃͽé´ü²½¡£(°ø¤ß¤Ë¡ÖRC¡×¤Ï¡ÖReturnCode¡×¤Îά)
repeat num_block_x
cnt1 = cnt
repeat num_block_y
if LandForm_Blocks(cnt1,cnt) = 1 {
x1 = double(posx_StartBlock + cnt1*sizex_block) : y1 = double(posy_StartBlock + cnt*sizey_block)
if (x1-radius_ball < pos_ball(0))&(pos_ball(0) < x1+sizex_block+radius_ball) { ;xºÂɸ¤¬¤á¤ê¤³¤ß¾ò·ï¤òËþ¤¿¤·¤Æ¤¤¤ë¤Ê¤é¤Ð
if (y1-radius_ball < pos_ball(1))&(pos_ball(1) < y1+sizey_block+radius_ball) { ;yºÂɸ¤¬¤á¤ê¹þ¤ß¾ò·ï¤òËþ¤¿¤·¤Æ¤¤¤ë¤Ê¤é¤Ð
RC = 2 : break ;¤á¤ê¤³¤ß³ÎÄê¡£³ÎÄꤷ¤¿¤«¤é¡¢¤³¤³¤Ç¸¡ººÂǤÁÀڤꡣ
} else { ;yºÂɸ¤¬¤á¤ê¹þ¤ß¾ò·ï¤òËþ¤¿¤µ¤Ê¤¤¤Ê¤é¤Ð
if pos_ball(1) = y1-radius_ball { ;¤¤¤ÞÃåÌܤ·¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¤ËÂФ·¤ÆÀÜÃϤ·¤Æ¤¤¤ë¤Ê¤é¤Ð
RC = 1 ;¾¤Î¥Ö¥í¥Ã¥¯¤ËÂФ·¤Æ¤á¤ê¹þ¤ó¤Ç¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¸¡ºº¤òÂǤÁÀÚ¤é¤Ê¤¤¡£
}
}
}
}
loop
if RC = 2 : break
loop
return RC
#global
#module mod2
;¾ì³°È½Äê
;[ ½ñ¼° ]
;
; val = IsBallOutOfTheField(x,y)
;
; x,y : ¥Ü¡¼¥ë¤ÎÃæ¿´¤ÎºÂɸ
;Ìá¤êÃÍ : (0,1)=(¥»¡¼¥Õ,¥¢¥¦¥È)
#define posx2_screen posx2_screen@
#define posy2_screen posy2_screen@
#define radius_ball radius_ball@
#define pos_ball pos_ball@
#defcfunc IsBallOutOfTheField double x,double y
if (radius_ball < pos_ball(0))&(pos_ball(0) < posx2_screen-radius_ball)&(radius_ball < pos_ball(1))&(pos_ball(1) < posy2_screen-radius_ball) : return 0
return 1
#global
*Main
repeat
;¡ã ·×»» ¡ä
Condition1_ball = DoesBallInvadeIntoBlocks(pos_ball(0),pos_ball(1))
;¡ã ½ÅÎϤˤè¤ë²Ã®ÅÙ ¡ä
if Condition1_ball = 0 { ;ÂÚ¶õ¤·¤Æ¤¤¤ë¤Ê¤é¤Ð
v_ball(1) + ¦Á_G*period_loop/1000
}
;¡ã ¤á¤ê¹þ¤ß¾õÂ֤ؤÎÂбþ ¡ä
;[Êý¿Ë]
; ¤á¤ê¹þ¤ó¤Ç¤¤¤ë¤È¤¤Ï¡¢¤á¤ê¹þ¤ó¤Ç¤¤¤ë¥Ö¥í¥Ã¥¯¤ÎÃ椫¤é1¤Ä¤òŬÅö¤ËÁªÂò(¢¨¥Á¥§¥Ã¥¯¤Î½çÈÖ¤ÎÅÔ¹ç¤ÇºÇ½é¤Ë¸¡½Ð¤µ¤ì¤ë¤â¤Î¤Ç¤è¤¤¤À¤í¤¦)¤·¡¢¥Ü¡¼¥ë¤Î®ÅÙyÀ®Ê¬¤¬0°Ê¾å¤Ê¤é¤½¤Î¥Ö¥í¥Ã¥¯¤Î¾å¤Ë¡¢0°Ê²¼¤Ê¤é¤½¤Î¥Ö¥í¥Ã¥¯¤Î²¼¤Ë¥Ü¡¼¥ë¤ò½Ö´Ö°ÜÆ°¤µ¤»¡¢Â®ÅÙyÀ®Ê¬¤ò0¤Ë¥»¥Ã¥È¤¹¤ë¡£
; ¤½¤ì¤Ç¤â¤á¤ê¹þ¤ó¤Ç¤¤¤ë¾ì¹ç¤Ï¼«Æ°Åª¤Ë¼¡¤Î¥ë¡¼¥×¤Ç¤µ¤é¤ËÊ̤ÎÁ³¤ë¤Ù¤¥Ö¥í¥Ã¥¯¤ÎÁ³¤ë¤Ù¤°ÌÃÖ¤ËÇÛÃÖ¤·Ä¾¤µ¤ì¤ë¡£¤³¤ì¤ò·«¤êÊÖ¤¹¤¦¤Á¤Ë¤ä¤¬¤ÆÍî¤ÁÃ夯¡£
if Condition1_ball = 2 { ;¤á¤ê¹þ¤ó¤Ç¤¤¤ë¤Ê¤é¤Ð
if v_ball(1) >= 0 { ;®ÅÙyÀ®Ê¬¤¬0°Ê¾å¤Ê¤é¤Ð
;ÀÜÃϤµ¤»¤ë
pos_ball(1) = y1@mod1 - radius_ball ;¤á¤ê¹þ¤ó¤Ç¤¤¤ë¥Ö¥í¥Ã¥¯¤Î¾å¤Ë¾è¤»¤ë¡£¢¨¡Öy1@mod1¡×¤Ï¥â¥¸¥å¡¼¥ë¡Ömod1¡×Æâ¤Î¡Öy1¡×¤Î¥Õ¥ë¥Í¡¼¥à¡£¤Ê¤ó¤Ç¤³¤ì¤¬»È¤¨¤ë¤Î¤«¤È¤¤¤¦¤È¡¢Ä¾Á°¤Ç¡ÖDoesBallInvadeIntoBlocks¡×´Ø¿ô¤Î¼Â¹Ô¤Ëȼ¤¤¡¢¡Öy1@mod1¡×¤¬¿·Á¯¤Ê¾õÂÖ¤À¤«¤é¡£
} else { ;®ÅÙyÀ®Ê¬¤¬Éé¤Ê¤é¤Ð
pos_ball(1) = y1@mod1 + sizey_block + radius_ball
}
if absf(v_ball(1)) > 1000.0/period_loop { ;®¤µ¤¬1px/s°Ê¾å¤Ê¤é¤Ð
v_ball(1)*-e_Block¡õBall
} else {
;®¤µ¤¬1px/s̤Ëþ¤Î¤È¤¤ÏÄä»ß¤µ¤»¤Ê¤¤¤È¿¯ÆþȽÄê¤Ç˽¤ì¤ë¡£
v_ball(1) = 0.0
}
}
;¡ã ¥æ¡¼¥¶¡¼¤Ë¤è¤ë¥Ü¡¼¥ë¤Î¥³¥ó¥È¥í¡¼¥ëÍ×µá¤Ø¤ÎÂбþ ¡ä
;¡ã ¿åÊ¿°ÜÆ° ¡ä
;[Êý¿Ë]
; ²¾¤Ë®ÅÙ¤òÊѤ¨¤Æ¤ß¤Æ¡¢¤á¤ê¹þ¤ó¤À¤ê¾ì³°¤Ë¤Ê¤ë¤Ê¤é®ÅÙ¤ò0¤Ë¤·¡¢Âç¾æÉפʤé¼ÂºÝ¤ËÊѤ¨¤ë¡£
stick key,13 ;(=1+4+8)¡£¢¬¥¡¼¤Ï¥È¥ê¥¬¤Ë¤¹¤ë¡£
;(®ÅÙ¤ò²¾ÀßÄê)
u = 0.0
if key&1 : u -= v_h_ball_¢«¢ª
if key&4 : u += v_h_ball_¢«¢ª
a = pos_ball(0) ;xºÂɸ¤ò¥Ð¥Ã¥¯¥¢¥Ã¥×
pos_ball(0) + u*period_loop/1000 ;²¾°ÜÆ°
Condition1_ball_tmp = DoesBallInvadeIntoBlocks(pos_ball(0),pos_ball(1)) ;¿¯Æþ¥Á¥§¥Ã¥¯
if (Condition1_ball_tmp ! 2)&(IsBallOutOfTheField(pos_ball(0),pos_ball(1)) = 0) { ;Âç¾æÉפʤé¤Ð
;¼Â¸ú
v_ball(0) = u
} else {
;¥¥ã¥ó¥»¥ë
v_ball(0) = 0.0
}
pos_ball(0) = a ;ºÂɸ¤ò¸µ¤ËÌᤷ¤Æ¤ª¤¯
;¡ã ±ôľÅꤲ¾å¤² ¡ä
if (key&2) = 2 : v_ball(1) = -v_v_ball_Jump ;ÂǤÁ¾å¤²
;ÀÜÃÏÃæ¤Î¤ß¥¸¥ã¥ó¥×¤·¤¿¤¤¤Ê¤é¢
;if ((key&2) = 2)&(Condition1_ball = 1) : v_ball(1) = -v_v_ball_Jump
;¡ã °ÌÃÖ¹¹¿· ¡ä
pos_ball(0) + v_ball(0)*period_loop/1000
pos_ball(1) + v_ball(1)*period_loop/1000
;¡ã ÉÁ²è ¡ä
redraw 0
gradf 0,0,posx2_screen,posy2_screen,1,0,128 ;ÇØ·Ê
;¡ã ¥Ö¥í¥Ã¥¯ ¡ä
repeat num_block_x
cnt1 = cnt
repeat num_block_y
if LandForm_Blocks(cnt1,cnt) = 1 {
hsvcolor cnt*10,255,255
x1 = posx_StartBlock +cnt1*sizex_block : y1 = posy_StartBlock +cnt*sizey_block
boxf x1+1,y1+1 ,x1+sizex_block-1,y1+sizey_block-1
}
loop
loop
;¡ã ¥Ü¡¼¥ë ¡ä
color 255,255,255
circle pos_ball(0)-radius_ball ,pos_ball(1)-radius_ball ,pos_ball(0)+radius_ball ,pos_ball(1)+radius_ball
redraw 1
await period_loop
loop
*GameOver
objsize 180,32
pos 150,330 : button "½ª¤ï¤ê",*Shutdown
stop
*Shutdown
end
| |
|
2014/2/27(Thu) 07:31:49|NO.60294
Êä¤ǽñ¤¹þ¤Þ¤»¤Æ¤â¤é¤¤¤Þ¤¹¡£
¤Þ¤º¡¢¼Õ¤Ã¤Æ¤ª¤«¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Î¤Ï¡¢Ä󼨤µ¤ì¤¿¥¹¥¯¥ê¥×¥È¤òÍøÍѤ¹¤ë·Á¤Ç¤Î²ò·èºö¤ÎÄó°Æ¤¬
¤Ç¤¤Æ¤¤¤Ê¤«¤Ã¤¿¤³¤È¤Ç¤¹¡£¤´¤á¤ó¤Ê¤µ¤¤¡£
¿¯ÆþȽÄêÅù¤ò¹Ô¤¦¤ËÅö¤¿¤Ã¤ÆƳÆþ¤¹¤Ù¤Éôʬ¤¬Â¿¤«¤Ã¤¿¤¿¤á¡¢¤ä¤à¤òÆÀ¤º»ä¤Î¤ï¤«¤ê¤ä¤¹¤¤·Á¤Ç½ñ¤¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
ËܼÁ¤ÏÁ°¤Î¥¹¥¯¥ê¥×¥È¤ÈÊѤï¤Ã¤Æ¤¤¤Þ¤»¤ó¡£
¤Ù¤ê¡¼¤µ¤ó¤¬HSP¤Ë´Ø¤·¤Æ¤É¤ì¤¯¤é¤¤ÃΤäƤ¤¤ë¤«»ä¤Ë¤Ï¤Þ¤À¤è¤¯¤ï¤«¤é¤Ê¤¤¤Î¤Ç¡¢°ì±þ¡¢½é¿´¼Ô¡ÁÃæµé¼Ô¤È¤¤¤¦ÀßÄê¤Ç
Äó°Æ¤µ¤»¤Æ¤â¤é¤Ã¤Æ¤¤¤Þ¤¹¡£
»ä¤ÎÄó°Æ¤·¤¿¥¹¥¯¥ê¥×¥È¤Ç¤Ï
#define ¤Û¤Ë¤ã¤é¤é ¿ô»ú
#const ¤Û¤Ë¤ã¤é¤é ¿ô¼°
¤È¤¤¤¦Éôʬ¤¬Â¿¤¯¤¢¤ê¤Þ¤¹¡£°ÊÁ°Äó°Æ¤·¤¿¥¹¥¯¥ê¥×¥È¤Ç¤Î½ÅÎϲîÅ٤ΤȤ³¤í¤Ç¤â¤³¤¦¤¤¤¦¤Î¤¬¤¢¤ê¤Þ¤·¤¿¤Î¤Ç¡¢¤Ê¤ó¤È¤Ê¤¯¤ï¤«¤Ã¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£
¾Ü¤·¤¯¤ÏHSPÉÕ°¥Ø¥ë¥×¤ò¸«¤Æ¤¢¤ëÄøÅÙÍý²ò¤·¤Æ¤Û¤·¤¤(¢¨#define¤Î¥Ø¥ë¥×¤Î½ª¤ï¤ê¤ÎÊý¤Ï¤Þ¤Àʬ¤«¤é¤Ê¤¯¤Æ¤â¤¤¤¤¤È»×¤¦)¤Î¤Ç¤¹¡£
²¿¸Î#define ¤ä #const¤ò»È¤¦¤Î¤«¡©ÊÑ¿ô¤ËÃͤòÂåÆþ¤·¤Æ¤ª¤¤¤Æ¡¢»²¾È¤¹¤ë¤È¤¤¤¦ÊýË¡¤Ç¤Ï¤¤¤±¤Ê¤¤¤Î¤«¡©
¤È»×¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£(½é¤á¤Æ¸«¤¿¤é¤¿¤Ö¤ó»×¤¤¤Þ¤¹¡£)
¤¤¤±¤Ê¤¤¤ï¤±¤Ç¤Ï¤Ê¤¤¤ó¤Ç¤¹¡£¤·¤«¤·¡¢»È¤¦¤È¤Á¤ç¤Ã¤È½èÍý¤¬Â®¤¯¤Ê¤ë¤ó¤Ç¤¹¡£¥²¡¼¥à¤Ï¥ë¡¼¥×¤·¤Þ¤¯¤ê¤Ç¡¢²¿¤«¤È·×»»Î̤¬Â¿¤¤¤Ç¤¹¤«¤é¡¢
¿ô¥ß¥êÉäκ¹¤¬ÀѤâ¤êÀѤâ¤Ã¤ÆÂ礤ʺ¹¤Ë¤Ê¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£
¼Â¤Ï¡¢ÊÑ¿ô¤ò»²¾È¤¹¤ë¤è¤ê¤Ï¥×¥í¥°¥é¥à¤ËÁȤ߹þ¤Þ¤ì¤¿Äê¿ô¤ò»²¾È¤¹¤ë¤Û¤¦¤¬¶Ï¤«¤Ë®¤¤¤Î¤Ç¤¹¡£
ÊѤï¤é¤Ê¤¤Ãͤʤ顢¤¤¤Ã¤½Äê¿ô¤È¤·¤ÆÄêµÁ¤·¤Æ¤·¤Þ¤Ã¤¿¤È¤¤¬Â¿¤¤¤Ç¤¹¡£
ºÇ¸å¤Ë¡¢
#module ¡û¡û
#deffunc ¤Û¤Ë¤ã¤é¤é
¡Á¡Á¡Á¡Á¡Á½èÍý¡Á¡Á¡Á¡Á¡Á
return
#global
¤È¤¤¤¦Éôʬ¤¬Â¿¤¯¤¢¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¥µ¥Ö¥ë¡¼¥Á¥ó¤Î¿Ê²½ÈǤߤ¿¤¤¤Êµ¡Ç½¤Ç¡Ö¥â¥¸¥å¡¼¥ë¡×¤È¸Æ¤Ð¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤â¾Ü¤·¤¯¤ÏHSPÉÕ°¥Ø¥ë¥×¤ò¸«¤Æ¤¼¤ÒÍý²ò¤·¤Æ¤Û¤·¤¤¤Ç¤¹¡£
¤³¤ì¤ò»È¤¨¤Ð¼«Ê¬¤ÇÌ¿Îá¤ä´Ø¿ô¤òºî¤ì¤Þ¤¹¡£²¿²ó¤â»È¤¦Ê£»¨(orÌÌÅÝ)¤Ê¼ê³¤(¿¯ÆþȽÄê,¾ì³°È½Äê¤È¤«)¤Ï¥â¥¸¥å¡¼¥ë²½¤·¤Æ¥Ý¥ó¥Ý¥ó¸Æ¤ó¤Ç¤ä¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¡£
| |
|
2014/3/1(Sat) 17:55:50|NO.60362
ÊÖ¿®Ã٤줹¤ß¤Þ¤»¤ó¡¢º¬µÍ¤á¤¹¤®¤ÆÂÎÄ´¤òÊø¤·¤Æ¤·¤Þ¤¤¡¢¿²¹þ¤ó¤Ç¤·¤Þ¤¤¤Þ¤·¤¿¡£¡£¡£
»ä¤Î¥ì¥Ù¥ë¤È¥²¡¼¥àºîÀ®¤ÎÆñ°×ÅÙ¤¬¤¢¤Ã¤Æ¤Ê¤¤¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£¡£¡£
¥â¥¸¥å¡¼¥ë¤Î»È¤¤Êý¤Ï¾¯¤·¤º¤Ä»È¤¨¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤¤Þ¤¹¡£
¤Þ¤¿Ê¬¤«¤é¤Ê¤¤¤³¤È¤¬¤¢¤Ã¤¿¤é¶µ¤¨¤Æ¤¯¤À¤µ¤¤¡£ËÜÅö¤Ë¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
|
|
2014/3/1(Sat) 19:02:25|NO.60365
¤¢¤é¡¢...¤½¤ì¤ÏÂçÊѤǤ·¤¿¤Í¡£¤â¤¦¸µµ¤¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¤¤¤¤¤ó¤Ç¤¹¤¬¡£
>»ä¤Î¥ì¥Ù¥ë¤È¥²¡¼¥àºîÀ®¤ÎÆñ°×ÅÙ¤¬¤¢¤Ã¤Æ¤Ê¤¤¤Î¤«¤â¤·¤ì¤Þ¤»¤ó¡£¡£
Íî¤Á¹þ¤Þ¤Ê¤¤¤³¤È¤Ç¤¹¡£Ã¯¤Ç¤âºÇ½é¤Ï¤½¤¦»×¤¤¤Þ¤¹¡£
»ä¤â¡¢º£¤Ç¤âÂ礷¤¿¤³¤È¤Ï½ÐÍè¤Ê¤¤¼Ô¤Ç¤¹¤¬¡¢Á°¤Ï¤â¤Ã¤È²¿¤â¤Ç¤¤Ê¤¤¾õÂ֤Ǥ·¤¿¡£
¾å㤹¤ë¤³¤È¤ò¿®¤¸¤Æ¤ä¤Ã¤Æ¤¤¤±¤Ð¤½¤ì¤Ç¤¤¤¤¤ó¤Ç¤¹¡£
µÁ̳´¶¤ÏÂçŨ¤Ç¤¹¡£°ìÈÖÂçÀڤʤΤϳڤ·¤à¤³¤È¤À¤È»ä¤Ï»×¤¤¤Þ¤¹¡£
¥â¥¸¥å¡¼¥ë¤Ï¤Á¤ç¤Ã¤È¤¤¤¤Ê¤ê²á¤®¤Þ¤·¤¿¤«¤Í¡©(¤´¤á¤ó¤Ê¤µ¤¤¤Í)
¤³¤ì¤ò»È¤ï¤Ê¤¯¤Æ¤â¡¢¡Ö¥µ¥Ö¥ë¡¼¥Á¥ó¡×¤È¤¤¤¦µ¡Ç½¤Ç²¿¤È¤«¤Ê¤ê¤Þ¤¹¡£
¤Þ¤º¤Ï¡Ö¥µ¥Ö¥ë¡¼¥Á¥ó¡×¤ò³Ø½¬¤·¤Æ¤ß¤Æ¤Ï¤¤¤«¤¬¤Ç¤·¤ç¤¦¤«¡©
¤·¤Ð¤é¤¯(»ä¤Î¾ì¹ç¤Ï¿ôǯ...(¾Ð))¤¹¤ë¤È¤â¤É¤«¤·¤¯´¶¤¸¤Æ¤¤Þ¤¹¡£¤½¤Î»þ¤¬¡Ö¥â¥¸¥å¡¼¥ë¡×¥Ç¥Ó¥å¡¼¤Î¤¤Ã¤«¤±¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£
¤È¤Ë¤«¤¯¡¢¼«Ê¬¤òÄɤ¤¹þ¤ß²á¤®¤Ê¤¤¤è¤¦¤Ëµ¤³Ú¤Ë¤¤¤¤Þ¤·¤ç¤¦!
|
|