Giter VIP home page Giter VIP logo

diving's Introduction

Diving

This is a game that a diving enthusiast need to avoid obstacles in the water and try to dive deeper. In this game, you will play the role of diver and use the keyboard to control movement of the character. At the beginning of the game, the player begins diving and has full field of vision. There are some floating or swiming obstacles which the player requires to keep away from during the game. As the player dives deeper, the field of vision will become smaller, which is more dangerous. The game will fail if the player crashes into them. The player's maximum depth will be recorded.

Goals

  • Use the keyboard to control role's movement
  • Generate obstacles randomly
  • Adjust the field of vision according to depth
  • Display a scoreboard
  • Contain various obstacles over time
  • Adjust speed of the game

Install

git clone [email protected]:csx2hen/diving.git
cd diving
stack build
stack exec diving-exe

Libraries

  • brick
  • random
  • containers
  • System.IO
  • Graphics.Vty

Architecture

  • Controller: This component is used to deal with user input (keyboard input) transforming user’s input into character’s movement in the game.
  • Core: This component contains the main logic of the game, including moving the character according to the signal parsed by the controller, generating different kinds of obstacles, detecting collision. The state of this component will be demonstrated by UI in real time.
  • UI: The component is built in Brick, which is the interface for showing the game view, including the character, obstacles and borders.

Challenges

  • Time conflict. Most of our team menbers have several deadlines or interviews recently, so it's hard to find a time to work together. -> Try our best to find a time slot to discuss the function of each part and assign tasks to each menber. Then every menber can do individually.

Progress

  • Finished setting the initial project and environment.
  • Learning the Brick package, making some demo using that.
  • The current progress meets our expectation. We will put more time and effort into the project in the following days. The project can be expected to finish in time.

Team Members

diving's People

Contributors

r-light avatar csx2hen avatar wanke1997 avatar wyz17 avatar

Watchers

 avatar

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.