[HN Gopher] A (not so) small library for terminal based game dev...
       ___________________________________________________________________
        
       A (not so) small library for terminal based game development
        
       Author : mynjin
       Score  : 44 points
       Date   : 2024-07-23 13:59 UTC (9 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | blargwill wrote:
       | If you don't want people to use the internals, why not make them
       | `__private`?
       | 
       | Cool project!
        
         | FergusArgyll wrote:
         | > There is little protections against messing up with the
         | internal. This is on purpose, I want the kids to learn to use
         | the API not mess up with the internals of every single class.
        
           | setr wrote:
           | I don't understand the reasoning; you'd add protections if
           | you wanted them to learn to use the APIs. You'd remove them
           | if you wanted them to mess with the internals of each class.
        
             | ncphillips wrote:
             | They want people to learn not to mess things up. You learn
             | not to mess up by trying things out and messing up.
        
               | andrewflnr wrote:
               | That's a bad strategy. The reason people are tempted to
               | mess with internals is that it works most of the time.
               | Unless the library has some way of punishing people who
               | use them, then they'll just do it without regard for, as
               | far as they're concerned, arbitrary toothless
               | restrictions. Sure, some stuff will break, but that's
               | true even if they're respecting the API boundary too,
               | especially for a beginner. There will be zero learning
               | about API boundaries in particular.
        
           | jon-wood wrote:
           | "I left this shotgun here, kids need to learn that shooting
           | yourself in the foot really hurts."
        
             | lofenfew wrote:
             | This is parenting 101 for anything non-permanent. For a
             | piece of software it's basically common sense.
        
       | troymc wrote:
       | If pygamelib interests you, you might also be interested in
       | Pyxel:
       | 
       | https://github.com/kitao/pyxel
        
       | k1ns wrote:
       | I love ASCII/terminal games. The creativity involved with
       | creating a graphical game in something that was only ever meant
       | to display lines of text is super interesting to experience for
       | yourself. This project far surpasses my own personal library for
       | terminal games, well done.
        
       | 0x0203 wrote:
       | There are also a handful of 3d terminal/ASCII engines out there
       | like this one: https://github.com/sephirot47/AsciiEngine
       | 
       | Arguably less useful than something like pygamelib, but still
       | pretty fun.
        
       ___________________________________________________________________
       (page generated 2024-07-23 23:07 UTC)