{"id":20,"date":"2021-07-19T12:14:21","date_gmt":"2021-07-19T03:14:21","guid":{"rendered":"http:\/\/kpc2021vb.satoshis.jp\/?p=20"},"modified":"2021-07-19T12:14:21","modified_gmt":"2021-07-19T03:14:21","slug":"%e3%82%af%e3%83%aa%e3%82%a2%e3%81%a8%e3%82%b2%e3%83%bc%e3%83%a0%e3%82%aa%e3%83%bc%e3%83%90%e3%83%bc","status":"publish","type":"post","link":"https:\/\/kpcvb.satoshis.jp\/?p=20","title":{"rendered":"\u30af\u30ea\u30a2\u3068\u30b2\u30fc\u30e0\u30aa\u30fc\u30d0\u30fc"},"content":{"rendered":"<div class=\"52c85d4ba9991f085df6225e35c53991\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- memo300x600 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:inline-block;width:300px;height:600px\"\r\n     data-ad-client=\"ca-pub-9576179666165228\"\r\n     data-ad-slot=\"1090285404\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<p>\u3059\u3079\u3066\u306e\u30d6\u30ed\u30c3\u30af\u3092\u6d88\u305b\u305f\u3068\u304d\u306f\u30af\u30ea\u30a2\u3002\u307e\u305f\u3001\u30e9\u30b1\u30c3\u30c8\u3067\u30dc\u30fc\u30eb\u3092\u6253\u3061\u8fd4\u3059\u306e\u306b\u5931\u6557\u3057\u305f\u3089\u30b2\u30fc\u30e0\u30aa\u30fc\u30d0\u30fc\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30af\u30ea\u30a2\u3057\u305f\u6642\u3001\u30b2\u30fc\u30e0\u30aa\u30fc\u30d0\u30fc\u306b\u306a\u3063\u305f\u3068\u304d\u306f\u3001\u305d\u308c\u305e\u308c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u30bf\u30a4\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u3092\u7121\u52b9\u5316\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30af\u30ea\u30a2\u3067\u304d\u305f\u304b\u3069\u3046\u304b\u306e\u5224\u65ad\u306f\u3001\u8868\u793a\u4e2d\u306e\u30d6\u30ed\u30c3\u30af\u306e\u6570\u304c0\u306b\u306a\u3063\u305f\u3053\u3068\u3067\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u8868\u793a\u4e2d\u306e\u30d6\u30ed\u30c3\u30af\u306e\u6570\u3092\u6570\u3048\u308b CountBricks() \u3068\u3044\u3046\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n    Public Function CountBricks()\r\n        Dim i, j, sum As Integer\r\n        Dim b As Label\r\n        sum = 0\r\n        For i = 0 To 9\r\n            For j = 0 To 5\r\n                b = brick(i, j)\r\n                If b.Visible Then\r\n                    sum += 1\r\n                End If\r\n            Next\r\n        Next\r\n        Return sum\r\n    End Function\r\n<\/pre>\n<p>\u30bf\u30a4\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u5185\u3067\u6b8b\u308a\u306e\u30d6\u30ed\u30c3\u30af\u306e\u6570\u3092\u898b\u3066\u30010\u306b\u306a\u3063\u3066\u305f\u3089\u30af\u30ea\u30a2\u306b\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u30dc\u30fc\u30eb\u304c\u30e9\u30b1\u30c3\u30c8\u3088\u308a\u3082\u4e0b\u306b\u884c\u3063\u305f\u3089\u30b2\u30fc\u30e0\u30aa\u30fc\u30d0\u30fc\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick\r\n        HitWall()\r\n        HitRacket()\r\n        HitBricks()\r\n        If CountBricks() = 0 Then\r\n            Timer1.Enabled = False\r\n            MsgBox(&quot;\u30af\u30ea\u30a2\u3057\u307e\u3057\u305f\uff01&quot;)\r\n        End If\r\n        If y &gt; Racket.Top + Racket.Height Then\r\n            Timer1.Enabled = False\r\n            MsgBox(&quot;\u30b2\u30fc\u30e0\u30aa\u30fc\u30d0\u30fc&quot;)\r\n        End If\r\n        x = x + dx\r\n        y = y + dy\r\n        Ball.Left = x\r\n        Ball.Top = y\r\n    End Sub\r\n<\/pre>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u3059\u3079\u3066\u306e\u30d6\u30ed\u30c3\u30af\u3092\u6d88\u305b\u305f\u3068\u304d\u306f\u30af\u30ea\u30a2\u3002\u307e\u305f\u3001\u30e9\u30b1\u30c3\u30c8\u3067\u30dc\u30fc\u30eb\u3092\u6253\u3061\u8fd4\u3059\u306e\u306b\u5931\u6557\u3057\u305f\u3089\u30b2\u30fc\u30e0\u30aa\u30fc\u30d0\u30fc\u306b\u3057\u307e\u3059\u3002 \u30af\u30ea\u30a2\u3057\u305f\u6642\u3001\u30b2\u30fc\u30e0\u30aa\u30fc\u30d0\u30fc\u306b\u306a\u3063\u305f\u3068\u304d\u306f\u3001\u305d\u308c\u305e\u308c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u30bf\u30a4\u30de\u30fc\u30a4\u30d9\u30f3\u30c8\u3092\u7121\u52b9\u5316\u3057\u307e\u3057\u3087\u3046\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-visualbasic"],"_links":{"self":[{"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":1,"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions\/21"}],"wp:attachment":[{"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kpcvb.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}