This is a tech demo demonstrating a stock market terminal. This is a best-practice tech demo, not a game played for enjoyment.
The game-play features a buy button, a sell button, accounting balances, a candlestick chart, and a volume chart.
The Architecture is MVVM (Model-View-ViewModel). Required framework code resides in the Framework folder. This code is minimal (under 100 lines for the observable library), and is game agnostic.
- Press / Hold the Buy Button
- Press / Hold the Sell Button
- Observe things move
Initialization script. Wires dependent services for the scene.
Business Logic Layer. Logic is hidden behind the IStockService facade, because the implementation is designed to be swapped out.
Binding / data source for the views. All visual elements connect to this script.
Responsible for displaying parts of the UI. All connect to the StockViewModel as a datasource. Designed to be reused (ViewModel agnostic).
graph LR
A[Stock Service]
A -- Query--> C(View Model)
C -- Observables --> D{Views}
D --Observables --> C
C --Commands--> A