notapixelstudio / starship-olympics

A fast-paced local party game with starships that battle in a 2d top-down arena
https://notapixel.itch.io/starship-olympics
Other
511 stars 46 forks source link

Wall geometry might be more user friendly with rect extents gizmo #194

Closed salvob41 closed 4 years ago

salvob41 commented 5 years ago

https://www.youtube.com/watch?v=nSqaIY-eJm0

nitaku commented 5 years ago

That would be nice. I'll take a look into it when I come back to develop the geometry plugin further.

henriiquecampos commented 5 years ago

@nitaku do you need anything too specific? The Plugin made by Nathan is available on OpenRPG repo

Give me a heads up if you need any help with plugins, I will be glad to give you all a hand :grin:

nitaku commented 5 years ago

Thank you @henriiquecampos :) We currently have a working geometry plugin that fits our needs. It is currently lacking any kind of on-canvas editing, so we are stuck with inputting numbers in the editor for now.

This is what we have: A) Pure geometry nodes with no other functionality attached (i.e., no collisions nor graphics) B) Special shapes needed in our game (beveled rectangles, regular polygons, ellipses...) C) A buggy and repetitive boilerplate code we use in nodes that need to update whenever a child geometry node is modified

We could really use your help in fixing point C, or in adding on-canvas editing. There's a hope that our internal plugin would be of use for other people :D

nitaku commented 5 years ago

This is an example from the game, the outside wall of the arena is defined like this:

image

The yellow node defines the geometry with the following parameters: width, height, and bevel. The OutsideWall node makes use of the aforementioned boilerplate code to update itself whenever the geometry node is updated.

This works with the animation player as well! In this specific level, the outside wall is animated such that its corners shrink and grow. This is done by controlling the bevel parameter of the geometry via the animation player.

henriiquecampos commented 5 years ago

We currently have a working geometry plugin that fits our needs. It is currently lacking any kind of on-canvas editing, so we are stuck with inputting numbers in the editor for now.

Had you check my Geometry2D? It is a tool script that draws Shape2D using the built-in plugin that shows when we are editing shapes with the CollisionShape2D node. It is not meant for release/production, but it does helps in pre-preduction and design.

nitaku commented 5 years ago

Yeah, we considered using it, and definitely will use it for prototyping games! Great work :)

But in this game we needed more types of shapes, sometimes without collision, sometimes without graphics. So we created our plugin. It would be nice to add handles and such to control our shapes though.

nitaku commented 4 years ago

Currently out of scope.