Giter VIP home page Giter VIP logo

project-labyrinth's Introduction

Project Labyrinth

A pair programming project by Anna Lindgren and Caroline Byström. A text-based adventure inspired by early command-line games.

The app has been generated using create-react-app. And uses the following npm packages that are not included in the create-react-app:

  • styled-components
  • react-redux
  • reduxjs/toolkit
  • nes.css
  • styled-loaders-react

The focus of this week was to learn:

  • How to make API calls around Redux using thunks
  • How to structure the redux store to suit the data
  • To send JSON in the body of a request

Reflections

We enjoyed the thematics of this week figuring out a proper design for the project whilst learning more about asynchronous Redux and keeping the history of previous data in Redux store.

We started out by building the logic, then moved onto implementing saving data in Redux store and making a loading state to display a spinner. After we had all the data in place, being able to map it out we wanted to implement a end screen to show weather the game was finnished or not.

When we where happy with the results we started with the styling. We decided to go with nes.css package and it was quite simple to style. Even though at sometimes we felt a little bit locked in with little room to change minor details of nes.css buttons etc.

We styled both with regular css file and with styled components for the elements that where not nes.css styling.

The collaboration was mostly programming together, but we also tried out making separate branches after we had established a common ground to be able to work on different components at the same time. This saved us time to focus on additional features to add to our game. At the same time it was important to us that both of us was onboard and understood everything we where doing. We where both very good at having mini stand-ups when we worked on seperate branches.

If we had more time it would be great to inform a first time player that their username of choice must be unique by recieving some kind of message from the backend. We would also persist redux store to localStorage, so the app data remains upon reloading the page. If more time it would also be interesting to dive in to nes.css package for styled components. It felt a little bit messy to combine regular css and styled components.

Play it here 😊

https://labyrinth-by-caroline-anna.netlify.app/

project-labyrinth's People

Contributors

frivridna avatar emolsz avatar dependabot[bot] avatar puj avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

Forkers

magicvilla

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.