yiotro / Antiyoy

A source code of android game called 'antiyoy'.
421 stars 53 forks source link

Project Setup Error #89

Closed NazarDoeH closed 3 years ago

NazarDoeH commented 3 years ago

HI I want to modify the game

but i have a problem running it one of the problems is the code for android (which I commented on) and the other is this:

error: YioGdxGame is not abstract and does not override abstract method scrolled(float,float) in InputProcessor public class YioGdxGame extends ApplicationAdapter implements InputProcessor { ^

error: method does not override or implement a method from a supertype @Override ^

yiotro commented 3 years ago

Hi.

Please provide a screenshot of the problem, maybe I will be able to help.

Also, were you able to successfully compile sample libgdx project? (the one generated by gdx setup tool)

NazarDoeH commented 3 years ago

1) image image 2)yes it compiled and launched without problems. Hi ))

Arkanosis commented 3 years ago

It looks like your version of libgdx is more recent than the one used by @yiotro . The prototype of scrolled has changed in https://github.com/libgdx/libgdx/commit/432df1b58ab2d3fd5ce7d2892f663b8e1eac6f5e#diff-b30936e4220582acb1c05b729fb20cbf1d4c593dea354b6f97d539f942d9fc7e (that's between 1.9.11 and 1.9.12). The backward-compatibility breaking nature of this change has been acknowledged in https://github.com/libgdx/libgdx/pull/6154 .

NazarDoeH commented 3 years ago

hmmm and how to change the version?

subchannel13 commented 3 years ago

It should be an entry in core/core.iml but I see a hardcoded path to libgdx JAR there. Chances are you don't have an exact path on your machine, did compilation complain before?

And now I know dev's first name :)

NazarDoeH commented 3 years ago

did compilation complain before? Blank ̶p̶̶̶r̶̶̶o̶̶̶j̶̶̶e̶̶̶c̶̶̶t̶̶̶ ̶̶̶s̶̶̶t̶̶̶a̶̶̶r̶̶̶t̶̶̶e̶̶̶d̶̶̶ ̶̶̶w̶̶̶i̶̶̶t̶̶̶h̶̶̶o̶̶̶u̶̶̶t̶̶̶ ̶̶̶p̶̶̶r̶̶̶o̶̶̶b̶̶̶l̶̶̶e̶̶̶m̶̶̶s̶ PS. There is a couple of warnings dev's first name?

subchannel13 commented 3 years ago

When you cloned or downloaded this game source code and tried to compile it, was there a complaint about missing libgdx JAR file? I don't understand Gradle scripts very well (or almost at all) but only place where I see libgdx referenced is in core\core.iml file, with the absolute path on dev's machine, containing dev's user name.

NazarDoeH commented 3 years ago

It works. But I installed jdk 13 and gdx 1.9.11. Of course there are problems in the code but I just commented on them. PS. to repair textures just run AtlasTextureCreator.jar which is in the assets\field_elements folder. image