GithubHelp home page GithubHelp logo

j4james / vtrex Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 23 KB

An implementation of the Chrome dinosaur game for VT terminals.

License: MIT License

CMake 1.50% C++ 98.50%
dinosaur-game terminal-game

vtrex's People

Contributors

j4james avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

vtrex's Issues

Test on real hardware

@al20878 @KalleOlaviNiemitalo I've built this game with the intention that it should be playable on a real DEC terminal, but I'm not positive that it will actually work. I know you both have terminals that meet the minimum requirements (VT420 or better), so I'm hoping you'd would be willing to give it a try when you have a chance, and let me know how it performs, before I make it public.

It uses macros to keep the bandwidth low (if my calculations are right, it averages around 900 bytes per second at the top speed), so that should be manageable at 9600 baud. However, it's possible these terminals may still not be able to execute the actual operations as fast as they're received.

So if you find the response is sluggish, you can try running it with a lower speed, e.g. vtrex --speed 1 will render at 1 frame a second (but hopefully it won't need to be that low). You can also try turning off sound effects with vtrex --mute if you find it lagging when a sound is played (typically when you jump, or when the score reaches a multiple of 100).

Btw, if you've never played this game before, you just press Space to jump, and that's all there is to it. You can press Esc at any time to exit.

I should also warn you that there'll likely be a significant pause at startup while it loads the font and macros. I'd estimate around 5 or 6 seconds at 9600 baud. So don't assume it's died if it takes a while to start.

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.