[HN Gopher] A bullet hell game written in bash
       ___________________________________________________________________
        
       A bullet hell game written in bash
        
       Author : taviso
       Score  : 50 points
       Date   : 2024-09-15 16:04 UTC (6 hours ago)
        
 (HTM) web link (twitter.com)
 (TXT) w3m dump (twitter.com)
        
       | forrestthewoods wrote:
       | Hideous, I hate-love it.
       | 
       | Has anyone made Doom in bash?
        
         | eep_social wrote:
         | I think Doom in ascii is the closest yet
         | https://github.com/wojciech-graj/doom-ascii
        
       | luma wrote:
       | Anyone got a link to the repo? Another twitter thread where most
       | of the detail is locked behind a login. Why anyone uses this
       | platform for publishing today is beyond me.
        
         | alwa wrote:
         | For the full thread,
         | https://xcancel.com/SomeUnusualGame/status/18349462126104005...
         | 
         | For the repo (as linked in that thread),
         | https://github.com/SomeUnusualGames/Tux-vs-Mutant-Window/
        
       | andybak wrote:
       | I swear this is a post title I saw the LLM that was trained on HN
       | archives come up with.
        
         | bitwize wrote:
         | It'd be peak hackernews (in a good way) if someone saw that AI
         | headline and thought, "Hey, I think I'll actually write that!"
        
       | nine_k wrote:
       | So, the game is written in bash much like AI stuff is written in
       | Python.
       | 
       | The heavy lifting is done by a native-code library, while the
       | bash code provides the glue and the overall control logic. (Much
       | like having heavy lifting done by PyTorch with Python code
       | providing general guidance.)
       | 
       | And this is completely fine, to my mind. Bash is _intended_ to be
       | a glue language orchestrating execution of native code. Usually
       | it starts processes, but here it interacts with a native-code
       | library.
       | 
       | See:
       | 
       | https://github.com/taviso/ctypes.sh/
       | 
       | https://github.com/raysan5/raylib
        
         | PaulHoule wrote:
         | That ctypes.sh makes me think of Microsoft Powershell which is
         | able to script COM objects much as Visual Basic. It's the moral
         | equivalent of ctypes, although ctypes is in the wild and wooly
         | world of C where there isn't any concept of memory safety,
         | garbage collection and all that, whereas COM provides an OO-
         | like API that looks horribly overengineered from the C world.
        
       ___________________________________________________________________
       (page generated 2024-09-15 23:00 UTC)