プレイ日記
Mike Bluerobin2
Trying to make a feasible ai.
9そうだね
プレイ済み
返信[1]
親投稿
ĦHarry Ramstrong
I think you need to consider X and Y distance separately. Also SpeedY. So you'll need 3D array there. Is that how you do it? Cool! Keep up the good work!
0そうだね
プレイ済み
返信[2]
親投稿
Mike Bluerobin2
I actually got it working now. Each bird has a y speed tag, but they don't move on the x, the pipes do. Therefore I just had to add some code to change the targeted y position each time the pipe passes an x position and the birds try to level out their y with it. Simple stuff! The pipes are sprites, so an array is not needed :)
0そうだね
プレイ済み
返信[3]
親投稿
ĦHarry Ramstrong
I meant 3D lookup table for AI, so you can optimized the play. But if maintaining y is good enough, then it's good enough. :D
1そうだね
プレイ済み
返信[4]
親投稿
Mike Bluerobin2
So far, it's 100% failproof (I let it go to 400 before getting bored previously)
0そうだね
プレイ済み
返信[5]
親投稿
SıмΞоп SimeonW
All this for a simple flappybird game? You might just be better off inventing a new game. Flappy bird is just an easy to pick up... easy to put down game
0そうだね
プレイ済み