pjsavola / formulad

Java implementation of Formula D board game
12 stars 1 forks source link

is there any possibility to create 2 path track? #5

Open KujawskiSzymon opened 2 months ago

KujawskiSzymon commented 2 months ago

hongkong minikart SaintTropez2lanes

Not really an issue but I could not reach on linked in or other medias Ive tried to create minikart.png but looks like the editor dont let you create 2 path tracks only

pjsavola commented 2 months ago

2 lane tracks do not seem to be supported currently. When I was working on this project I only had 3-lane and 4-lane tracks so I didn't add any other options.

But some of the tracks I've created did have 3-lane finish line but 2 lanes elsewhere and that might actually already work using block nodes, because the check which requires either 3 or 4 lanes is done for the finish line only.

It might be quite easily possible to add support for 2-lane finish line by modifying TrackData.processFinishLine method. It would likely require similar if-statement as 4-lane finish line.

KujawskiSzymon commented 2 months ago

I can try to code it, could you also tell me how does rain works? image What I should write in those two to make rain? On my whole playing I only once had rain but I don't know how can i make it more common : image

I thought its 0-20 where 0 is no rain and 1-20 is like throwing the dice

pjsavola commented 2 months ago

I don't think I used weather rules of the board game, actually. In this game rain is implemented so that you can define probability 0-100 for a track and then based on this probability the game randomizes dry and wet conditions and gives weather forecast for them so you can see current weather and forecast for next few rounds.

So probability 100 means it will always rain. Probability 0 means it will never rain and otherwise it happens randomly based on random motion defined in Weather.java