#-
1 messages · Page 1 of 1 (latest)
In which regards? Where are you stuck code wise?
You could entirely code it in a canvas
a Canvas
you can freely draw on a canvas
do what ?
do you have a canvas ?
Then add one
it's a component, like a button
check the doc, it exists for a reason
Please read the doc
Before asking
if you still don't understand
sure ask
declaration: module: javafx.graphics, package: javafx.scene.canvas, class: Canvas
It looks like you haven't really checked out the documentation yet, I'd start there.
Also please remain polite to helpers.
Like I said, you can freely draw on it
So it's simpler for a game where you can draw sprites, and then add hitbox detection to what you want to move
Alternatively, you could simply not use a canvas
and use regular javafx components
so you draw the board on the background
and you create javafx rectangle with the image of a piece and you let the user control it
so that's two ways to do things
using a canvas is much more complex but you have total freedom
And for that, you pretty much not want scenebuilder
well
you can still use it
but most of the components you will add, you will add them outside of scenebuilder
@fierce bobcat
Your question has been closed due to inactivity.
If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.
Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.
When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.
Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.
With enough info, someone knows the answer for sure 👍
@fierce bobcat kindly do not delete all posts in a thread, topics get archived and the content might be helpful for others.