English Below↓ 全部で946ブロック使用しています。少し修正が必要ですが、一応3Dプラットフォー厶エンジンでもあります。需要があったら教えてください。 作者ハイスコア→4355 ただただ登るだけではつまらないということで、足場が下からどんどん消えていくというゲームです。つまり、スピードラン的な3Dプラットフォーマーです。あと床はすり抜けれる床です。 〜操作〜 ・WASDキーで動く ・矢印キーで回転 ・スペースキーもしくはCキーでジャンプ 〜コツ〜 最初のカウント時から勝負は回転することができる。あらかじめ床の場所などを把握しておこう!回転すると時間がかかる。後ろ移動なども使うと早くなる!焦ると落ちてしまうので、落ち着いて行動しよう。 〜仕組み〜 (先にいいますけど小6です。)三角形の3点をxyzの軸に置いて3Dの三角形を作る方法を使いました。三角形の塗りつぶし方なんですけども最初に円を作ってそこから三角形を囲っていくという方法です。三角形の辺はピタゴラスの定義ですべてわかるのでヘロンの法則を使って面積を求めます。次に求めなければならないのは内心の座標なので公式(名前しらん)を使って求めます。最後に半周長を使い内接円の半径を使います。これで三角形をかくのに十分な情報を入手できました。次はカメラの回転ですが、三角比を使い(解説めんどい)をつかって求まり、あとはリストに高さを書き込み1フレームで全部当たってないか調べたら当たり判定もわかるので完成です。 〜クレジット〜 ・プラグラムはすべて @ZZZBanana です。 ・BGMは魔王魂様です。 ・効果音はFC音工場様です。 ————English—————————————————— Simply climbing wouldn't be fun, so this game features platforms that gradually disappear from the ground. It's essentially a speedrun-style 3D platformer. You can also slip through floors. Controls - Move with the WASD keys - Rotate with the arrow keys - Jump with the spacebar or C key How it Works Let me say this first: I'm in sixth grade. I created a 3D triangle by placing three points on the x, y, and z axis. To fill the triangle, I first created a circle and then worked my way around it. Since the sides of a triangle are all known from the Pythagorean definition, I used Heron's Law to find the area. The next thing I needed to find was the coordinates of the incenter, which I found using a formula (I don't know the name of). Finally, I used the semiperimeter and the radius of the inscribed circle. Now I have enough information to draw the triangle. Next, I need to find the camera rotation, which I can do using trigonometric ratios (too much to explain). Then I enter the height into a list and check for any collisions in a single frame. Then I can determine the collision detection, and I'm done! ~Credits~ - All programming by @ZZZBanana. - BGM by Maoudamashii. - Sound effects by FC Sound Factory.