-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seerat/241 country flag selection #247
Conversation
5c7de7e
to
87c2ee2
Compare
"VE": "Venezuela, Bolivarian Republic of", | ||
"VG": "Virgin Islands, British", | ||
"VI": "Virgin Islands, U.S.", | ||
"VN": "Viet Nam", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never knew Vietnam was spelled like this 😩
server/game/game.go
Outdated
|
||
err := g.Arena.SpawnPlayer(id, spawn.Name) | ||
fmt.Println(spawn.Country) | ||
err := g.Arena.SpawnPlayer(id, spawn.Name, spawn.Country) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this print was for debugging, can you remove it? :)
@@ -38,6 +38,7 @@ type KeysPressed struct { | |||
type Player struct { | |||
Name string `json:"name"` | |||
ID string `json:"id"` | |||
Country string `json:"country"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 👍
Object.keys(countries).forEach((key) => { | ||
listOfCountries.push(<option value={countries[key]} key={key}>{countries[key]} {key.toUpperCase().replace(/./g, char => String.fromCodePoint(char.charCodeAt(0) + 127397))} </option>); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this very much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good work. Glad the emojis turned out to save us a lot of time and effort. Just that one comment about the debug print statement, otherwise feel free to merge this whenever you're ready!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
🎟️ Ticket(s): Closes #241
👷 Changes
🔦 Testing Instructions
Can test by pulling the branch changes and testing the dropdown as well as testing whether dying causes the country to persist.