Skip to main content

Posts

Showing posts from July, 2023

RustとWebAssemblyによるゲーム開発読み始め vol.1

読んでいる本はこれ。 Game Development with Rust and WebAssembly Game Development with Rust and WebAssembly Write an endless runner game for the web in Rust and test, de learning.oreilly.com 『RustとWebAssemblyによるゲーム開発 ―安全・高速・プラットフォーム非依存のWebアプリ開発入門』 として日本語訳版がもうすぐ出る( 7/19発売予定 )ようだったけど、待てなかったし、基本的には文章を味わう系の内容ではなさそうだから原著でも良いだろうということで進めてみている。 まずは1-2章を終えたのでメモとして残す。 1章の最初のお試しで早速引っかかった。これが動かない。 npm run start copy node:internal/crypto/hash: 69 this [kHandle] = new _Hash(algorithm, xofLen); ^ Error : error: 0308010 C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash: 69 : 19 ) at Object .createHash (node:crypto: 138 : 10 ) at module .exports ( /Users/ tkhm/git/walk-the-dog/node_modules/webpack/lib/util/createHash.js: 135 : 53 ) at NormalModule._initBuildHash ( /Users/ tkhm/git/walk-the-dog/node_modules/webpack/lib/NormalModule.js: 417 : 16 ) at handleParseError ( /Users/ tkhm/git/walk-the-dog/node_modules/webpack/lib/NormalModule.js: 47