The Eater created in Godot game engine for Tweet Tweet jam 8

created using only 498 characters of code


My code:

extends KinematicBody2D

var e=load("res://.tscn");var v=Vector2.ZERO;var a=500;var s=5;var q=250;var g=0

func _physics_process(d):

var j=Input.get_action_strength("d")-Input.get_action_strength("u")

if j!=0:v.y+=j*a*d;v.y=clamp(v.y,-q,q);$p.text=str(g);v=move_and_slide(v)

func tot():

var i=e.instance();i.position.x=1045;i.position.y=rand_range(50,500);i.s=s;s+=0.01;g+=1;get_parent().add_child(i)

func f(a):

g=0;s=5

extends Area2D

var s

func _physics_process(d):

position.x-=s

if position.x<0:queue_free()


Post your High-score

Comments

Log in with itch.io to leave a comment.

This was a very zen experience for me, love the feel of the controls. Great submission!

Very glad you liked it.

(+1)

Great work!!

thanks

(+1)

My best score was 130! I really enjoyed the slidiness of the spaceship which made avoiding the asteroids difficult to avoid. Also, any kind of spacey eldritch horror is something that captures my imagination immediately! Nice work on this!!

(+1)

congratulations on the high score!, Thanks a lot for this Reply :)

(+1)

Cool idea to inject juice and fluidity into your game by using some of your limited characters on importing existing Godot physics classes. I have been eyeing Godot for a while, and this definitely rekindled my interest.

glad I could help, animation player is definitely the most powerful tool which saves a lot of coding.