Skip to content

masawada/scratch-touch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scratch Touch

Scratchでは外部センサーを使うことが出来ます。これは、iPhoneをセンサー代わりにするデモです。

必要なもの

  • iPhone (iPod touch)
  • Node
  • npm
  • Scratch

iPhoneをLAN経由でPCにつなぎ、NodeがScratchとiPhoneの間を仲介します。 Nodeとnpmを前もってインストールしてください。 (MacでNodeを扱うならHomebrewがオススメです。)

使い方

  1. Nodeとnpmをインストールしましょう
  2. ターミナル(端末・コマンドプロンプト)から以下のコマンドを入力します git://github.com/masawada/scratch-touch.git cd scratch-touch npm install express jade socket.io node app.js
  3. Scratchを起動します
  4. 遠隔センサー接続をオンにします
  5. iPhoneのSafariから"http://PCの(LAN)IPアドレス:3000/"にアクセスしてください
  6. この画面を「ホーム画面に追加」して再度起動するとフルスクリーンモードで遊べます

Scratch Touchをテストするために簡単なプロジェクトを作りました - こちらからどうぞ

遠隔センサー接続をオンにする方法

  1. Scratchを起動します
  2. "調べる"ボタンをクリックします
  3. "スライダーセンサーの値"を右クリックします
  4. "遠隔センサー接続を有効にする"をクリックします

ライセンス

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published