This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
blunty666's profile picture

[Game][Screensaver] Where Is Dan?

Started by blunty666, 29 June 2018 - 04:57 PM
blunty666 #1
Posted 29 June 2018 - 06:57 PM
Presenting…

–===== Where Is Dan? =====–


I got bored, made a screensaver, turned it into an interactive screensaver. Click the green button, get an update on Dan's location (currently unknown).

Just a creative way to vent some frustration…

Install instructions: pastebin run J8azvLQg WhereIsDan
(Saves a file called WhereIsDan, start with no arguments to run the screensaver)

Code can be found on GitHub

Made using CCEmuX, it's really good, go check it out

SquidDev #2
Posted 29 June 2018 - 07:29 PM
This is neat! Just a couple of small suggestions, which I think would make it a wee bit better:
  • I wonder if it'd be worth it'd be worth caching the HTTP request, so it's only made on the first button press. Subsequent presses could then just sleep for a random delay before displaying it. It might be cool to display some TV static or something between pressing and displaying, but I've no clue if that would looks visually appealing.
  • You don't currently handle terminate events. I didn't really think to press backspace, so I didn't know how else to get out of it. Maybe also add another couple of quit keybindings, like "q"?
  • This is a bit of a long shot, but I wonder if you could do something with the teletext characters to give the pipes more depth? Maybe by messing around with palettes you could make the bottom third darker than the top?

Made using CCEmuX, it's really good, go check it out
<3.
blunty666 #3
Posted 29 June 2018 - 08:50 PM
  • I wonder if it'd be worth it'd be worth caching the HTTP request, so it's only made on the first button press. Subsequent presses could then just sleep for a random delay before displaying it. It might be cool to display some TV static or something between pressing and displaying, but I've no clue if that would looks visually appealing.
  • You don't currently handle terminate events. I didn't really think to press backspace, so I didn't know how else to get out of it. Maybe also add another couple of quit keybindings, like "q"?
Done! It now caches the HTTP request for 5 mins after which it will request it again. There's a shiny new progress bar and instructions on how to quit.

Might have a look at making the pipes a bit fancier, I've not really done anything with the new palettes so would be good to play around with them a bit.

Edit: Almost forgot.. you'll need to run 'pastebin run J8azvLQg WhereIsDan true' to overwrite the old file
Edited on 29 June 2018 - 06:51 PM