Jump to content


Jummit

Member Since 16 Mar 2017
Offline Last Active Jul 03 2019 06:52 PM
-----

Topics I've Started

Print paintings and hang them on your wall with CC-tweaked!

22 March 2019 - 11:34 AM

Posted Image
Just put a printed page into an item frame and rotate it how you want it. I made this in ten minutes.
Guess what it is!
Posted Image

How to keep things clean and print the error if a program crashes?

09 December 2018 - 09:21 AM

Normally if I wanted to get the error of a program if it crashes I would just use pcall, clear everything and print the error. But since I often make use of the window api things get messy sometimes.

My question is: How can I ensure that if the program crashes I
  • Have a completely black screen
  • Print the error in orange on the first line
  • Have the cursor (input prompt) on the second line

A Visual Game Engine

30 November 2018 - 11:52 AM

A visual game engine for ComputerCraft

Posted Image
This is a project I have been wanting to make for a long while. I think I have it at a state where I can show it here.

It is an Entity Component based engine, which means you create entities and attach components like a texture, a tilemap or a "controllable".

Installation:
pastebin run dkBfpv7L
It's also on Github.

Usage:
engine <game name>


Here is a small showcase video, just beware that there was no buffer implemented so there is a lot of flickering.

Printer overhaul

12 November 2018 - 09:15 AM

I think there are many suggestions regarding the printer, so I thought making a post containging all of them would be a good idea. Here are mine:
  • Add advanced printer that can print with multiple colors
  • Make printed pages placable on walls and floors
  • Make bundled printed pages seperatable again
  • Add printer function to automatically combine the last printed page with the new one, so the printer output isn't as flooded all the time.
  • Post your ideas below!

Use more grayscale!

05 November 2018 - 07:22 PM

I'm just going to put this here: Use more grayscale in your games/applications! We are no longer limited to the bright colors where you can only use one brown or one orange.
Here are a few advantages of grayscale:
Way higher image quality. Dithering makes it very easy to create gradients, and ever gray can be used to represent every color on the rainbow, and that's where the old palette really struggles: If you draw a trees the trunks and the canopies will always have the same color on all of them, as there are only a few greens and only one brown.

Characters can be used more easily as the colors are closer together. You could make a light blue # on a white cloud to create a texture, but that doesn't work with every color. In grayscale you can mix nearly every color and it always works.

Better look in general. Lets be real here, with computercraft's palette it can be very hard to achieve good looking results. The colors often clash and it looks very childish. With grayscale on the other hand, an amazing level of detail and quality can be made.

Lighting/rain/water effects! By using a buffer where you store every pixel on the screen it is very easy to create amazing looking shaders that create light, thunder, rain, water effects etc just by modifying the old color.

You can create anti aliasing for lines, rotating stuff, big text and more if you are really good.

Usefull in 3d applications, because if you have a green cube and want to rotate it, the only indication is the shape, where in grayscale you could use a different shade for every face and it would look more convincing.

These are just a few of the cool advantages of using grayscale. I ask everybody to switch over to grayscale!