Use your mouse to click on the canvas, to try to move the one panel towards the other. As soon as you reach your target, a new one will spawn. The first one is really easy, but once your panel has some momentum, it becomes harder to control. You get points for every panel you reach, and lose points for every click you use.

This is a small experiment in the cursed art of golfing GDScript. Made with just 500 characters of code. Less (code) is more as they say. It was mostly just for the technical challenge, but it ended up being surprisingly fun for me, so I decided to submit it.

To run paste the code below into an empty Node2D scene - no other assets needed - or check the sample project here.


extends Node2D
var n=RigidBody2D.new()
var v=Vector2(20,20)
var r="position"
var s=0:
 set(a):s=a;t.text="%s"%s
var t=Label.new()
func f(a,b=self):b.add_child(a)
func l(j,d,b=600):d.position=Vector2(randi()%b,randi()%b);s+=8
func u(p=v,n=Area2D.new(),c=CollisionShape2D.new(),s=Tree.new()):c.shape=CircleShape2D.new();n[r]=p;s.size=v;f(c,n);f(s,n);n.body_entered.connect(l.bind(n));f(n)
func _init():n.gravity_scale=0;u(v,n);u();f(t)
func _input(e):if e.is_pressed():n.apply_force((e[r]-n[r])*9);s-=1

For those running into issues with SharedArrayBuffer support, try using this link: https://itch.io/embed-upload/7883759?color=6a6a6a

Made for a dual-entry to the TweetTweetJam 8 and Go Godot Jam 4.

Made with ❤️ by Kinami Imai 今井きなみ

StatusReleased
PlatformsWindows, Linux, HTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorKinami Imai 今井きなみ
GenrePuzzle
Made withGodot
Tags2D, Simple
Average sessionA few seconds
InputsMouse, Touchscreen
AccessibilityColor-blind friendly, Textless
LinksSource code

Download

Download NowName your own price

Click download now to get access to the following files:

panel_curling_linux.zip 24 MB
panel_curling_win.zip 24 MB

Comments

Log in with itch.io to leave a comment.

I am getting this error:

Error

The following features required to run Godot projects on the Web are missing:

Cross Origin Isolation - Check web server configuration (send correct headers)

SharedArrayBuffer - Check web server configuration (send correct headers)

---


Make sure you have enabled the SharedArrayBuffer settings in your game's itch.io page. I am on Firefox Windows 10 but I also tried it on Chrome.

Thank you for your comment! 😃

Unfortunately, I already had the SharedArrayBuffer setting enabled. I have heard of some other Godot games experiencing the issue. Are you able to play the downloadable version?

SharedArrayBuffer

(+1)

Wow, I am loving this GDScript golfing experiment! The physics feel very smooth and nice to play with, and the points system is restrictive enough to make it a real challenge to stay in the positive! Incredible work.

Thank you for your comment! 😊

It was a real effort to stay within the 500 characters, and still keep score, but I’m pretty satisfied with how it turned out!