Skip to content

Conversation

@EmmaEngvall
Copy link

No description provided.

Copy link

@Alexander-Gabor Alexander-Gabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We thoroughly enjoyed and were immensely entertained by the eye-pleasing theme that you chose. The lotties are used in a great way but perhaps it's better to use ones that take less time to load and lighter to display. We noticed some took more time than others to show, and maybe it's a good idea to test them during deployment.

Overall you did a great job and showed a good understanding of the Redux requirements for this week.

<SpaceBackground />
<StartScreen />
</Provider>
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We took notice of the neat organization of the components and keeping the App.js readable and concise.

import GameScreen from './GameScreen';
import Loading from './Loading';
import GameScreenLotties from './GameScreenLotties';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Engaging use of the lotties, fitting of the theme and leading the user what to expect. We think using the lotties in more than one place made it super pleasing to the eye.


// save the username to global state
dispatch(labyrinth.actions.setUserName(userNameInputValue));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Global state was a wise choice for the user name, and excellent comments that made us understand the thinking and coding swiftly.

export default labyrinth;

// a thunk to handle api call.
export const getLabyrinth = () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good display of thunk understanding.

},
setUserName: (state, action) => {
state.username = action.payload
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code below would allow the project to work even when using same user name without bugs.

setUserName: (store, action) => {
      store.username = `${new Date().getTime()} ${action.payload}`

dispatch(labyrinth.actions.setCoordinates(gameData.coordinates))
dispatch(labyrinth.actions.setDescription(gameData.description))
dispatch(labyrinth.actions.setActionOption(gameData.actions))
setTimeout(() => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not sure and curious about the reasoning behind having these 3 dispatch actions here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants