Sophie,
@Sophie@dice.camp avatar

You can paste #picotron sprites into the code editor to get illustrated code comments!

(and edit the line if you want to see the pod data for the bitmap)

super neat!

Ronflaix,
@Ronflaix@mastodon.gamedev.place avatar

@Sophie Yeah, I wish it wouldn't break block comment if inserted into them!

Sophie,
@Sophie@dice.camp avatar

@Ronflaix looks like it is doable so long as there's no whitespace ahead on the image line

Ronflaix,
@Ronflaix@mastodon.gamedev.place avatar

@Sophie Oh, weird. Can you run the code without a syntax error with that? Last time I tried I had one because the block comment was ended prematurely due to the image's header

Sophie,
@Sophie@dice.camp avatar

@Ronflaix oh you're right, if I actually try to run that code it chokes. No block comment images for now I guess :(

Ronflaix,
@Ronflaix@mastodon.gamedev.place avatar

@Sophie Also, given that the userdata is left as it uncommented, the function will be called during execution. It might be a good idea to poke a certain Zep to ask him for a comment-compatible alternative!

Imagine all those 3D math libraries with pictures annotating the code! Or bundling Math formulas rendered with LaTex or a cousin! :O

Sophie,
@Sophie@dice.camp avatar

@Ronflaix ooh that would be cool!

poke @zep
(I'm sure you're busy, just something to maybe note!)

zep,
@zep@mastodon.social avatar

@Sophie @Ronflaix So I almost tried for nested --[[]] commented for that reason, but it was such a can of worms, I /removed/ them from PICO-8 ._.

But for images in comments, Lua provides a cleaner but harder-to-know-about mechanism for nesting comments:

--[=[
--[[pod...]]
]=]

Works as long as the number of ='s match (can be any number of ='s)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • osvaldo12
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • JUstTest
  • everett
  • ethstaker
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines