{"id":6202,"date":"2018-05-03T07:13:24","date_gmt":"2018-05-02T22:13:24","guid":{"rendered":"https:\/\/sinsei.space\/blog\/?p=6202"},"modified":"2018-06-26T09:42:14","modified_gmt":"2018-06-26T00:42:14","slug":"%e6%96%b0%e4%bc%81%e7%94%bb%e3%80%80%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e5%8f%82%e5%8a%a0%e5%9e%8b%e3%80%81%e9%80%90%e6%ac%a1%e6%94%b9%e8%89%af%e3%83%9f%e3%83%8b%e3%82%b2%e3%83%bc%e3%83%a0%e3%82%92","status":"publish","type":"post","link":"https:\/\/sinsei.space\/blog\/6202","title":{"rendered":"\u65b0\u4f01\u753b\u3000\u30b3\u30e1\u30f3\u30c8\u53c2\u52a0\u578b\u3001\u9010\u6b21\u6539\u826f\u30df\u30cb\u30b2\u30fc\u30e0\u3092\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u516c\u958b\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p><font size=4><br \/>\n2018\u5e74 5\u67082\u65e5<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u88fd\u4f5c\u304c\u307b\u3068\u3093\u3069\u9032\u3093\u3067\u306a\u304f\u3067\u3001\u30c7\u30fc\u30bf\u306e\u69cb\u9020\u3092 1\u30f6\u6708\u3082\u305a\u3063\u3068\u8003\u3048\u3066\u308b\u3051\u3069\u307e\u3060\u5f62\u306b\u306a\u3063\u3066\u306a\u3044\u3002<\/p>\n<p>\u3000\u3060\u304b\u3089\u5831\u544a\u3059\u308b\u4e8b\u304c\u7121\u3044\u3093\u3060\u3051\u3069\u3001\u6298\u89d2\u306e\u30b4\u30fc\u30eb\u30c7\u30f3\u30a6\u30a3\u30fc\u30af\u3060\u3057\u3001\u3058\u3083\u3042\u5225\u306e\u4f01\u753b\u3092\u3068\u601d\u3063\u3066\u30b3\u30e1\u30f3\u30c8\u53c2\u52a0\u578b\u306e\u7c21\u5358\u30d6\u30e9\u30a6\u30b6\u30b2\u30fc\u30e0\u3092\u4f5c\u3063\u3066\u3044\u3063\u3066\u307f\u308b\u4e8b\u306b\u3057\u305f\u3002<\/p>\n<p>\u3000<a href=\"https:\/\/sinsei.space\/?p=220\" rel=\"noopener\" target=\"_blank\">1\u30de\u30c3\u30d7\u9632\u885b\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u30b3\u30e1\u30f3\u30c8\u3092\u53c2\u8003\u306b\u3057\u306a\u304c\u3089\u4f5c\u3063\u3066\u3044\u304f<\/a><\/p>\n<p><!--more--><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u307b\u3093\u3068\u306f\u4f5c\u308a\u305f\u3044\u30b2\u30fc\u30e0\u30a2\u30a4\u30c7\u30a2\u3060\u3051\u306f\u6ca2\u5c71\u3042\u308b\u3093\u3060\u3051\u3069\u5f62\u306b\u3059\u308b\u306e\u304c\u5927\u5909\u3067\u3001\u4eca\u56de\u3082\u3082\u3046 1\u5e74\u3082\u4f7f\u3063\u3066\u308b\u3057\u3001\u3060\u304b\u3089\u30e1\u30a4\u30f3\u306e\u6642\u9593\u3058\u3083\u7121\u304f\u3066\u5915\u98df\u5f8c\u306e\u7a7a\u3044\u305f\u6642\u9593\u3068\u304b\u306b\u7c21\u5358\u306a\u30df\u30cb\u30b2\u30fc\u30e0\u3092\u6539\u826f\u3057\u306a\u304c\u3089\u516c\u958b\u3059\u308b\u65b9\u5f0f\u3067\u3001\u3061\u307e\u3061\u307e\u3068\u4f5c\u308b\u4e8b\u306b\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u3000\u6539\u826f\u3068\u304b\u5b9f\u88c5\u306b\u306f\u307f\u306a\u3055\u3093\u306e\u30b3\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u8fbc\u307f\u3092\u53c2\u8003\u306b\u3057\u3066\u9010\u6b21\u6539\u826f\u3057\u3066\u3044\u304f\u65b9\u5f0f\u306e\u4e88\u5b9a\u3067\u3001\u30b3\u30e1\u30f3\u30c8\u7121\u3051\u308c\u3070\u81ea\u5206\u3067\u9069\u5f53\u306b\u3044\u3058\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3000\u3053\u3046\u3044\u3046\u8981\u7d20\u3092\u5b9f\u88c5\u3057\u3066\u307f\u3066\u3068\u304b\u3001\u30b0\u30e9\u3068\u304b\u97f3\u3068\u304b\u306e\u8981\u671b\u3068\u304b\u3001\u30b2\u30fc\u30e0\u306e\u65b9\u5411\u6027\u3068\u304b\u8a2d\u5b9a\u3068\u304b\u3001\u306a\u3093\u3067\u3082\u304b\u307e\u3044\u307e\u305b\u3093\u306e\u3067\u66f8\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3000\u3053\u3053\u306b\u3067\u306f\u7121\u304f\u3066\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u30b2\u30fc\u30e0\u8a18\u4e8b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u306b\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>\u3000\u306a\u304a\u3001\u30d2\u30de\u306a\u6642\u9593\u4f59\u88d5\u306e\u3042\u308b\u6642\u9593\u306b\u6c17\u304c\u5411\u3044\u305f\u3089\u3044\u3058\u308b\u4e88\u5b9a\u306a\u306e\u3067\u3001\u5b9f\u88c5\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u308a\u3001\u304d\u3073\u3057\u304f\u306a\u3063\u305f\u3089\u7a81\u7136\u6d88\u3048\u3066\u5931\u8e2a\u3082\u3042\u308a\u3048\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u3042\u3089\u304b\u3058\u3081\u3054\u4e86\u627f\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u3000\u5408\u308f\u305b\u3066\u591a\u5c11\u30d7\u30ed\u30b0\u30e9\u30e0\u8b1b\u5ea7\u3063\u307d\u304f\u3057\u3066\u307f\u308b\u4e88\u5b9a\u3060\u3051\u3069\u3001\u307e\u3042 HSP\u3060\u3057\u81ea\u5206\u306b\u306f\u6559\u3048\u308b\u307b\u3069\u306e\u6280\u8853\u304c\u3042\u308b\u8a33\u3058\u3083\u5168\u304f\u7121\u3044\u306e\u3067\u53c2\u8003\u7a0b\u5ea6\u306e\u5185\u5bb9\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3000\u3042\u3042\u3001\u305d\u308c\u3068\u8cbb\u7528\u5bfe\u52b9\u679c\u306f\u30a2\u30d5\u30a3\u30ea\u30a8\u30a4\u30c8\u3001\u3064\u307e\u308a\u5e83\u544a\u30d0\u30ca\u30fc\u3092\u4e88\u5b9a\u3057\u3066\u307e\u3059\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u4f01\u753b\u7b2c\u4e00\u5f3e\u306e\u30b2\u30fc\u30e0\u306f\u30b3\u30c1\u30e9<\/p>\n<p><a href=\"https:\/\/sinsei.space\/?p=220\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2018\/05\/img01908a.jpg\" alt=\"\" width=\"573\" height=\"518\" class=\"alignnone size-full wp-image-6206\" srcset=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2018\/05\/img01908a.jpg 573w, https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2018\/05\/img01908a-300x271.jpg 300w\" sizes=\"auto, (max-width: 573px) 85vw, 573px\" \/><\/a><\/p>\n<p>\u3000\u3068\u8a00\u3046\u4e8b\u3067\u300c1\u30de\u30c3\u30d7\u9632\u885b\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u300d\u3068\u3044\u3046\u6975\u3081\u3066\u521d\u6b69\u7684\u3067\u4f5c\u308b\u306e\u304c\u7c21\u5358\u306a\u30b2\u30fc\u30e0\u3067\u3059\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n ver.0.001\u306e\u30bd\u30fc\u30b9\u306f\u30b3\u30ec<\/p>\n<pre class=\"lang:hsp decode:true \" >; \u4f01\u753b\u7b2c\u4e00\u5f3e : 1\u753b\u9762\u9632\u885b\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u4f5c\u308d\u3046\r\n; var.0.001\r\n\r\n#include \"hsp3dish.as\" ; HSPdish\u306e\u5ba3\u8a00\r\n\r\n\r\n\trandomize\t; \u4e71\u6570\u306e\u521d\u671f\u5316\r\n\r\n\twx=640\t; \u753b\u9762\u306e\u5927\u304d\u3055x\r\n\twy=360\t; \u753b\u9762\u306e\u5927\u304d\u3055y\r\n\r\n\tox=20\t; \u30ad\u30e3\u30e9\u5927\u304d\u3055x\r\n\toy=20\t; \u30ad\u30e3\u30e9\u5927\u304d\u3055y\r\n\r\n\tfont \"\",ox\t; \u30ad\u30e3\u30e9\u306e\u5927\u304d\u3055\u8a2d\u5b9a\r\n\r\n\tpx=wx\/2-ox\/2\t; \u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u5ea7\u6a19x\r\n\tpy=wy\/2-oy\/2\t; \u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u5ea7\u6a19y\r\n\r\n\tsf=0\t\t; \u30b7\u30e7\u30c3\u30c8\u767a\u5c04\u30d5\u30e9\u30b0\r\n\tsx=0.0\t\t; \u30b7\u30e7\u30c3\u30c8\u5ea7\u6a19x\r\n\tsy=0.0\t\t; \u30b7\u30e7\u30c3\u30c8\u5ea7\u6a19y\r\n\tssp=7.0\t\t; \u30b9\u30d4\u30fc\u30c9\r\n\r\n\teb=20\t\t; \u6575\u6700\u5927\u6570\r\n\t dim ef,eb\t; \u51fa\u73fe\u30d5\u30e9\u30b0\r\n\t ddim ex,eb\t; \u6575\u5ea7\u6a19x\r\n\t ddim ey,eb\t; \u6575\u5ea7\u6a19y\r\n\t ddim edx,eb; \u6575\u79fb\u52d5\u91cfx\r\n\t ddim edy,eb; \u6575\u79fb\u52d5\u91cfy\r\n\r\n\tesp=1.0\t\t; \u6575\u30b9\u30d4\u30fc\u30c9\r\n\r\n\tec=0\t\t; \u51fa\u73fe\u30ab\u30a6\u30f3\u30c8\r\n\tecb=10\t\t; \u51fa\u73fe\u9593\u9694(\u30d5\u30ec\u30fc\u30e0)\r\n\r\n\tscr=0\t\t; \u30b9\u30b3\u30a2\r\n\thiscr=0\t\t; \u30cf\u30a4\u30b9\u30b3\u30a2\r\n\r\n\r\n*main\r\n\r\n\tmainf=0 ; \u30b2\u30fc\u30e0\u30d5\u30e9\u30b0\r\n\r\n\trepeat ; \u30e1\u30a4\u30f3\u30eb\u30fc\u30d7 ----------------------------------\r\n\r\n\t x=mousex : y=mousey\t; \u30de\u30a6\u30b9\u306e\u5ea7\u6a19\r\n\r\n\r\n; SHOT ----------\r\n\r\n\t if sf=0 { ; \u5f3e\u304c\u767a\u5c04\u3055\u308c\u3066\u7121\u3044\r\n\t\tsx=double(px) : sy=double(py)\t; \u521d\u671f\u5ea7\u6a19\r\n\r\n\t\txn=double(x-px)\t; \u81ea\u6a5f\u3068\u30de\u30a6\u30b9\u306e\u8ddd\u96e2x\r\n\t\tyn=double(y-py)\t; \u81ea\u6a5f\u3068\u30de\u30a6\u30b9\u306e\u8ddd\u96e2y\r\n\r\n\t\trad=atan(xn,yn) ; \u8ddd\u96e2xy\u304b\u3089\u89d2\u5ea6\u3092\u6c42\u3081\u308b\r\n\r\n\t \tsdx=sin(rad)*ssp\t; \u89d2\u5ea6\u3068\u30b9\u30d4\u30fc\u30c9\u304b\u3089\u79fb\u52d5\u91cfx\u3092\u6c42\u3081\u308b\r\n\t \tsdy=cos(rad)*ssp\t; \u89d2\u5ea6\u3068\u30b9\u30d4\u30fc\u30c9\u304b\u3089\u79fb\u52d5\u91cfy\u3092\u6c42\u3081\u308b\r\n\r\n\t\tsf=1\t; \u767a\u5c04\u30d5\u30e9\u30b0 on\r\n\t }\r\n\r\n\t if sf=1 { ; \u5f3e\u304c\u767a\u5c04\u3055\u308c\u3066\u3044\u308b\r\n\r\n\t\tsx+=sdx ; x\u306e\u79fb\u52d5\r\n\t\tsy+=sdy\t; y\u306e\u79fb\u52d5\r\n\r\n\t\trepeat eb ; \u6575\u3068\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\t\t if ef(cnt)=0 : continue\r\n\r\n\t\t if sx&lt;ex(cnt)+ox and ex(cnt)&lt;sx+ox and sy&lt;ey(cnt)+oy and ey(cnt)&lt;sy+oy {\r\n\t\t\tef(cnt)=0 : sf=0 ; \u5f53\u305f\u3063\u305f\u6575\u3068\u30b7\u30e7\u30c3\u30c8\u3092\u6d88\u3059\r\n\t\t\tscr+ ; \u30b9\u30b3\u30a2\r\n\t\t\tif hiscr&lt;scr : hiscr=scr ; \u30cf\u30a4\u30b9\u30b3\u30a2\u306e\u66f4\u65b0\r\n\t\t\tbreak\r\n\t\t }\r\n\t\tloop\r\n\r\n\t\tif sf=1 : if sx&lt;0-ox or wx&lt;sx or sy&lt;0-oy or wy&lt;sy : sf=0 ; \u67a0\u5916\u3067\u30d5\u30e9\u30b0 off\r\n\t }\r\n\r\n\r\n; ENEMY ----------\r\n\r\n\t repeat 1 ; \u6575\u51fa\u73fe\r\n\t  if ec&gt;0 : ec- : break ; \u30a6\u30a8\u30a4\u30c8\u4e2d\r\n\r\n\t  repeat eb ; \u30d5\u30e9\u30b0\u78ba\u8a8d\r\n\t   if ef(cnt)&gt;0 : continue ; \u4f7f\u7528\u4e2d\r\n\t   ef(cnt)=1 ; \u4f7f\u7528\u30d5\u30e9\u30b0on\r\n\r\n\t   r=rnd(4) ; \u51fa\u73fe\u65b9\u5411\r\n\t    if r=0 : exs=rnd(wx) : eys=-oy\t; \u4e0a\r\n\t    if r=1 : exs=rnd(wx) : eys=wy\t; \u4e0b\r\n\t    if r=2 : exs=-ox : eys=rnd(wy)\t; \u5de6\r\n\t    if r=3 : exs=wx  : eys=rnd(wy)\t; \u53f3\r\n\r\n\t\tex(cnt)=double(exs)\t; \u521d\u671f\u4f4d\u7f6ex\r\n\t\tey(cnt)=double(eys)\t; \u521d\u671f\u4f4d\u7f6ey\r\n\r\n\t\txn=double(px-exs)\t; \u6575\u3068\u81ea\u6a5f\u306e\u8ddd\u96e2x\r\n\t\tyn=double(py-eys)\t; \u6575\u3068\u81ea\u6a5f\u306e\u8ddd\u96e2y\r\n\r\n\t\trad=atan(xn,yn) \t; \u8ddd\u96e2xy\u304b\u3089\u89d2\u5ea6\u3092\u6c42\u3081\u308b\r\n\r\n\t \tedx(cnt)=sin(rad)*esp\t; \u89d2\u5ea6\u3068\u30b9\u30d4\u30fc\u30c9\u304b\u3089\u79fb\u52d5\u91cfx\u3092\u6c42\u3081\u308b\r\n\t \tedy(cnt)=cos(rad)*esp\t; \u89d2\u5ea6\u3068\u30b9\u30d4\u30fc\u30c9\u304b\u3089\u79fb\u52d5\u91cfy\u3092\u6c42\u3081\u308b\r\n\r\n\t\tec=ecb ; \u51fa\u73fe\u30a6\u30a8\u30a4\u30c8\r\n\r\n\t   break ; \u767b\u9332\u7d42\u308f\u308a\r\n\t  loop\r\n\t loop\r\n\r\n\t repeat eb\r\n\t  if ef(cnt)=0 : continue ; \u7121\u3057\r\n\r\n\t  ex(cnt)+=edx(cnt) : ey(cnt)+=edy(cnt) ; \u79fb\u52d5\r\n\r\n\t  if px&lt;ex(cnt)+ox and ex(cnt)&lt;px+ox and py&lt;ey(cnt)+oy and ey(cnt)&lt;py+oy {\r\n\t\tmainf=1 : break ; \u81ea\u6a5f\u3068\u5f53\u305f\u308a\u3067 GAME OVER\r\n\t  }\r\n\r\n\t  if ex(cnt)&lt;0-ox or wx&lt;ex(cnt) or ey(cnt)&lt;0-oy or wy&lt;ey(cnt) : ef(cnt)=0 ; \u67a0\u5916\u3067\u30d5\u30e9\u30b0 off\r\n\t loop\r\n\r\n\t redraw 0 ; \u8868\u793a\r\n\t  color 1,1,1 : boxf\t; \u9ed2\u5857\u308a\r\n\t  color 255,255,255\r\n\t   pos px,py : mes \"\u25cf\" ; \u81ea\u6a5f\r\n\t   pos sx,sy : mes \"\u30fb\" ; \u30b7\u30e7\u30c3\u30c8\r\n\r\n\t   repeat eb\r\n\t    if ef(cnt)=0 : continue ; \u7121\u3044\r\n\t    pos ex(cnt),ey(cnt) : mes \"\u6575\" ; \u6575\r\n\t   loop\r\n\r\n\t   pos wx-300,5 : mes \"SCORE \"+scr\r\n\t   pos wx-150,5 : mes \"HI SCORE \"+hiscr\r\n\r\n\t   if mainf=1 : pos wx\/2-43,wy\/2+50 : mes \"GAME OVER\"\r\n\t redraw 1\r\n\r\n\t await 1000\/15\t; \u30a6\u30a8\u30a4\u30c8\u3001FPS 15\r\n\r\n\r\n\t repeat ; GAME OVER \u8868\u793a\u5f85\u6a5f -----------\r\n\t  if mainf=0 : break\r\n\r\n\t  await 1000\/15\r\n\t  stick k : if k=0 : continue ; \u30dc\u30bf\u30f3\u3067\u30b2\u30fc\u30e0\u518d\u958b\r\n\r\n\t\u3000repeat eb\r\n\t   ef(cnt)=0 ; \u6575\u30ea\u30bb\u30c3\u30c8\r\n\t  loop\r\n\r\n\t  sf=0 ; \u30b7\u30e7\u30c3\u30c8\u30ea\u30bb\u30c3\u30c8\r\n\r\n\t  scr=0 ; \u30b9\u30b3\u30a2\u30ea\u30bb\u30c3\u30c8\r\n\r\n\t  mainf=0 ; \u30b2\u30fc\u30e0\u518d\u958b\r\n\r\n\t  break\r\n\t loop ; ----------\r\n\r\n\tloop ; --------------------------------------------------\r\n\r\nend ; \u7d42\u308f\u308a<\/pre>\n<p>\u3000\u3068\u308a\u3042\u3048\u305a\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7 1\u53f7\u306f\u3053\u308c\u3060\u3051\u3067\u52d5\u304d\u307e\u3059\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<font size=5><br \/>\n<b><span style=\"color: #0000f0;\">\u30d7\u30ed\u30b0\u30e9\u30e0\u8b1b\u5ea7\u3068\u3044\u3046\u304b\u8aac\u660e<\/span><\/b><br \/>\n<font size=4><\/p>\n<p>\u3000\u3053\u308c\u306f\u69cb\u9020\u306f\u521d\u671f\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089 1\u3064\u3060\u3051\u306e <span style=\"color: #0000f0;\">repeat\uff5eloop<\/span>\u3067\u7e70\u308a\u8fd4\u3057\u3066\u3044\u3066\u3001<span style=\"color: #0000f0;\">await 1000\/15<\/span>\u3067 15FPS\uff08 1\u79d2\u9593\u306b 15\u56de\u8868\u793a\uff09\u8868\u793a\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u30001\u30eb\u30fc\u30d7\u3060\u3051\u306e\u305f\u3081\u3001gameover\u753b\u9762\u306f\u3061\u3087\u3063\u3068\u5f37\u5f15\u306b\u4ed8\u3051\u8db3\u3057\u3066\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000<span style=\"color: #0000f0;\">repeat<\/span>\u306f HSP\u7279\u6709\u306e\uff08\u3068\u601d\u308f\u308c\u308b\uff09\u4fbf\u5229\u306a\u300c\u7e70\u308a\u8fd4\u3057\u300d\u306e\u547d\u4ee4\u3067\u3001\u4ed6\u306e\u8a00\u8a9e\u3060\u3068<span style=\"color: #0000f0;\"> while<\/span>\u6587\u3068\u304b<span style=\"color: #0000f0;\"> for~next<\/span>\u6587\u306b\u306a\u308b\u3068\u601d\u3046\u3002<\/p>\n<p>\u3000\u3053\u308c\u306e\u4fbf\u5229\u306a\u306e\u306f<span style=\"color: #0000f0;\"> if<\/span>\u6587\u3068 <span style=\"color: #0000f0;\">break<\/span>\uff08\u30eb\u30fc\u30d7\u7d42\u308f\u308a\uff09\u3068\u304b <span style=\"color: #0000f0;\">continue<\/span>\uff08\u3053\u3053\u3067\u7e70\u308a\u8fd4\u3057\uff09\u3092\u4f7f\u3046\u4e8b\u3067\u3001\u6761\u4ef6\u5206\u5c90\u306b\u4f7f\u3048\u308b\u4e8b\u3002<\/p>\n<p>\u3000\u4f55\u304c\u826f\u3044\u306e\u304b\u3063\u3066 <span style=\"color: #0000f0;\">if<\/span>\u6587\u306e\uff5b \uff5d\u3088\u308a\u30b9\u30c3\u30ad\u30ea\u3057\u3066\u898b\u6613\u3044\u3068\u304b\u305d\u3093\u306a\u6240\uff08\u7b11\uff09<\/p>\n<p>\u3000\u4f8b\u3048\u3070\u30bd\u30fc\u30b9\u306e\u30b7\u30e7\u30c3\u30c8\u306f if\u5206\u3060\u304c\u3001\u6575\u306e\u51e6\u7406\u306f repeat\u306b\u306a\u3063\u3066\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000<span style=\"color: #0000f0;\">await<\/span>\u306f\u305d\u306e\u6642\u9593\u5206\u3060\u3051\u5f85\u3064\u547d\u4ee4\u3002<\/p>\n<p>\u3000\u30eb\u30fc\u30d7\u30eb\u30fc\u30c1\u30f3\u3060\u3068\u6700\u4f4e\u3067\u3082 await 0\u3092\u5165\u308c\u306a\u3044\u3068\u64cd\u4f5c\u3067\u304d\u306a\u304f\u306a\u308b\u3002<\/p>\n<p>\u30001\u79d2=1000\u306a\u306e\u3067\u30011000\/15\u3067 15\u5206\u306e 1\u79d2\u5f85\u3063\u3066\u304f\u308c\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000<span style=\"color: #0000f0;\">randomize<\/span>\u306f\u4e71\u6570\u306e\u521d\u671f\u5316\u304b\u306a\uff1f<br \/>\n\u3000\u305f\u3076\u3093\u901a\u5e38\u306f\u4e71\u6570\u30c6\u30fc\u30d6\u30eb\u3092\u53c2\u7167\u3057\u3066\u4e71\u6570\u3092\u51fa\u3059\u305f\u3081\u3001\u3044\u3064\u3082\u4e71\u6570\u304c\u540c\u3058\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u304c\u3001randomize\u3092\u5b9f\u884c\u3059\u308b\u3068\u305f\u3057\u304b\u6642\u9593\u3092\u5143\u306b\u4e71\u6570\u3092\u51fa\u3059\u3093\u3060\u304b\u3067\u4e71\u6570\u304c\u30d0\u30e9\u30d0\u30e9\u306b\u51fa\u3055\u308c\u308b\u3001\u3060\u3044\u305f\u3044\u5fc5\u9808\u304b\u306a\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000sf\u3068\u304b ef\u306e f\u306f\u81ea\u5206\u306f\u30d5\u30e9\u30b0\u3068\u3044\u3046\u610f\u5473\u3067\u4f7f\u3063\u3066\u3044\u3066\u3001f=0\u306a\u3089\u5b58\u5728\u3057\u306a\u3044\u3001f=1\u306a\u3089\u5b58\u5728\u3057\u3066\u308b\u3002<br \/>\n\u3000\u3060\u304b\u3089\u5f3e\u306b\u3042\u305f\u3063\u305f\u308a\u3001\u753b\u9762\u5916\u306b\u51fa\u305f\u3089 f=0\u306b\u3059\u308b\u4e8b\u3067\u6d88\u3059\u3002<br \/>\n\u3000\u51fa\u73fe\u306e\u5834\u5408\u306f\u30d5\u30e9\u30b0 f=1\u306b\u3059\u308b\u3002<\/p>\n<p>\u3000x\u306f x\u5ea7\u6a19\u3067\u6a2a\u306e\u5ea7\u6a19\u3001y\u306f y\u5ea7\u6a19\u3067\u7e26\u306e\u5ea7\u6a19\u3060\u306d\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u4eca\u56de\u4e00\u756a\u96e3\u3057\u304f\u3066\u3001\u304b\u3064\u4e00\u756a\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7684\u306b\u57fa\u672c\u7684\u306a\u306e\u304c\u4e09\u89d2\u95a2\u6570\u306b\u3088\u308b\u5ea7\u6a19\u306e\u79fb\u52d5\u8a08\u7b97\u3060\u3002<\/p>\n<p>\u3000\u5b9f\u306f\u81ea\u5206\u306f\u30ed\u30af\u306b\u52c9\u5f37\u3057\u306a\u304b\u3063\u305f\u306e\u3067\u4e09\u89d2\u95a2\u6570\u304c\u306a\u3093\u3067\u3042\u308b\u304b\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n<p>\u3000\u3057\u304b\u3057\u307e\u3042\u4f7f\u3044\u65b9\u3060\u3051\u5206\u304b\u3063\u3066\u3044\u3066\u30bd\u30fc\u30b9\u306b\u5b9f\u88c5\u3057\u3066\u3057\u307e\u3048\u3070\u3001\u3068\u308a\u3042\u3048\u305a\u306f\u56f0\u3089\u306a\u3044\u3002<\/p>\n<p>\u3000\u3068\u8a00\u3046\u8a33\u3067\u3001\u57fa\u672c\u7684\u306a\u52c9\u5f37\u306f\u4ed6\u306e\u4eba\u306e\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n\u3000<a href=\"http:\/\/wiki.hsp.moe\/DevMagazin%EF%BC%8F%E4%B8%89%E8%A7%92%E9%96%A2%E6%95%B0.html\" rel=\"noopener\" target=\"_blank\">HSP\u958b\u767a wiki\u3055\u3093\u306e\u4e09\u89d2\u95a2\u6570\u8a18\u4e8b<\/a><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u307e\u3042\u30b6\u30c3\u30af\u30ea\u8a00\u3063\u3066\u300c\u89d2\u5ea6\u304c\u5206\u304b\u308c\u3070 x\uff08\u6a2a\uff09\u3068 y\uff08\u7e26\uff09\u306e\u79fb\u52d5\u91cf\u304c\u5206\u304b\u308b\u300d\u3068\u3044\u3046\u4e8b\u306a\u3093\u3060\u308d\u3046\u3002<\/p>\n<p>1\u3001\u307e\u305a\u89d2\u5ea6\u3092\u6c42\u3081\u308b\u3002<\/p>\n<p>\u3000\u3000\u6c42\u3081\u65b9\u306f A\u5730\u70b9\u304b\u3089 B\u5730\u70b9\u306e\u5ea7\u6a19\u3092\u5f15\u3044\u305f\u3082\u306e\u3092 atan\uff08\u30a2\u30fc\u30af\u30bf\u30f3\u30b8\u30a7\u30f3\u30c8\uff09\u306b\u653e\u308a\u8fbc\u3080\u3002<\/p>\n<p>\u3000\u3000<span style=\"color: #00b000;\">\u89d2\u5ea6r=atan(Ax-Bx,Ay-By)<\/span><\/p>\n<p>\u3000\u3000\u3053\u306e atan\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u547d\u4ee4\u6587\u3060\u304b\u3089\u3001\u6570\u5b66\u7684\u306b\u3069\u3046\u3044\u3046\u51e6\u7406\u3092\u3057\u3066\u3044\u308b\u304b\u306f\u77e5\u3089\u306a\u3044\u3002<br \/>\n\u3000\u3000\u3068\u306b\u304b\u304f\u3053\u308c\u3067 A\u5730\u70b9\u3068 B\u5730\u70b9\u306e\u89d2\u5ea6\u304c\u5206\u304b\u308b\u3002<\/p>\n<p>2\u3001\u6c42\u3081\u305f\u89d2\u5ea6\u3092\u5143\u306b x\u3068 y\u306e\u79fb\u52d5\u91cf\u3092\u51fa\u3059\u3002<\/p>\n<p>\u3000\u3000<span style=\"color: #00b000;\">x= sin(\u89d2\u5ea6r) \u00d7 \u30b9\u30d4\u30fc\u30c9\u3067<\/span><br \/>\n\u3000\u3000<span style=\"color: #00b000;\">y= cos(\u89d2\u5ea6r) \u00d7 \u30b9\u30d4\u30fc\u30c9\u3067<\/span><\/p>\n<p>\u3000\u3000\u51fa\u3055\u308c\u308b\u304c\u3001\u3053\u308c\u307e\u305f\u3053\u3053\u3067\u306e sin\uff08\u30b5\u30a4\u30f3\uff09\u3001cos\uff08\u30b3\u30b5\u30a4\u30f3\uff09\u306f\u547d\u4ee4\u6587\u306a\u306e\u3067\u3001\u6570\u5b66\u7684\u306a\u4e8b\u306f\u3042\u3048\u3066\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n<p>\u3000\u3068\u306b\u304b\u304f\u3082\u89d2\u5ea6\u304c\u5206\u304b\u308c\u3070\u3001\u3042\u3068\u306f\u30b9\u30d4\u30fc\u30c9\u3092\u639b\u3051\u3066\u3084\u308c\u3070 x\u3068 y\u306e\u79fb\u52d5\u91cf\u304c\u51fa\u3055\u308c\u308b\u306e\u3067\u3001\u73fe\u5728\u306e\u30ad\u30e3\u30e9\u306e\u5ea7\u6a19\u306b\u8db3\u3057\u3066\u3084\u308c\u3070\u826f\u3044\u3002<\/p>\n<p>\u3000\u306a\u304a\u3001\u81ea\u5206\u306f\u3069\u3046\u3057\u3066\u3082\u53cd\u5bfe\u65b9\u5411\u306b\u98db\u3093\u3067\u884c\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u305d\u3046\u3044\u3046\u5834\u5408\u306b\u306f Ax-Bx\u3092 Bx-Ax\u306e\u3088\u3046\u306b\u53cd\u5bfe\u306b\u3057\u3066\u3084\u308b\u3068\u826f\u3044\u3002<\/p>\n<p>\u3000\u91cd\u8981\u306a\u306e\u306f\u3001\u3069\u3046\u3057\u3066\u3082\u6574\u6570\u3067\u306f\u7121\u304f\u5c0f\u6570\u70b9\u3092\u4f7f\u3063\u305f\u5b9f\u6570\u3067\u306a\u3044\u3068\u79fb\u52d5\u306e\u89d2\u5ea6\u304c\u30ab\u30af\u30ab\u30af\u3068\u9650\u5b9a\u3055\u308c\u305f\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3000\u305d\u306e\u305f\u3081\u30b7\u30e7\u30c3\u30c8\u3001\u6575\u3001\u5171\u306b\u5b9f\u6570\u306e\u5c0f\u6570\u70b9\u306e\u5909\u6570\u3092\u4f7f\u3063\u3066\u308b\u3002<\/p>\n<p>\u3000<span style=\"color: #0000f0;\">double<\/span>\u306f\u5b9f\u6570\u306e\u5909\u6570\u5b9a\u7fa9\u3060\u3057\u3001<span style=\"color: #0000f0;\">ddim<\/span>\u3082\u5b9f\u6570\u306e\u914d\u5217\u5909\u6570\u5b9a\u7fa9\u3068\u306a\u3063\u3066\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u5f8c\u306f\u5f53\u305f\u308a\u5224\u5b9a\u3060\u3051\u3069\u3001A\u306e\u5de6\u304c B\u306e\u53f3\u3088\u308a\u5de6\u3067\u3001A\u306e\u53f3\u304c B\u306e\u5de6\u3088\u308a\u53f3\u3067\u3001\u3068\u3044\u3046\u611f\u3058\u3067\u5ea7\u6a19\u304c\u91cd\u306a\u3063\u3066\u308b\u304b\u8abf\u3079\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2018\/05\/img0010.jpg\" alt=\"\" width=\"573\" height=\"518\" class=\"alignnone size-full wp-image-6246\" srcset=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2018\/05\/img0010.jpg 573w, https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2018\/05\/img0010-300x271.jpg 300w\" sizes=\"auto, (max-width: 573px) 85vw, 573px\" \/><\/p>\n<p>\u3000\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u304c\u521d\u6b69\u3067\u30b7\u30f3\u30d7\u30eb\u306a\u5f53\u305f\u308a\u5224\u5b9a\u306e\u65b9\u6cd5\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000<span style=\"color: #0000f0;\">redraw 0<\/span> \u306f\u63cf\u753b\u958b\u59cb<br \/>\n\u3000<span style=\"color: #0000f0;\">redraw 1<\/span> \u306f\u63cf\u753b\u7d42\u4e86<\/p>\n<p>\u3000\u306a\u306e\u3067\u3001\u305d\u306e\u9593\u306b\u63cf\u753b\u51e6\u7406\u3092\u3059\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u3068\u307e\u3042\u305d\u3093\u306a\u611f\u3058\u306a\u3093\u3060\u3051\u3069\u3001\u307e\u3042\u3084\u3063\u3071\u308a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8b1b\u5ea7\u306f\u305d\u308c\u5c02\u7528\u306b\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u306a\u3044\u3068\u96e3\u3057\u3044\u307f\u305f\u3044\u3060\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2018\u5e74 5\u67082\u65e5 \u3000 \u3000 \u3000\u88fd\u4f5c\u304c\u307b\u3068\u3093\u3069\u9032\u3093\u3067\u306a\u304f\u3067\u3001\u30c7\u30fc\u30bf\u306e\u69cb\u9020\u3092 1\u30f6\u6708\u3082\u305a\u3063\u3068\u8003\u3048\u3066\u308b\u3051\u3069\u307e\u3060\u5f62\u306b\u306a\u3063\u3066\u306a\u3044\u3002 \u3000\u3060\u304b\u3089\u5831\u544a\u3059\u308b\u4e8b\u304c\u7121\u3044\u3093\u3060\u3051\u3069\u3001\u6298\u89d2\u306e\u30b4\u30fc\u30eb\u30c7\u30f3\u30a6\u30a3\u30fc\u30af\u3060\u3057\u3001\u3058\u3083\u3042\u5225\u306e\u4f01\u753b\u3092\u3068\u601d\u3063\u3066\u30b3\u30e1\u30f3\u30c8 &hellip; <a href=\"https:\/\/sinsei.space\/blog\/6202\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u65b0\u4f01\u753b\u3000\u30b3\u30e1\u30f3\u30c8\u53c2\u52a0\u578b\u3001\u9010\u6b21\u6539\u826f\u30df\u30cb\u30b2\u30fc\u30e0\u3092\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u516c\u958b\u3057\u3066\u307f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,6,13],"tags":[],"class_list":["post-6202","post","type-post","status-publish","format-standard","hentry","category-1map-stg","category-webgl","category-13"],"_links":{"self":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/6202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/comments?post=6202"}],"version-history":[{"count":65,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/6202\/revisions"}],"predecessor-version":[{"id":6269,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/6202\/revisions\/6269"}],"wp:attachment":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/media?parent=6202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/categories?post=6202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/tags?post=6202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}