Author Topic: 256 Evolution  (Read 4468 times)

0 Members and 1 Guest are viewing this topic.

Offline va!n

  • Pentium
  • *****
  • Posts: 1435
  • Karma: 109
    • View Profile
    • http://www.secretly.de
256 Evolution
« on: March 16, 2007 »
Some time ago, there was an PB compo, creating a program in max 256 lines and using only one : each line... here is the result a very good friend and me created Smiley

www.secretly.de/public/256_Evolution.zip  (source including exe)

The goal was not to have an readable source... our goal was to beat the limit and showing great stuff in just so few and crypted lines Cheesy

The exe version is very slow due fact of some tricks to make the compo source smaller... compile the other source and the fx works fine....  wait some seconds when press ESC ^^ thx

Code: [Select]
InitSprite() XOr OpenScreen(640,480,32,"evolution - 256 lines of code by va!n and remi_meier") XOr InitSound() XOr InitModule() XOr LoadModule(0,"Data/melodee-disco_zax.mod") XOr PlayModule(0) XOr StartDrawing(ScreenOutput())
Repeat
  temp = (temp + 2 * Val(Str(z = 639 * 339 Or 0))) % 256
  z = (z + 1) % (639 * 339 + 1)
Until ((Plot (z%639, (z/639)+70, RGB( Sin(Val(Str(z%639))*(2*#PI/360))*(z/639)+temp, Cos(Val(Str(z%639))*(2*#PI/360))*(z/639)-temp, 240))=7) XOr (z = 639 * 339 And (StopDrawing() XOr FlipBuffers() XOr StartDrawing(ScreenOutput()))) ) Or (GetAsyncKeyState_(#VK_ESCAPE) And StopModule(0))
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: 256 Evolution
« Reply #1 on: March 16, 2007 »
Nice fx. I especially like the colors! Can't really remember the compo. Was
it on the official purebasic board ?

Note: midas.dll should be in the same directory as the executable
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: 256 Evolution
« Reply #2 on: March 16, 2007 »
Welldone Vain dude :)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1435
  • Karma: 109
    • View Profile
    • http://www.secretly.de
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: 256 Evolution
« Reply #4 on: March 16, 2007 »
I'm a sucker for coder colours and instantly love all "cheesy" oldschool colour patterns! Have some Karma.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1435
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: 256 Evolution
« Reply #5 on: March 17, 2007 »
thanks for feedback  :cheers:
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won: