You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[4x3 contest] Red! Green! Blue!

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

0
b/Contests publicado por u/LD Studios April 29, 2015, 10:13:07 PM
My entry for the 4x3, not done yet, but pretty far along.

Lets see if you can tell what it is from the screenshot.
Last Edit: April 30, 2015, 02:24:16 AM by LD Studios
Inicia sesión o crea una cuenta para dejar un comentario
u/Strontium April 29, 2015, 10:17:04 PM
Ooh, I think I know what it is!

Shall I tell the world?
u/Unicorn April 29, 2015, 10:17:47 PM
Grrrrrrrr. I cn't see it on my kindle. Could you link to the screenie?


Put it in a spoiler
u/LD Studios April 29, 2015, 10:18:19 PM
Quote from: Strontium on April 29, 2015, 10:17:04 PM
Ooh, I think I know what it is!

Shall I tell the world?
If you want, I think it's pretty clear though

Quote from: Unicorn on April 29, 2015, 10:17:47 PM
Grrrrrrrr. I cn't see it on my kindle. Could you link to the screenie?
https://img.ourl.ca/bloggif_554156907455f.gif
u/Strontium April 29, 2015, 10:19:05 PM
Gotta use the red, green, and blue pixels to get as close to the target color as possible :3
u/Yuki April 29, 2015, 10:38:49 PM
Quote from: Strontium on April 29, 2015, 10:19:05 PM
Gotta use the red, green, and blue pixels to get as close to the target color as possible :3
Looks like it, nice one.
u/Dream of Omnimaga April 30, 2015, 03:40:07 AM
Ooh, I think I know what it is. I assume you have to press enter as soon as the color contrast is identical to the final block?

You might want to remove the spaces between blocks, though :P (unless that's an emulator bug?)
u/Strontium April 30, 2015, 03:43:36 AM
I sent him a message about that. We were using the same method to get the block size right. Here is the code we use (I hope this small snippet is okay to share :P)

pixelW = platform.window:width()/4
pixelH = platform.window:height()/3


Of course, when drawn, with this code:
gc:fillRect(x*pixelW, y*pixelH, pixelW, pixelH) the weird decimals you get after dividing the width and height draw things oddly.

The solution? Round the values!
pixelW = math.ceil(platform.window:width()/4)
pixelH = math.ceil(platform.window:height()/3)
u/Dream of Omnimaga April 30, 2015, 03:52:35 AM
Keep in mind that you must not use other people's code, as the rules says, though. I guess one tiny routine is fine since, after all, we allow people to use Doors CSE8 BASIC libs, which were written by Kerm, but just making sure that people won't fill their game with other people's code. I am unsure if such entry would be disqualified, but if it wins then it's possible that the other person that provided code for you would win the prize and the contest instead of you. :P

I would also avoid posting code if I was you.
u/Unicorn April 30, 2015, 05:45:57 AM
tr1p1ea also wrote those libs right...
u/Dream of Omnimaga May 01, 2015, 05:11:27 AM
Yeah true and Iambian wrote some Celtic libraries IIRC.
u/Unicorn May 02, 2015, 05:20:51 PM
I can't express how helpful those have become for me.  All my games would look like junk without them!
u/Dream of Omnimaga May 02, 2015, 05:56:17 PM
On the 83+ we don't need them thankfully, due to faster screen refreshing and dual-layer ASCII support, but on the CSE ASCII just looks weird without color IMHO.
u/LD Studios May 03, 2015, 05:08:58 PM
(let's not get too off topic on my contest thread...) :P
u/Ivoah May 04, 2015, 01:51:14 PM
This looks great LD!
Start a Discussion

b/Contests

Sub-forum to discuss past, present and future CodeWalrus competitions and challenges.

64
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal