Results 1 to 5 of 5
  1. #1
    HypeTrain is offline Member
    Join Date
    Oct 2015
    Posts
    2
    Rep Power
    0

    Default Creating a board for "Ticket to Ride". Need Guidance in approach.

    Hi guys,
    my group and me are working on a project called "Ticket to Ride" given by a university course.Ticket to Ride Legendary Asia DLC on Steam.

    We already have all the game logic, model, controller, communication libi(given to us) and server for the game. Now we are at the point to build the view component.

    We want to use javafx and before just falling into pitfalls(time is running out), i would like to get some advice on how to approach the design and what components of javafx are needed to fullfill this task.
    Here are some questions:
    main questions:
    1) Cities and tracks need to be selectable. Round buttons for Cities? How do i get curvy track "buttons"? Are Buttons even suitable for that task? If not, what do we need?
    2) The map can be different from game to game. So What containers should we use for that or do we need something else?( feel so clueless:( ).
    3)So the cities's and track's buttons can be in different locations from game to game. How to go about that, not calculation wise but what should we use from the javafx api?
    4)The Map could be even so big that we need a zoom in and out and move around on the map. So the map component needs to be that flexible. How do we achieve that?
    low priority:
    5) How to integrate animations properly and where? A Player is drawing a card. The card moves from the stack to the players card hand. How do we do stuff like that?

    I am not asking for very detailed answers, but what should we look into. What should we not use at all. Where will the problems be? What class structure or design pattern should we follow. Helpfull links would be great too. What concepts of javafx are essential to fulfill our task. We just need general guidance. Tutors are not a great help here.

    Every replay and advice is very appreciated. Thanks!


    p.s. English ist not my first language. Corrections regarding language errors are welcome too :)!
    Last edited by DarrylBurke; 10-02-2015 at 09:48 PM.

  2. #2
    trcooke is offline Tim Cooke
    Join Date
    Jul 2014
    Location
    Belfast
    Posts
    101
    Rep Power
    0

    Default Re: Creating a board for "Ticket to Ride". Need Guidance in approach.

    This is all very vague, probably because we don't know anything about the framework you have been given. I strongly recommend you take these questions to your project tutor(s).

  3. #3
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    5

    Default Re: Creating a board for "Ticket to Ride". Need Guidance in approach.

    Every programmer has its own personal preferences for these types of graphics development tasks. I could not open your link to the game - it seems to point to a localhost URL, but here is some general info:

    1. your different maps are most likely different scenes. If you want to switch scenes on your primary stage (aka "Window") you just set the stage's scene to the new scene with the method yourPrimaryStage.setScene(map1Scene). map1Scene then contains all the graphics info and the layout manager.

    2. for the graphical content in the scenes you have to add different nodes. Buttons can be nodes, but there is a variety of simple and complex shapes available in JavaFX. You can modify the layout of the buttons, but there are easier ways. I would look into creating SVGPath objects. There are a number of these graphics objects available on the net, but you can create them yourself with programs like inkscape. The svg objects are defined by a (vector) string that easily convert to a JavaFX object with the method mySvgPathInstance.setContent("yourvectorstringhere "). you can set stroke width, fill etc. with these objects and you can hook them up to a number of event listeners, for example all the different mouse listeners.

    Well, enjoy, sounds you guys will have a fun weekend.

  4. #4
    HypeTrain is offline Member
    Join Date
    Oct 2015
    Posts
    2
    Rep Power
    0

    Default Re: Creating a board for "Ticket to Ride". Need Guidance in approach.

    @benji2505 that's the kind of advice i was looking for. Thank you. I know @trcooke my post is vague but that is not suprising with the little knowledge i have in JavaFx. I simple can not be more exact, even if i would like too. Perhaps i worded my post wrong and i did not get my point across.
    In my experience it helps a lot to get going in a new field, if experienced people talk about some stuff that could be relevant for our task. Of course they have to take a guess based on my vague description, but it helps the unexperienced to at least have somewhat an overview or points you can bounce off and dig into.

    Nah, the weekend is not too hard. We have still more than a week left:). Already experimented a bit with JavaFx, looks quite powerfull.
    So i will come back for more detailed questions!:). Again, thanks.

    This link should work: Ticket to Ride on Steam
    Last edited by HypeTrain; 10-03-2015 at 04:05 PM.

  5. #5
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    5

    Default Re: Creating a board for "Ticket to Ride". Need Guidance in approach.

    Quote Originally Posted by HypeTrain View Post

    Nah, the weekend is not too hard.
    Since the weekend seems to be free , take a look at this:

    https://www.youtube.com/watch?v=ts_b2mBix3U

    the first half of the talk is a little dry but the second half is powerful advice. Also follow his link to jfxtras.org, you might get a lot of help there.

    For animation I would also check out the tutorials on youtube, you have to identify what precisely you are trying to do, there is so much stuff on there.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 08:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 03:06 PM
  3. setLabel(""); problem / Clear board
    By Big Bundy in forum New To Java
    Replies: 51
    Last Post: 04-16-2011, 02:34 AM
  4. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •