Compiler can't find method setCellValueEx(...) , even though i implemented its class !!!
Resolved
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
Lisa L
22 April, 19:19solution
setCellValueEx != setCellValueEX
and cause you comment 'why 75?'...
https://codegym.cc/groups/posts/138-games-section-on-codegym-game-engine
+2
Sakka Mouid
23 April, 00:32
Hi Lisa ! Thank you for your fast helpful answers :) . This the first game i try to develop . I'm new to this and the thing here , we are using a codegym engine called Game . So my question is : functions such as setCellValueEx () and setCellColor() are they only in this codegym package available ? For example , if a create a project in Intellij, which is independent from the CodeGym Plugin (not using it), should i download another Plugin ? and in this case , should i use completely different methods ?
+1
Lisa L
23 April, 07:33
Because learning can be tedious from time to time (hihihi) CG wanted to enable the learners to code more interesting things with their still relatively small possibilities. And there we are already at the core of the matter: GUI. Actually GUI programming is not sooo hard but you use more advanced programming techniques here. You don't have to understand them to use GUI frameworks, but it's helpful. In addition, a relatively large amount of administrative code has to be written. In the end, there would be a lot of explanations that cannot be understood and distracts from the main topic: Java syntax and core.
That's probably why CG wrote the Game (class) engine.
Later you can look at these GUI frameworks yourself and don't need a CG game library anymore. You just write yourself what you need. No problem for a coder ;)
A colleague here did exactly that just a few days ago and published his code on Github. Check it out, I think the two games are awesome.
As info. CG uses JavaFX for the Game class. The few times you use GUI here in the course it is Swing (afair in 4 projects). The colleague mentioned above also uses Swing.
+1
Sakka Mouid
12 May, 16:49
Noch eine Frage : Warum haben wir nicht einfach die AWT Klasse benutzt ? Das wäre besser . um die Klasse kennenzulernen und um mit etwas allgemeiner zu arbeiten , das alle Programmierer kennen , und nicht ein GC Game class Engine. .
0
Lisa L
12 May, 17:08useful
Die game engine ist JavaFX und nicht AWT/ Swing. Davon abgesehen ist GUI Programmierung in Java keine Kleinigkeit. Ich würde sagen, du solltest schon mit dem Kurs irgendwo in der Mitte vom Multithreading Quest angekommen sein (innere Klassen und anonyme Klassen), um da überhaupt etwas verstehen zu können. Außerdem unterschätzt du den Umfang dieser Grafikbibliotheken. Die sind abartig umfangreich. Da fängst du an was zu suchen und bist verloren. Der echte Wahnsinn.
Dagegen sollten die Games hier motivieren und eben nicht abschrecken, also wohl insbesondere auch von gerade hinzugekommenen Lernwilligen nachprogrammiert werden können. So ab Level 5 habe ich in Erinnerung sind die gedacht. Da ist es wohl einfacher, eine setCellValueEx() Methode aufzurufen als sich erstmal ein paar Stunden durch verwirrende Klassen zu kämpfen, deren Zusammenhang man zu diesem Zeitpunkt überhaupt nicht verstehen kann.
+1