sgimenez / laby

Learn programming, playing with ants and spider webs ;-)
https://sgimenez.github.io/laby/
Other
98 stars 39 forks source link

feat: add Dart mod #62

Open devhammed opened 4 years ago

devhammed commented 4 years ago

Kazam_screencast_00000 mp4

This pull request adds support for Dart.

sgimenez commented 4 years ago

I don't know much about Dart, but would it not be possible to have a main() function in the robot.dart file that calls start() and a laby_name_ant() that is defined in the skel file like it was done in C (and other languages)?

devhammed commented 4 years ago

@sgimenez I have updated the mod structure to match your specifications but it requires creating an empty program.dart file in the lib folder to bypass the Dart's compiler function is not defined: laby_name_ant error while developing.

Screenshot from 2020-05-13 15-50-14

PS: I still think my former structure is more compact because it does not require hacks.