Giter Club home page Giter Club logo

Comments (5)

Farfi55 avatar Farfi55 commented on June 2, 2024

Hi @ggofthejungle, I can for sure help you out with any question you have about the project. We can discuss it via issues if you want, or even jumping on a discord call is fine by me.

I've never head of this version of Risk, so I'll have to read about the rules of the game to better understand it.

Checking out your Trello board, I've got a rough idea of the things needed to be done in this early stage, and they seem reasonable, so I'll be happy to explain the codebase and maybe also contribute to your project.

from riskasp.

ggofthejungle avatar ggofthejungle commented on June 2, 2024

Awesome. What do you think of first using playfab for this to be played online since current game is hotseat. I started working on a login page that would need to then link to a lobby scene where people can join

Full rules of the game are here https://cdn.1j1ju.com/medias/9d/11/22-risk-2210-ad-rulebook.pdf

from riskasp.

Farfi55 avatar Farfi55 commented on June 2, 2024

Sadly I have no experience with multiplayer games, so I don't know wich muktiplayer framework to suggest.
I'd personally focus on the core mechanics of the game first and then extend them to support multiplayer, of course you can approach it how you prefer.

Let me know if you want any clarification on the existing code or how to extend it for your needs

from riskasp.

ggofthejungle avatar ggofthejungle commented on June 2, 2024

What do I need to do to add the new territories? I have the .svg file for the 2210 version. Other than declaring them, how do I make sure of the connections between them are correct?

from riskasp.

Farfi55 avatar Farfi55 commented on June 2, 2024

For territories take a look at the territory script, it has a list of the adjacent territories, the continent it is in and other usefull information like the player who currently owns it and the troops on it.

To create new territories I suggest using the prefab in 'Assets/Prefab/Territory' which has the structure already set up, drag it in the scene and give it a name, assign the right graphic sprite (not sure how it works with .svg), and generally fill out all the fields like continent ecc...
To fix the Collider not updating with the sprite change you can right-click on the Polygon COllider 2d component and click Reset.

As for the connections, it's a bit tedious, you have to drag the territories into the list of neighbours inside the territory script

riskasp_neighbours

You also need to add neighbours twice, let's say there is a connection between iceland and greenland, you would have to add a connection going from iceland -> greenland and greenland -> iceland.

There used to be a helper function that (if you followed a naming convention) would set up the territory automatically. It's commented out right now, but it shouldn't take long to set up again, and would probably save you a lot of time setting up things.

To make sure the connection are correct there is another helper method which at the start of the game checks for errors like a territory not having connections or having a connection that is a one-way. Other than that, there are visual line indicators when you select a territory which shows you what is connected to that territory.

Hope this helps.

from riskasp.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.