How do I make AI for a pong fighting game?
-
Right now I am programming a fighting game where two floating paddles (pong) slap each other each until one has no HP left, I got two attacks(quick vs powerful), shielding, frame-data, a health bar that deceases when attacked, and i'm planning to add a final smash-like thing, but I want to be able to have single-player. How do I code AI to handle this?
-
Hi!
I don't know if I understood you well, but if you want to implement a battle system with enemy AI you can check out my project (WARFLAGS: X2A63MND1V) to get some ideas. I'm using also two attacks (quick and powerful) and magic attacks including projectiles like rockets or bullets.An example of combat in my game:
-
@skullo Nice! i'll check it out
-
@Skullo I just finished with the CPU AI, it was surprisingly simple once I got in the flow of adding inputs and outputs. Now there's singleplayer support :) probably going to share it at some point this tonight (I had a BLAST playing it with my friends)
-
@heyomayo Nice! Looking forward to seeing the result!
-
@skullo the code is
51SC7MNDX5
-
@heyomayo said in How do I make AI for a pong fighting game?:
@skullo the code is
51SC7MNDX5
I played it last night and I found it very funny!
-
@skullo I'm glad you found it funny, I really like it when my dumb jokes make someone laugh. I was considering adding unlockable lore considering how fun the high scores were for me to play and code (although I don't know if my weird sense of humor crosses the line).