Godot
4.4からTyped Dictionaries
4.4より下はDictionaryの型指定出来ない
typescriptみたいな詳細な型は書けない…
https://docs.godotengine.org/en/stable/classes/class_node.html#methods
https://docs.godotengine.org/en/stable/classes/class_@gdscript.html
Godot エディタ内でスクリプトを動かす
Godot notifications — Godot Engine (stable) documentation in English https://docs.godotengine.org/en/stable/tutorials/best_practices/godot_notifications.html#doc-godot-notifications
_ready(): NOTIFICATION_READY
_enter_tree(): NOTIFICATION_ENTER_TREE
_exit_tree(): NOTIFICATION_EXIT_TREE
_process(delta): NOTIFICATION_PROCESS
_physics_process(delta): NOTIFICATION_PHYSICS_PROCESS
_draw(): NOTIFICATION_DRAW
update()の代わりqueue_redraw()
プロジェクト設定で表示>ウィンドウのストレッチ>モードをcanvas_itemにしたらウィンドウサイズとか変わってもちゃんと拡大表示されるようになった
viewportでもいいか、viewportだとアスペクト比違う場合にゲーム画面が余分に表示されるっぽいな
ビルドシステムの説明 — Godot Engine (4.x)の日本語のドキュメント https://docs.godotengine.org/ja/4.x/contributing/development/compiling/introduction_to_the_buildsystem.html#doc-introduction-to-the-buildsystem
やらなくていい奴、これやればファイルサイズ削減出来るんかな?
提案された小さい構成(動くか知らん)(これ何が出力されるんだ?エクスポートテンプレートが出るんかな?)
code:a.sh
# 最小構成でビルド
scons platform=web target=template_release tools=no \
module_webm_enabled=no \
module_camera_enabled=no \
module_mobile_vr_enabled=no \
module_gdnative_enabled=no \
module_arkit_enabled=no \
module_visual_script_enabled=no \
module_webrtc_enabled=no \
disable_3d=yes \
disable_advanced_gui=yes
pythonでエラー出て躓いた
#gamedev