PyGame Utilities(pgu)が動いた。
開発環境
- Linux Mint 17.3 MATE 32bit
- pyenv
実行
examplesコードがあるパスへ移動する。
(game) $ cd /.../pyenv/lib/pgu/examples
(game) $ python gui5.py
テキストエリアに以下のように入力するとトウフになった。
- 日本語を入力
- Ctrl+Z
gui6.py
gui7.py
gui8.py
gui9.py
gui10.py
宇宙を進むようなアニメーション。
gui11.py
gui12.py
日本語名のファイルなどは表示されない。日本語フォントを指定するなどして何とかならないか。
gui13.py
gui14.py
gui15.py
gui16.py
gui17.py
gui18.py
html1.py
html2.py
html3.py
html4.py
text1.py
動かなかったやつ
$ python isovid1.py pgu.isovid - This module is alpha, and is subject to change. Traceback (most recent call last): File "isovid1.py", line 63, in <module> run(init()) File "isovid1.py", line 50, in run g.paint(g.screen) File "../pgu/isovid.py", line 42, in paint todo = [[] for y in xrange(0,todo_max)] TypeError: 'float' object cannot be interpreted as an integer
$ python tilevid1.py Traceback (most recent call last): File "tilevid1.py", line 87, in <module> run(init()) File "tilevid1.py", line 74, in run g.paint(g.screen) File "../pgu/tilevid.py", line 52, in paint for y in xrange(oy//th,my): TypeError: 'float' object cannot be interpreted as an integer
$ python tilevid2.py Traceback (most recent call last): File "tilevid2.py", line 68, in <module> run(init()) File "tilevid2.py", line 45, in run g.paint(g.screen) File "../pgu/tilevid.py", line 36, in paint for y in xrange(oy//th,my): TypeError: 'float' object cannot be interpreted as an integer $ python tilevid3.py Traceback (most recent call last): File "tilevid3.py", line 119, in <module> run(init()) File "tilevid3.py", line 97, in run g.paint(g.screen) File "../pgu/tilevid.py", line 36, in paint for y in xrange(oy//th,my): TypeError: 'float' object cannot be interpreted as an integer
$ python tilevid4.py Traceback (most recent call last): File "tilevid4.py", line 152, in <module> run(init()) File "tilevid4.py", line 126, in run g.paint(g.screen) File "../pgu/tilevid.py", line 36, in paint for y in xrange(oy//th,my): TypeError: 'float' object cannot be interpreted as an integer
$ python tilevid5.py Traceback (most recent call last): File "tilevid5.py", line 255, in <module> run(init()) File "tilevid5.py", line 228, in run g.run_codes(cdata,(g.view.right/TW,0,1,17)) File "../pgu/vid.py", line 331, in run_codes for x in range(x1,x1+w): TypeError: 'float' object cannot be interpreted as an integer
script
(game) $ cd /.../pyenv/lib/pgu/script
$ ls
leveledit levelfancy tganew tileedit
tutorial on how to load tiles and levels
$ python tileedit File "tileedit", line 562 print temp_file_name ^ SyntaxError: Missing parentheses in call to 'print'
python2仕様のprint記述。こんなもの一々直していられない。python3で動かせないのか……。
所感
正直ダサいが助かるかも。以下の点が気になる。
- 日本語が使えるか
- アンチエイリアシング可能か