Code Monkey home page Code Monkey logo

shape-of-mind's Introduction

Shape of Mind

Introduction

An ascii lyric animation.

Program plays the lyrics(ascii animation) of the song Shape of Mind by The Guilty Lenses. There are two entries to the program.

  • main.c TCP server that streams the ascii animation so that the telnet client can then connect and play on the terminal
  • main2.c plays the ascii animation promptly on the terminal

Motivation

Few things happened around begining of December:

  • Found out that my cousin had put out an amazing album. His debut release.
  • Had been playing with telnet, and came across this impressive telnet server that streamed Star Trek in ascii.
  • Played Thimbleweed Park; the story was clever and for the visuals it had beautiful pixel art.

Thus, it was decided: An ascii lyric video, which could be played by connecting telnet client.

Module Dependencies

Module Dependencies

GIF Example

GIF demo

How To TELNET

Host 35.232.192.197 port 4000. Considering you have a telnet client, try telnet 35.232.192.197 4000 on the terminal. Terminal size: 100 rows and 38 columns.

Building Locally

Currently, source may be compiled on POSIX compliant UNIX and UNIX like OS. There aren't no external dependency except for the CRT. Development was done in gcc (Ubuntu 7.5.0-3ubuntu1~18.04) compiler with x86_64-linux-gnu as target.

Set executable permission to build.sh shell script, then run it. Then:

  • Run ./build/main from the root of the project to run telnet server
  • Run ./build/main2 from the root of the project to promptly play the animation on terminal

TODO

  • Not a complete telnet implementation. For e.g. ignores option negotiation.
  • Have a platform layer so that the source be easily compiled across different platforms.
  • Not happy with interface of lib/session.c module.
  • Optimistic about network delays and other things for now, and might impact timing of lyric.

shape-of-mind's People

Contributors

zzxoto avatar

Watchers

James Cloos 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.