Author Topic: Short Intro Challenge!  (Read 10044 times)

0 Members and 1 Guest are viewing this topic.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Short Intro Challenge!
« on: June 10, 2006 »
Here's a very short challenge, it's open to all languages.
Please only post your own code, here's the idea.
Make a short intro using no more than 20 lines of code.
No colons allowed in lines.
You can add comments to your listing, comments do not count towards your 20 lines.

The challenge will be open for two weeks and the winner will then be voted for by members of the forum.
The winner will receive a choice of either a Karma boost of +10 or a post boost of +500  O0

for an explanation of the post boost, please see the forthcoming topic in announcements!

Rules are;

You can include external gfx / music if you want.
If you include external gfx in data format, it will count towards your 20 lines.
If you do not post the source to your intro, your prod won't be voted on.
Please also post an exe of your work if possible.
You can attach the exe to the post if it's small enough (under 250kb zipped).
Only your own code is allowed.
Any language is allowed.
Please do not post entries in this thread, only questions on the comp to be posted here.
Please create a new topic for each entry you post.
2 entries per person are permitted.
Good luck!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: Short Intro Challenge!
« Reply #1 on: June 10, 2006 »
I like the sound of this in some respects but 20 lines in some languages wouldnt be enought to do much, as an example here's the code to the basic tinyptc static test in C.
Code: [Select]
#include "tinyptc.h"

#define WIDTH 640
#define HEIGHT 480
#define SIZE WIDTH*HEIGHT
   
static int noise;
static int carry;
static int index;
static int seed = 0x12345;
static int pixel[SIZE];

int main()
{
    if (!ptc_open("Tiny PTC static test",WIDTH,HEIGHT)) return 1;
    while (1)
    {
        for (index=0; index<SIZE; index++)
        {
            noise = seed;
            noise >>= 3;
            noise ^= seed;
            carry = noise & 1;
            noise >>= 1;
            seed >>= 1;
            seed |= (carry << 30);
            noise &= 0xFF;
            pixel[index] = (noise<<16) | (noise<<8) | noise;
        }
        ptc_update(pixel);
    }
}

As you can see it's more than 20 lines and doesnt really do anything. I would expect it would be similiar in assembler, difficult to do much in 20lines.  Perhaps a better way would be to restrict the size of the source code file since all languages store that as text ?

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #2 on: June 10, 2006 »
Use another language if you can't fit it into C.  :)
Maybe We'll do one in the future with a restricted source file size.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Short Intro Challenge!
« Reply #3 on: June 10, 2006 »
Yep, that kind of challenge is suitable for basic languages (Blitz and FB), commands like "drawimage, plot, pset", etc , just make your life easy. But since people here know about those two languanges, there's no problems at all.

Well, I will start code something right now !


 :cheers:
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #4 on: June 11, 2006 »
Kewl :)
I'll do something in a minute too.
Going to see if I can fit some sort of starfield into 20 lines.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Optimus

  • DBF Aficionado
  • ******
  • Posts: 2456
  • Karma: 128
    • View Profile
    • Optimouse Demo Site
Re: Short Intro Challenge!
« Reply #5 on: June 11, 2006 »
I never liked line sized competitions. I have more motivation for byte sized competitions (asm intros and stuff) and I can understand also why some friends are not motivated with such things. I remember once I've read about a 7 line effect competition in quickbasic and made some blobs for it but I didn't read or understand about semicolon so my entry was rejected. Then I thought "Wtf? How can you do something in 7 lines without semicolons?". Then I've seen the entries and there were impressive stuff there with wild tricks of obfurscated code. I would never be motivated to write such a thing. Though, now the lines are 20 and the entries here are not obfuscrated enough, so I am thinking to try something more regular.

But I believe you can do a lot in 20 lines though I am bored to write such kind of code. I think there was something like..
e.g. command1: command2: command3 with semicolons
and people were doing something with dummy if's to fit this in many lines, like if something then command1 else command2... I really don't remember. They did various such tricks, I can't make it out, they changed the i or something, to go to the next command in one line. I don't rembere relaly..

But I have something in mind, though I am going to write maybe regular code. Hmm,. some selfgenerated texture at the same code of line where a mapping routine is running or something. I start now and end in 10 minutes because I have to go meet some friend in the cafeteria ;)

There was also a site with obfuscrated C code (maybe you can do more tricks in C for that, because it's syntax offers more space for obfurscation, you can increase a variable and do other math inside for while looping, more wild things that makes me dizzy) where they make whole raytracing and the code is also ASCII art at the same time!!! Where was that page again, I'll search and find..
Challenge Trophies Won:

Offline Optimus

  • DBF Aficionado
  • ******
  • Posts: 2456
  • Karma: 128
    • View Profile
    • Optimouse Demo Site
Re: Short Intro Challenge!
« Reply #6 on: June 11, 2006 »
I guess I didn't managed to finish my entry and I am already too late with my friend. I may do something at night..
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #7 on: June 11, 2006 »
Good luck Optimus :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Tetra

  • DBF Aficionado
  • ******
  • Posts: 2532
  • Karma: 83
  • Pirate Monkey!
    • View Profile
Re: Short Intro Challenge!
« Reply #8 on: June 11, 2006 »
At first I thought 20 lines  :o ??? ??? ???

But it turned out to be a pretty cool challenge, Nice one Shockwave  O0
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #9 on: June 11, 2006 »
Relsoft gave me the idea :)
Actually, in the rules it says that you can post only two.
Post as many as you like but you'll need to choose your best two at the end for judging :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Short Intro Challenge!
« Reply #10 on: June 13, 2006 »
I like the format of splitting the entries up, a cool thing to do from now on.
I'll have a look at all the lovely new tit bits after my MIR scan tommorrow.

Good luck and congrats everyone.
Cheers,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #11 on: June 13, 2006 »
At least it will be something nice to look forward to after your scan Clyde, some of the entries are unbelievable.
Hope that the scan goes ok mate.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Short Intro Challenge!
« Reply #12 on: June 16, 2006 »
Righty, let me check out some more of these. Btw, some of them don't work for me in FBIDE.
The Xorthing one and the rels xor tunnel.

Cant wait to try them out.
Nice one all.

Cheers and all the best,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #13 on: June 16, 2006 »
I'm gonna do another one tonight I think :) That will be the last one then.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #14 on: June 19, 2006 »
I'll leave this open until Saturday in case there are any last minute entries and then we can start voting on them. I'll be excluding my own entries from the comp :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Phoenix

  • C= 64
  • **
  • Posts: 99
  • Karma: 4
    • View Profile
Re: Short Intro Challenge!
« Reply #15 on: June 21, 2006 »
I've watched all the entries now (Probably missed a few), and I'm impressed of what you've accomplished in 20 lines! Next Community Project could be a chain demo, where every coder can add their own effect to it.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Short Intro Challenge!
« Reply #16 on: June 21, 2006 »
That would be a cool idea as long as everyone can agree on a language to use :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Optimus

  • DBF Aficionado
  • ******
  • Posts: 2456
  • Karma: 128
    • View Profile
    • Optimouse Demo Site
Re: Short Intro Challenge!
« Reply #17 on: June 21, 2006 »
Yey! I remember that we discussed this idea on Pouet but most people didn't like it. It's like demo collaborations especially on CPC and AtariST (but maybe in other platforms too), where each scener or demogroup did his own part and all were connected in a megademo! Usually you had to press space for each next part or there was a menu to choose between simple screens (it can be a separate screen which presents more than one effect, doesn't necessary have to be one single effect, just one single screen with it's own design), but we could also code transitions from one part to the other if anyone prefers. I'll go for either of these ways but yes, chain demo collaboration would be awesome, I'll definitelly code something for it when it's announced!
Challenge Trophies Won: