Hi,
I’m trying to create a solo game, it is the first time i’m making a “solo game” contribution.
I’m following this documentation : Coding Games and Programming Challenges to Code Better
First i want to say that the given skeleton in the documentation is made for multiplayer game, not solo game. Maybe CG could give another skeleton for solo games ?
I’m studying the example (fishy adventures) but i think it’s too light, so i’ve just downloaded an other contribution from CG’s puzzles. I won’t criticise the example, since i’m just beginning to watch it, but there is something i didn’t find : where do we write the statement for a solo game ? I saw that the optimisation puzzle “block the spreading fire” is traducted in french, is it possible to do the statement in english and in french for solo games too ?
Thank you in advance for your answers, i think i’ll have a lot of questions to ask.
(and sorry for the english mistakes).
Hello,
as the author of 2048: there are some extra twists in it, which you probably don’t need (if you watch the full replay, it can take you over an hour - you need some javascript to fit that into the 1MB limit).
For a more basic example I suggest Sokoban. It uses the common things like Group, Sprite, SpriteAnimation which you will probably need, but nothing too fancy.
Of course there are many more to look into, most of which are open source.
If you start from something else than the official skeleton, make sure to insert the most recent SDK version in pom.xml.
When i ran the example it started without asking question, but when i run the skeleton, i have to choose something. Do you know what is the good choice ? I tryed the two first.
Why does gameManager.getPlayer().getOutputs() return a List(String) instead of String ?
Does the player can enter several lines in one turn ?
I can’t launch the game so i can’t verify by myself.
Ok thank you, i didn’t know it was possible to configure the number of lines.
I saw this function in Player class but i didn’t understand it was for that.
Any idea for my other question above ? about how to launch the application in eclipse.
I have no idea sorry, I use IntelliJ and it works pretty well for cg sdk, it downloads all the required dependencies and all you need to do is run the SkeletonMain.java.
On the projects I worked on, mvn clean install (so I guess it’s your Maven clean, followed by Maven install) would usually clean up the previous target then install all the dependencies and build the project. Then you might be run the Java Application after all dependencies are resolved.
Actually it was not necessary to install dependencies, i had to do the good choice after “java application” (the Main class). I didn’t see it before, because of the lots of possible choices.
Now i’m not stuck anymore … (until the next question lol)
I dowloaded another contribution (2048, optim), and when i launch it the export works … so it is not a problem with the browser. I’m checking every file to see what can be the difference, but i see nothing.
check with euler or someone else on the discord, it’s past Old Man Euler’s bedtime now but if you tag him he’ll see it tomorrow. Or put it in the game_puzzle_creation thread
my skill : reading obscure java message to undestand strange and unrelated error message (seriously ‘400 Bad Request’ why not ‘1515 Taco not edible’ ?)