{"id":3265,"date":"2021-06-14T00:20:14","date_gmt":"2021-06-13T15:20:14","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=3265"},"modified":"2021-06-14T00:25:56","modified_gmt":"2021-06-13T15:25:56","slug":"termmaze3d","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2021\/06\/14\/termmaze3d\/","title":{"rendered":"AWK\u88fdFPS\u30b2\u30fc\u30e0\u306e\u300cTERMMAZE3D\u300d"},"content":{"rendered":"<div class=\"paragraph\">\n<p>TERMMAZE3D \u3068\u3044\u3046\u7aef\u672b\u4e0a\u3067\u52d5\u4f5c\u3059\u308bAWK\u88fd\u306eFPS\u30b2\u30fc\u30e0\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u904a\u3093\u3067\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/github.com\/mikkun\/termmaze3d\">mikkun\/termmaze3d: Pseudo-3D first-person shooter written in AWK<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p><!--more--><\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u307e\u305a\u306f\u4f9d\u5b58\u30b3\u30de\u30f3\u30c9\u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"quoteblock\">\n<blockquote>\n<div class=\"paragraph\">\n<p>Requirements<br \/>\ngawk or awk (except mawk)<br \/>\nGNU coreutils or equivalent BSD command (dd, echo, sleep, stty)<\/p>\n<\/div>\n<\/blockquote>\n<\/div>\n<div class=\"paragraph\">\n<p>Linux\u74b0\u5883\u3067\u306fGNU Coreutils + GNU awk\uff0c*bsd\u74b0\u5883\u3067\u306fdd, echo, sleep, stty + nawk \u3042\u305f\u308a\u3067\u3057\u3087\u3046\u304b\uff0e\u4eca\u56de\u306fDebian bullseye \u74b0\u5883\u306a\u306e\u3067\u3053\u3093\u306a\u611f\u3058\u3067\uff0eGNU Coreutils, GNU awk \u3068\u30ea\u30dd\u30b8\u30c8\u30ea\u3092clone \u3059\u308b\u305f\u3081\u306bgit \u3092\u5c0e\u5165\u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-shell\" data-lang=\"shell\">$ sudo apt install coreutils gawk git<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>source \u3092clone \u3057\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-shell\" data-lang=\"shell\">$ git clone https:\/\/github.com\/mikkun\/termmaze3d <b class=\"conum\">(1)<\/b>\n$ cd termmaze3d\n$ .\/termmaze3d.awk <b class=\"conum\">(2)<\/b><\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"colist arabic\">\n<ol>\n<li>TERMMAZE3D\u3092clone<\/li>\n<li>\u5b9f\u884c<\/li>\n<\/ol>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3082\u3057\uff0c\u5b9f\u884c\u6642\u306b\u771f\u3063\u9ed2\u306a\u753b\u9762\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u5834\u5408\u306fawk\u304c mawk \u306b\u5411\u3044\u3066\u3044\u308b\u3068\u601d\u3046\u306e\u3067\u6b21\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306bgawk\u306b\u5207\u308a\u66ff\u3048\u308b\u304b\uff0c <code>$ gawk -f .\/termmaze3d.awk<\/code> \u306e\u3088\u3046\u306b gawk \u30b3\u30de\u30f3\u30c9\u3092\u76f4\u306b\u53e9\u304f\u3068\u3044\u3044\u3067\u3059\uff0e<br \/>\n\u7aef\u672b\u30b5\u30a4\u30ba\u306f80&#215;22\u3068\u6bd4\u8f03\u7684\u5c0f\u3055\u3044\u306e\u3067\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u3092\u8abf\u6574\u3059\u308b\u3068\u3044\u3044\u611f\u3058\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/matoken.org\/blog\/2021\/06\/10\/swatch-awk\/\">Debian\/Ubuntu\u3067awk\u3092\u5207\u308a\u66ff\u3048\u308b \u2013 matoken\u2019s meme<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30b2\u30fc\u30e0\u306f\u6bce\u56de\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u30de\u30c3\u30d7\u306e\u4e2d\u3092\u6b69\u304d\u56de\u3063\u3066\u30bf\u30a4\u30e0\u30a2\u30c3\u30d7\u3059\u308b\u524d\u306b\u5b9d\u7269\u30925\u3064\u96c6\u3081\u308b\u3068\u30af\u30ea\u30a2\u3067\u3059\uff0e\u8d64\u3044\u6575\u304c\u51fa\u3066\u304d\u307e\u3059\u304c\u5f53\u305f\u308b\u3068\u30bf\u30a4\u30e0\u304c\u6e1b\u3063\u3066\u3044\u304d\u307e\u3059\uff0e <code>k<\/code> key\u3067\u653b\u6483\u3057\u305f\u308a\u9003\u3052\u307e\u3057\u3087\u3046\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u4ee5\u4e0b\u30d7\u30ec\u30a4\u52d5\u753b\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><iframe loading=\"lazy\" width=\"640\" height=\"360\" scrolling=\"no\" frameborder=\"0\" style=\"border: none;\" src=\"https:\/\/www.bitchute.com\/embed\/2A1y5xbuskKe\/\"><\/iframe><br \/>\n(<a href=\"https:\/\/www.youtube.com\/watch?v=k2zHXdc-Iro\">backup<\/a>)<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>awk\u3067\u3067\u304d\u305f\u30b2\u30fc\u30e0\u3068\u3044\u3048\u3070\u4ee5\u524d <code>awkaster<\/code> \u3068\u3044\u3046\u3082\u306e\u3082\u3042\u308a\u307e\u3057\u305f\uff0e\u540c\u4f5c\u8005\u306e\u30c6\u30c8\u30ea\u30b9\u30e9\u30a4\u30af\u306aAWKTC\u3082AWK\u88fd\u3067\u3059\uff0e\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u3053\u308c\u3089\u3082\u904a\u3093\u3067\u307f\u308b\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li><a href=\"https:\/\/matoken.org\/blog\/2016\/01\/18\/i-tried-playing-around-with-awk-made-3d-shooter-game-awkaster\/\">awk \u88fd 3D\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u30b2\u30fc\u30e0 awkaster \u3067\u904a\u3093\u3067\u307f\u305f \u2013 matoken\u2019s meme<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/mikkun\/AWKTC\">mikkun\/AWKTC: AWKTC is Workable Klutzy Time-wasting Command<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u58831<\/div>\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-shell\" data-lang=\"shell\">$ git log --oneline\n16e844a (HEAD -&gt; main, tag: v1.0.0, origin\/main, origin\/HEAD) :tada: Initial co\n$ dpkg-query -W gawk coreutils git\ncoreutils       8.32-4+b1\ngawk    1:5.1.0-1\ngit     1:2.30.2-1\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux 11 (bullseye)\nRelease:        11\n$ arch\nx86_64<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u58832<\/div>\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-shell\" data-lang=\"shell\">$ git log --oneline\n16e844a (HEAD -&gt; main, tag: v1.0.0, origin\/main, origin\/HEAD) :tada: Initial co\n$ dpkg-query -W gawk coreutils git\ncoreutils       8.30-3\ngawk    1:4.2.1+dfsg-1\ngit     1:2.20.1-2+deb10u3\n$ lsb_release -dr\nDescription:    Raspbian GNU\/Linux 10 (buster)\nRelease:        10\n$ arch\narmv7l<\/code><\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>TERMMAZE3D \u3068\u3044\u3046\u7aef\u672b\u4e0a\u3067\u52d5\u4f5c\u3059\u308bAWK\u88fd\u306eFPS\u30b2\u30fc\u30e0\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u904a\u3093\u3067\u307f\u307e\u3057\u305f\uff0e mikkun\/termmaze3d: Pseudo-3D first-person shooter written in  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[658,7,6,91,472],"tags":[662,89,664,360],"class_list":["post-3265","post","type-post","status-publish","format-standard","hentry","category-bullseye","category-debian-linux","category-linux","category-raspberry-pi","category-raspbian-buster","tag-awk","tag-game","tag-gawk","tag-terminal"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/3265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=3265"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/3265\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=3265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=3265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=3265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}