Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thanks for the feedback and playing my game! The "AI" is just a super basic script (see below)

export var speed = 250

var ball


func _ready():

ball = get_parent().find_node("Ball")

func _physics_process(delta):

move_and_slide(Vector2(0,get_opponent_direction()) * speed)


func get_opponent_direction():

if abs(ball.position.y - position.y) > 25:

if ball.position.y > position.y: return 1

else: return -1

else: return 0

I have a couple things left I want to implement and bug fixes. I also wanted to get the GDFG community critiquing it because I find other game devs tend to have pretty sound advice on things to tweak or add :)

Yes all sounds were from Freesound.org!

Haha wow that's awesome. I'm so fascinated by the different approaches to AI...sometimes the implementations are so simplistic.

I'll have to checkout Freesound.org - in the past I've mostly just looked at opengameart.org but I liked what you had