willnationsdev / godot-data-structures

A Godot Engine plugin for new script-accessible data structures.
MIT License
2 stars 1 forks source link

Array2D proposal or Grid Data Structure #1

Closed lainv0hndyrec closed 5 years ago

lainv0hndyrec commented 7 years ago

hi, i would like to propose the addition of 2D Array as an Object just like Array is

if it will be an Object in Godot, here are some of its functions that i would like to propose

i do understand that some of these can be done via code or using sort_custom of Array Object but a little bit of QoL improvements wouldn't hurt Godot. here are just some. really love Godot and this is what i think it lacks (as well as Batching)

willnationsdev commented 7 years ago

Great. I'm loving the idea (have been wanting to have a nice, generalized, and extensible 2D array myself.. Here are some suggestions:

Note that I'm actually rather inexperienced with owning the repositories that people use to update things with, so bear with me. I believe that the work-in-progress content probably shouldn't be in the host repo, so you might want to fork the godot-data-structures repository and then use that location for the main development of this project. I'm busy spending my days on some other plugins at the moment, so I can't just implement the whole thing myself.

Are you familiar with GDNative and/or C++ at all?

lainv0hndyrec commented 7 years ago

hi sorry for the super late reply, just got homd from a "no technology" vacation

unfortunatly im am unexperienced with GD native nor C++, i tried to learn C++ back in my HS days and pretty much forgot every aspect of it.

but i do have C# experience.

i really like everything youve posted and i do agree that we cant instantiate the Array2D as just [].

btw before i used Godot, i used GameMaker Studio and they have this Grid Data Structure.

here is the like:

https://docs.yoyogames.com/source/dadiospice/002_reference/data%20structures/ds%20grids/index.html

almost all functionalityis pretty spot on in here.

having it as an extend from Reference makes much more sense and havinv it in godot will be super great.

btw ill try to learn GD native and learn the ropes from tutorials.

also just a side note i created a project that uses Array2D for collision checks and it was faster than using the engines collision checks. the only downside is that it needs all collisions shape to be the same or divisible by the smallest collision shape.

willnationsdev commented 5 years ago

I think this repository is more or less obsolete since I've started creating non-Node types in my godot-next repository. In fact, there is already an Array2D implementation over there. I'm probably just going to delete this entire repository.