The comments plugin has a new feature that allows you to access the “stream” of comments as they are submitted to your comments box. So now you can “do stuff” on your page in response to comments that people make.

Title is (mostly) a joke, but it wouldn’t be toooo hard to create simple multiplayer games like chess or little point-and-click worlds that people can play on your page via the comments (just need to ignore invalid user moves/inputs based on the rules of the game you’re making).

I expect a few perchance devs to play around with some “mad science” along those lines, but for most people, probably the most useful thing here is that it allows you to completely customize the way comments are displayed. Including e.g. adding avatar pics to comments, changing the background image of every comment based on the keywords in it, making confetti fly across the page (for everyone) when someone says a secret/“easter egg” keyword, and so on.

Examples:

  • allo@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    on https://perchance.org/comments-plugin-oncomment-example it says: Ascendent Science: Make a point-and-click multiplayer adventure game. It would be technically possible - like tic-tac-toe and chess, but with more advanced "move"/"turn" validation rules. But currently we can only get the text of comments responsively, correct? We cannot ‘click a button to send a comment programmatically’? Nor can I set AI Princess Celestia as admin and have her banhammering people in the comments section? Also not that I am even suggesting anything, I was just curious because of the ‘Ascendent Science’. Love the potential in the upgrades these last few days. on behalf of all good beings thank you