{"id":5539,"date":"2026-09-06T17:14:25","date_gmt":"2026-09-06T08:14:25","guid":{"rendered":"https:\/\/blog2.dypg.jp\/wp\/?p=5539"},"modified":"2026-09-06T17:14:25","modified_gmt":"2026-09-06T08:14:25","slug":"lets-learn-to-code-%e3%80%90%e5%87%ba%e5%b1%8b%e6%95%b7%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e6%95%99%e5%ae%a4%e3%80%91%ef%bc%92%ef%bc%90%ef%bc%92%ef%bc%96%e5%b9%b4-33","status":"publish","type":"post","link":"https:\/\/blog2.dypg.jp\/wp\/?p=5539","title":{"rendered":"Let\u2019s Learn to Code \u3010\u51fa\u5c4b\u6577\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u5ba4\u3011\uff12\uff10\uff12\uff16\u5e74\uff10\uff18\u6708\uff10\uff16\u65e5\u3010\u585a\u53e3\u3055\u3093\u3055\u3093\u30bf\u30a6\u30f3\u6559\u5ba4\u6388\u696d\u5831\u544a\u3011"},"content":{"rendered":"<p>\u30c0\u30e1\u30fc\u30b8\u3092\u305f\u3081\u3066\u306f\u53cd\u6620\u3059\u308b\u306b\u306f\u5909\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u5909\u6570\uff44\u306b\u30c0\u30e1\u30fc\u30b8\u3092\u305f\u3081\u3066\u3001\uff10\u3088\u308a\u5927\u304d\u3051\u308c\u3070\u30c0\u30e1\u30fc\u30b8\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3059\u308b\u3092\u3084\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p dir=\"auto\" data-pm-slice=\"1 1 []\">We use a variable to store accumulated damage and apply it later.<\/p>\n<p dir=\"auto\">In this example, we store the damage in a variable called &#8220;d&#8221;. If the value of &#8220;d&#8221; is greater than0, the character performs a damage reaction.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.dypg.jp\/\">\u51fa\u5c4b\u6577\u6559\u5ba4\u3000\uff10\uff19<\/a><a href=\"https:\/\/www.dypg.jp\/\">\u6708\uff11\uff12<\/a><a href=\"https:\/\/www.dypg.jp\/\">\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukasin\/4687348\/\">\u3064\u304b\u3057\u3093\u6559\u5ba4\u3000\uff10\uff19\u6708\uff12\uff17\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/culture.jeugia.co.jp\/lesson_detail_23-63403.html?PHPSESSID=phacqr0u9ll2mcf7n0m214ose5\">\u3089\u3089\u307d\u30fc\u3068\u7532\u5b50\u5712\u6559\u5ba4\u3000\uff11\uff10\u6708\uff11\uff11\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u585a\u53e3\u3055\u3093\u3055\u3093\u30bf\u30a6\u30f3\u6559\u5ba4\u3000\uff11\uff10<\/a><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u6708\uff10\uff14<\/a><a href=\"https:\/\/www.culture.gr.jp\/detail\/tukaguti\/1976224\/\">\u65e5<\/a><\/p>\n<p><a href=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/09\/IMG_9669.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5540\" src=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/09\/IMG_9669.jpg\" alt=\"Let\u2019s Learn to Code \u3010\u51fa\u5c4b\u6577\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6559\u5ba4\u3011\uff12\uff10\uff12\uff16\u5e74\uff10\uff18\u6708\uff10\uff16\u65e5\u3010\u585a\u53e3\u3055\u3093\u3055\u3093\u30bf\u30a6\u30f3\u6559\u5ba4\u6388\u696d\u5831\u544a\u3011\" width=\"400\" height=\"300\" srcset=\"https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/09\/IMG_9669.jpg 400w, https:\/\/blog2.dypg.jp\/wp\/wp-content\/uploads\/2026\/09\/IMG_9669-300x225.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c0\u30e1\u30fc\u30b8\u3092\u305f\u3081\u3066\u306f\u53cd\u6620\u3059\u308b\u306b\u306f\u5909\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002 \u4eca\u56de\u306f\u5909\u6570\uff44\u306b\u30c0\u30e1\u30fc\u30b8\u3092\u305f\u3081\u3066\u3001\uff10\u3088\u308a\u5927\u304d\u3051\u308c\u3070\u30c0\u30e1\u30fc\u30b8\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3059\u308b\u3092\u3084\u3063\u3066\u3044\u307e\u3059\u3002 We use a variable to store accumulated damage and apply it later. In this example, we<\/p>\n","protected":false},"author":1,"featured_media":5540,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,3,68,67,16,69],"tags":[],"class_list":["post-5539","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-72","category-3","category-68","category-67","category-16","category-69"],"_links":{"self":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5539"}],"version-history":[{"count":1,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5539\/revisions"}],"predecessor-version":[{"id":5541,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5539\/revisions\/5541"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=\/wp\/v2\/media\/5540"}],"wp:attachment":[{"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog2.dypg.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}