Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix interface issues #21

Merged
merged 4 commits into from
Feb 6, 2024
Merged

Fix interface issues #21

merged 4 commits into from
Feb 6, 2024

Conversation

tenk-9
Copy link
Owner

@tenk-9 tenk-9 commented Feb 6, 2024

キー押下状態の監視をKeyStateクラスで行うように変更した.
これに伴い,以下の変更をした.
@dev/keyInterface.pde
追加.キーの押下状態を監視するクラス.
矢印キーはまだ未対応(#18 ).

@dev/dev.pde
keyPressed(), keyReleased()で,KeyStateクラスに情報を渡す.
catchPlateオブジェクトの変更に対応(CatchPlate.addForce(KeyState)).
sphereDetailを5に(動作が軽くなった,close #11 ).

@dev/catchPlate.pde
キー押下状態をKeyStateクラスから受け取るようにした,これによりキーの同時入力にも対応できた(close #10 ).
キー入力と移動方向のズレを修正(close #20 ).
加力の処理をupdate()からaddForce(KeyState)に分離.
(ついでに)dtをリアルタイムにし,重量と力の大きさを調整.

キー入力状態を監視するクラスとそのインターフェース
update()からaddForce()へ分離,キー入力状態はKeyStateクラスから取得する.
catchPlateの処理の切り離し,KeyStateクラスでのキー入力管理
バランスが正常になるよう,_massと_forceSizeも変更
@tenk-9 tenk-9 merged commit 39b21c2 into master Feb 6, 2024
@tenk-9 tenk-9 deleted the fix_interface_issues branch February 6, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant