Git Product home page Git Product logo

gpt-scroller's Introduction

sh-gpt-scroller

This is a demo using Static Hermes to build a simple desktop GUI app based on DearImGUI.

sh-demo-screenshot.jpg

Originally, this repository contained a simple canvas JS game generated by ChatGPT. That original source can be found in the original-js branch. The original game is now one of several windows in the app.

There is a C++ and JS version of the same app, for performance comparison purposes (the JS version has an extra window, but it can be disabled). The C++ version has sound effects, which can be disabled either by using the appropriate build configuration flag or by setting the NOSOUND environment variable.

Building

You need CMake and Ninja (or Make) to build the C++ version.

You need a fork of Static Hermes to build the JS version (we made some changes in SH for this demo, that we are not sure that we want to land in the official branch). The fork can be found at https://github.com/tmikov/hermes/tree/sh-gpt-scroller.

There are no other dependencies.

C++ Version for macOS

mkdir build
cd build
cmake .. -G Ninja -DSOLOUD_BACKEND_COREAUDIO=ON -DSOLOUD_BACKEND_SDL2=OFF
ninja demo

JS Version for macOS

Assuming you have the forked Static Hermes checked out in $HERMES_SRC and built in $HERMES_BUILD:

mkdir build
cd build
cmake .. -G Ninja -DSOLOUD_BACKEND_COREAUDIO=ON -DSOLOUD_BACKEND_SDL2=OFF \
  -DHERMES_BUILD=$HERMES_BUILD -DHERMES_SRC=$HERMES_SRC
ninja jsdemo

gpt-scroller's People

Contributors

avp avatar neildhar avatar tmikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.