Giter Club home page Giter Club logo

15-466-f21-base4's Introduction

Gamestop Simulator

Author: Zi Wang, Wenlin Mao, Tianrun(Martin) Ke

Design: You are working at gamestop where people would come and sell cards, gaming consoles or action figures to you. Be cautious though because some people are lying. You need to find out the true value of these items and make profit for your store!

Text Drawing:

The text drawing pipeline is like this. The InitializeGlyaphMap will create all the 2d textures for all the ascii code from 32 to 127. And then, whenever we want to change text, SetText will regenerate the glyph position and info. Then in the DrawText, it will iterate through all the characters and calculate the positions, find the already saved texture_id and let opengl does the drawing.

Finite State Machine: This game is implemented using the Finite State Machine with all text rendering tasks defined as a state and all player action defined as edges. Based on the state the player currently located, different action will lead to different outcomes. The game is purely based on randomization, thus the player is able to meet various condition and need to think how to overcome them. The state will render text accordingly based on the randomized generated item type, item level, true price, NPC expect price, and NPC bid price. Different combination will create different challenge for player to resolve.

Screen Shot:

Screen Shot

How To Play:

Use mouse to click buttons to make decision. You can talk to 20 customers max. And your goal is to get $300 in profit.

Sources:

Pipeline inspiration: https://github.com/GenBrg/MarryPrincess
Dimbo font: https://www.dafont.com/dimbo.font?l[]=10&l[]=1
Pacifico font: https://fonts.google.com/specimen/Pacifico

Json loading:
Stackoverflow: https://stackoverflow.com/a/39975809
nlohmann's JSON Repository on GitHub: https://github.com/nlohmann/json

This game was built with NEST.

15-466-f21-base4's People

Contributors

ixchow avatar martinke71 avatar ziw261 avatar wenlinmao avatar jackajackalop 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.