deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
614 stars 152 forks source link

Need update dn.heaps.Controller #65

Closed kondr1 closed 3 years ago

kondr1 commented 3 years ago

I follow the tutorial on your site and notice you updated dn.heaps.Controller. This class was move to namespace dn.heaps.inputs, so this project does not assemble now =(

deepnight commented 3 years ago

Hi! I fixed it in c14566672e2a70fd5f827fa9c6c6da7b8b05f3bf :) Please note that the current master branch will soon be replaced by the new advancedBase branch, so you may want to give it a try.

AshtomGVA commented 2 years ago

Hello, sorry in advance if I misunderstood but I replaced dn.heaps.Controller with dn.heaps.input.Controller but I get the following error and I'm not sure what type to define: Not enough type parameters for dn.heaps.input.Controller

I tried several options, including

var ca : dn.heaps.input.Controller<en.MyGameActions>;

But then I get errors down the line in the new function on

ca = Main.ME.controller.createAccess("hero"); // creates an instance of controller

Error: dn.legacy.ControllerAccess should be dn.heaps.input.Controller

And now I'm quite confused.

deepnight commented 2 years ago

Hi, Sorry, the Controller class was completely reworked recently.

You can simply rename any occurrence of dn.heaps.Controller to dn.legacy.Controller to use the old version (the one explained in the tutorial).

I'll try to re-write these docs as soon as possible, but right now I'm a bit overwhelmed 😅

AshtomGVA commented 2 years ago

Thanks for the help and for taking the time.