Join us on Discord!
You can help CodeWalrus stay online by donating here.

[4x3 contest] Red! Green! Blue!

Started by LD Studios, April 29, 2015, 10:13:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LD Studios

My entry for the 4x3, not done yet, but pretty far along.

Lets see if you can tell what it is from the screenshot.



Strontium

Ooh, I think I know what it is!

Shall I tell the world?
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES

Unicorn

Grrrrrrrr. I cn't see it on my kindle. Could you link to the screenie?


Put it in a spoiler
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

LD Studios

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



Strontium

Gotta use the red, green, and blue pixels to get as close to the target color as possible :3
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES

Yuki

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.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Dream of Omnimaga

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?)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Strontium

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)
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Unicorn

tr1p1ea also wrote those libs right...
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Dream of Omnimaga

Yeah true and Iambian wrote some Celtic libraries IIRC.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Unicorn

I can't express how helpful those have become for me.  All my games would look like junk without them!
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

LD Studios

(let's not get too off topic on my contest thread...) :P



Ivoah

  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Powered by EzPortal