{"id":3832,"date":"2011-12-08T03:31:00","date_gmt":"2011-12-07T18:31:00","guid":{"rendered":"http:\/\/mimumimu.net\/blog\/2011\/12\/05\/esolang-advent-calendar-2011-%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82\/"},"modified":"2012-04-21T18:22:47","modified_gmt":"2012-04-21T09:22:47","slug":"esolang-advent-calendar-2011-%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2011\/12\/08\/esolang-advent-calendar-2011-%e3%82%84%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82\/","title":{"rendered":"Esolang Advent Calendar 2011 \u3084\u3063\u3066\u307f\u308b\u3002"},"content":{"rendered":"<p>\u307f\u3080\u3089\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/atnd.org\/events\/22463\">Esolang Advent Calendar 2011<\/a> ( <a title=\"http:\/\/atnd.org\/events\/22463\" href=\"http:\/\/atnd.org\/events\/22463\">http:\/\/atnd.org\/events\/22463<\/a> )<\/p>\n<p>\u3053\u308c\u306e\u9023\u643a\u4f01\u753b\u3002<\/p>\n<p>&#160;<\/p>\n<p>Esoteric Language : \u96e3\u89e3\u8a00\u8a9e \u3063\u3066\u3053\u3068\u306a\u306e\u3067\u3001\u7279\u306b\u96e3\u89e3\u306a\u7269\u3082\u6709\u3057\u3066\u3044\u306a\u3044\u79c1\u306a\u306e\u3067\u3001   <br \/>\u9069\u5f53\u306b HSP \u3067\u3082\u3084\u3063\u3066\u307f\u307e\u3059\u306d\u3002<\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:f32c3428-b7e9-4f15-a8ea-c502c7ff2e88:444c72eb-3142-4a9b-8116-d382aaff427e\" class=\"wlWriterEditableSmartContent\">\n<pre class=\"brush: text;\">#define RADIUS 10\n#define NUM 64\n\n#module \n\t#include \"hspmath.as\"\n\tc = 0\n\t#defcfunc Collision int x1,int y1,int x2,int y2\n\treturn abs(sqrt(pow(x1-x2,2)+pow(y1-y2,2))) &lt;= RADIUS@\n#global\n\n\tdim p,NUM,4\n\tdim clr,NUM,3\n\trepeat NUM\n\t\tp.cnt.0 = rnd(640)\n\t\tp.cnt.1 = rnd(480)\n\t\tp.cnt.2 = 1 + (rnd(2) * -2)\n\t\tp.cnt.3 = 1 + (rnd(2) * -2)\n\t\n\t\tclr.cnt.0 = rnd(255)\n\t\tclr.cnt.1 = rnd(255)\n\t\tclr.cnt.2 = rnd(255)\n\tloop\n\t\n\trepeat\n\t\tredraw 0\n\t\tcolor 0,0,0\n\t\tboxf\n\n\t\trepeat NUM\n\t\t\tcolor clr.cnt.0,clr.cnt.1,clr.cnt.2\n\t\t\n\t\t\tcircle p.cnt.0-RADIUS\/2,p.cnt.1-RADIUS\/2,p.cnt.0+RADIUS\/2,p.cnt.1+RADIUS\/2,1\n\t\n\t\t\tif p.cnt.0 &gt;= 640 : p.cnt.2 = -1 : p.cnt.0 = 640\n\t\t\tif p.cnt.0 &lt;= 0   : p.cnt.2 = 1  : p.cnt.0 = 0\n\t\t\tif p.cnt.1 &gt;= 480 : p.cnt.3 = -1 : p.cnt.1 = 480\n\t\t\tif p.cnt.1 &lt;= 0   : p.cnt.3 = 1  : p.cnt.1 = 0\n\t\n\t\t\tc = cnt\n\t\n\t\t\trepeat NUM\n\t\t\t\tif cnt = c : break\n\t\t\t\tif Collision(p.cnt.0,p.cnt.1,p.c.0,p.c.1) : p.c.2 *= -1 : p.c.3 *= -1 : p.cnt.2 *= -1 : p.cnt.3 *= -1\n\t\t\tloop\n\t\t\tif Collision(mousex,mousey,p.c.0,p.c.1) : p.c.2 *= -1 : p.c.3 *= -1\n\t\t\trepeat 2 : p.c.cnt += p.c.(cnt+2) : loop\n\t\tloop\n\t\tredraw 1\n\t\tawait 0\n\tloop<\/pre>\n<\/div>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001 Twitter \u3084\u308a\u306a\u304c\u3089\u9069\u5f53\u306b\u66f8\u3044\u3066\u307f\u305f\u3002<\/p>\n<p>\u96e3\u89e3\u3063\u3066\u3053\u3068\u3067\u3001\u914d\u5217\u306e\u66f8\u304d\u65b9\u3092\u6614\u306e\u66f8\u304d\u65b9\u3067\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u304c\u3001<br \/>\n  <br \/>\u3069\u3046\u898b\u3066\u3082\u96e3\u89e3\u30fb\u30fb\u3058\u3083\u306a\u3044\u3053\u308c\u30fb\u30fb\uff57<\/p>\n<p><a href=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2011\/12\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2011\/12\/image_thumb.png\" width=\"557\" height=\"441\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p>\u3082\u3057\u304b\u3059\u308b\u3068\u3001<br \/>\n  <br \/><a title=\"https:\/\/github.com\/mimura1133\/mm_hspsourceconverter\" href=\"https:\/\/github.com\/mimura1133\/mm_hspsourceconverter\">https:\/\/github.com\/mimura1133\/mm_hspsourceconverter<\/a><\/p>\n<p>\u3053\u3063\u3061\u306e HSP \u30bd\u30fc\u30b9\u306e\u65b9\u304c\u9059\u304b\u306b\u3054\u3061\u3083\u3054\u3061\u3083\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u30fb\u30fb\uff1f\uff57<\/p>\n<p>&#160;<\/p>\n<p>\u3093\u30fc\u30fb\u30fb\u3002<\/p>\n<p>\u3067\u3042\u3067\u3042\u30fc\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307f\u3080\u3089\u3067\u3059\u3002 Esolang Advent Calendar 2011 ( http:\/\/atnd.org\/events\/22463 ) \u3053\u308c\u306e\u9023\u643a\u4f01\u753b\u3002 &#160; Esoteric Language : \u96e3\u89e3\u8a00\u8a9e  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99],"class_list":["post-3832","post","type-post","status-publish","format-standard","hentry","category-other","tag-esolang-advent-calendar-2011"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/3832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=3832"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/3832\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=3832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=3832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=3832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}