java - Java2D pathfinding in 2D space shooter game -



i'm writing 2d space shooter game, space invaders, kind of. right have decide in way moving enemy sprites , can't move forward until implement kind of solution.
newest version of game source code on github page (link in profile).

ok, point. first of, i'm using awt. want learn lot, i'm not using external libraries in one. want move aliens on 1280x800 field no obstacles (except other aliens , player). first tried move aliens on predesigned path constructed bezier curves, unsatisfied result. solution lacks flexibility. decided write ai aliens , program behavior way. unfortunately didn't wrote pathfinding algorithm, , when started learn them couldn't find appropriate situation. there pathfinding algorithm finding way in graph, should treat every pixel separate node, or create logical nodes (couple pixels on couple pixels each), , way?

don't take me wrong mates, i'm not looking fast build, easy solution. need pointing in right direction, since research didn't provide me enough information.
should use dijkstra? if yes, how solve node problem? or maybe there better way?
if know web materials on pathfinding or ai, thankful if share them me.
getting familiar issue mates!


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -