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

カメラ実装 #25

Merged
merged 6 commits into from
Jan 1, 2014
Merged

カメラ実装 #25

merged 6 commits into from
Jan 1, 2014

Conversation

lettas
Copy link
Contributor

@lettas lettas commented Jan 1, 2014

CCFollow っていうアクションの便利さが異常だったので勢いに任せてカメラを実装しました。
baseLayerを逆に動かしたりする苦しみから解放された気分です。
あと、playerLayerなくしちゃいました。

@karihei
Copy link
Contributor

karihei commented Jan 1, 2014

@lettas コンフリクトしてるっちゃ

@karihei
Copy link
Contributor

karihei commented Jan 1, 2014

ビームが狙った位置に飛ばなくなる

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

ほげあ

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

なおすっちゃ

@karihei
Copy link
Contributor

karihei commented Jan 1, 2014

masterをマージしたらconvertAbsolutePosition的なアヤシゲなメソッドがplayer.jsあたりにできるからそのへんが悪さしてる可能性あるっちゃ

@karihei
Copy link
Contributor

karihei commented Jan 1, 2014

ちょっと直してみるっちゃ?

Conflicts:
	public/js/src/entity/player.js
	public/js/src/scene/beamQuest.js

いったん、大まかに、remoteを生きで
@karihei
Copy link
Contributor

karihei commented Jan 1, 2014

player.jsのonMouseDownでクリックした座標が絶対座標になってないのがだめみたい。

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

なおしたっちゃ

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

convertAbsolutePositionの意味が変わってしまった感ある

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

convertWindowPositionToWorldPosition てきな

@karihei
Copy link
Contributor

karihei commented Jan 1, 2014

そやねー。そしてplayerクラスがやる仕事じゃない感もある

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

このらいんなっぷだとcameraが一番近い

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

(適任ではない)

@karihei
Copy link
Contributor

karihei commented Jan 1, 2014

ピコヨロ

@lettas
Copy link
Contributor Author

lettas commented Jan 1, 2014

とりあえずcameraに持たせた。
bq.cameraが苦し紛れすぎるので、cc.Director.getInstance().getRunningSceneあたりをうまく使えませんかね。

bq.currentScene().camera みたいなアクセスできたら幸せですね。

karihei added a commit that referenced this pull request Jan 1, 2014
@karihei karihei merged commit 256cd3f into master Jan 1, 2014
@karihei karihei deleted the feature/camera branch January 3, 2014 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants