HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2008
0716
¥æ¥Ê¥ó¸À¤¤É½¤·¤Ë¤¯¤¤¤Î¤Ç¤¹¤¬¡¢¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤ÎÆɤ߽ñ¤­¤Ë¤Ä¤¤¤Æ3̤²ò·è


¥æ¥Ê¥ó

¥ê¥ó¥¯

2008/7/16(Wed) 20:48:17|NO.17337

HSP3¤ÇºîÀ®¤·¤Æ¤¤¤Þ¤¹
°Ê²¼¤Î¥¹¥¯¥ê¥×¥È¤ò¥³¥Ô¡¼¤·¤Æ»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤

Êݸ¤·¤¿¤¢¤ÈÆɤ߹þ¤ß¤ò¤·¤Æ¤â¤É¤¦¤·¤Æ¤â°ìÉô¤À¤±È¿±Ç¤µ¤ì¤Þ¤»¤ó
¤Á¤Ê¤ß¤Ë¤¢¤ë¼ï¤Î¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤òºî¤í¤¦¤È»×¤Ã¤Æ¤¤¤Þ¤¹

¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£


screen 0,500,800,,0,0
//¥Þ¥Ã¥×¥Á¥Ã¥×¥µ¥¤¥º¤Ê¤É³ÎÊÝ - 24byte
dim HEAD_DATE,6
HEAD_DATE.0=30:HEAD_DATE.1=30
HEAD_DATE.2=16:HEAD_DATE.3=16
HEAD_DATE.4=30:HEAD_DATE.5=16

//¥Þ¥Ã¥×¥á¥¤¥ó¥Ç¡¼¥¿³ÎÊÝ - 30*30*4byte
dim map,HEAD_DATE.0,HEAD_DATE.1

//¥Þ¥Ã¥×¥Á¥Ã¥×¤Î̾Á°³ÎÊÝ - 32byte
sdim imagename,32
dirlist imagename,"chipset10.bmp"

//̾Á°³Îǧ
mes imagename

//Á´¤Æ¤Î¥Ç¡¼¥¿¥µ¥¤¥º
datesize=24+32+(HEAD_DATE.0*HEAD_DATE.1*4)+100

//¥á¥¤¥ó¥Ç¡¼¥¿¤ËŬÅö¤ËÃͤòÂåÆþ
repeat HEAD_DATE.0
j=cnt
repeat HEAD_DATE.1
i=cnt
map.j.i=rnd(460)
loop
loop

//­¡³ÎǧÍÑ
pos 150,0
mes map.0.0
mes map.2.0
mes map.28.0
mes map.29.0
mes map.29.29 //341
mes map.20.1
mes map.29.15
mes map.6.8
mes map.20.20
mes map.20.29
mes map.28.28
mes map.28.29
mes map.29.28


//¥»¡¼¥Ö¡¢¥í¡¼¥É¥Ü¥¿¥óºîÀ®
pos 20,50
button goto"save",*save
button goto"load",*load

stop

*save
//MAP_Date¤Ë¥Ø¥Ã¥À¾ðÊó¤ò¤Þ¤È¤á¤Þ¤¹
sdim MAP_Date,datesize
memcpy MAP_Date,HEAD_DATE,24
memcpy MAP_Date,imagename,32,24
memcpy MAP_Date,map,HEAD_DATE.0*HEAD_DATE.1*4,56
dialog "map",17,"¥Þ¥Ã¥×¥Ç¡¼¥¿"
if(stat==0){stop}
bsave refstr,MAP_Date,datesize
stop

*load
//MAP_Date2¤ËÆɤ߹þ¤ó¤À¥Ç¡¼¥¿¤òÆþ¤ì¤Þ¤¹
sdim MAP_Date2,10000
dialog "map",16,"¥Þ¥Ã¥×¥Ç¡¼¥¿"
if stat=0:stop
exist refstr
if(strsize==-1):end
bload refstr,MAP_Date2,strsize

//¥Þ¥Ã¥×¥Á¥Ã¥×¥µ¥¤¥º¤Ê¤É¤òÆɤ߹þ¤ß
dim HEAD_DATE2,12
i_index=0:j_index=0
repeat 6
k=cnt
temp=wpeek(MAP_Date2,i_index)
wpoke HEAD_DATE2.k,j_index,temp
i_index=i_index+4:j_index=j_index+4
loop

mes HEAD_DATE2.0
mes HEAD_DATE2.1
mes HEAD_DATE2.2
mes HEAD_DATE2.3
mes HEAD_DATE2.4
mes HEAD_DATE2.5
mes HEAD_DATE2.6
mes HEAD_DATE2.7
mes HEAD_DATE2.8
mes HEAD_DATE2.9
mes HEAD_DATE2.10
mes HEAD_DATE2.11

//¥Þ¥Ã¥×¥Á¥Ã¥×¤Î̾Á°Æɤ߹þ¤ß
sdim imagename2,32
n_index=0 //i_index=24 - ¸½ºß¤Î¥ª¥Õ¥»¥Ã¥È
repeat 16
i=cnt
string=wpeek(MAP_DATE2,i_index)
wpoke imagename2,n_index,string
n_index=n_index+2:i_index=i_index+2
loop
mes "imagename:"+imagename2

//¥Þ¥Ã¥×¥á¥¤¥ó¥Ç¡¼¥¿Æɤ߹þ¤ß
dim map2,HEAD_DATE2.0,HEAD_DATE2.2

i_index=56:j_index=0
repeat 440
map_c_d=wpeek(MAP_Date2,i_index)
wpoke map2,j_index,map_c_d
i_index=i_index+8:j_index=j_index+8
yoko++
loop

//¤³¤³¤Î¿ôÃͤȭ¡¤Î¿ôÃͤòƱ¤¸¤Ë¤·¤¿¤¤
pos 200,0
mes map2.0.0
mes map2.2.0
mes map2.28.0
mes map2.29.0
mes map2.29.29
mes map2.20.1
mes map2.29.15
mes map2.6.8
mes map2.20.20
mes map2.20.29
mes map2.28.28
mes map2.28.29
mes map2.29.28
stop



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


SYAM

¥ê¥ó¥¯

2008/7/16(Wed) 22:21:30|NO.17339

¥Þ¥Ã¥×¥á¥¤¥ó¥Ç¡¼¥¿Æɤ߹þ¤ß¡Ä¤Î¤È¤³¤í¤Ç¡¢

¤Ê¤¼8¥Ð¥¤¥È¹ï¤ß¤ËÆɤ߽ñ¤­¤·¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¡©
4¥Ð¥¤¥È¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡©

¤Ê¤¼440²ó¥ë¡¼¥×¤Ê¤ó¤Ç¤·¤ç¤¦¡©
¼ÂºÝ¤Ë¤Ï¡Ê¤³¤Î¾ì¹ç¡Ë¥Ç¡¼¥¿¤Ï30¡ß30 = 900¸Ä¤¢¤ë¤Ï¤º¤Ç¤¹¡£



ANTARES

¥ê¥ó¥¯

2008/7/16(Wed) 23:26:18|NO.17341

¤Ä¡¼¤«¡¢memcpy¤ÎÊý¤¬Á᤯¤Í¡©

memcpy imagename2,MAP_Date2,32,0,24
memcpy map2,MAP_Date2,HEAD_DATE2.0*HEAD_DATE2.2*4,0,56

>repeat 6
>    k=cnt
>    temp=wpeek(MAP_Date2,i_index)
>    wpoke HEAD_DATE2.k,j_index,temp
>    i_index=i_index+4:j_index=j_index+4
>loop

repeat 6
    wpoke HEAD_DATE2,j_index,wpeek(MAP_Date2,i_index)
    i_index+=4
    j_index+=8
loop



¥ì¥Î¥¹

¥ê¥ó¥¯

2008/7/17(Thu) 23:32:47|NO.17358

Êä­¡§¥Ç¡¼¥¿¤Ï data ¤Ç¤¹¡£



ONION software Copyright 1997-2023(c) All rights reserved.