Author Topic: [Demo] Cities (Update : fractal)  (Read 9278 times)

0 Members and 1 Guest are viewing this topic.

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
[Demo] Cities (Update : fractal)
« on: October 17, 2008 »
Heya :)

I didn't really know what to do this afternoon so I started to code something without planning anything. All the images are made by myself, but you have to know I copied the face in a "pixel art style" but it comes from a comic I don't know the name (thanks Google Images ^^)

I guess I wanted to code a little demo at the beginning but it doesn't really look like a demo lol (the only interesting stuff are the gradients interpolation, everything else is just sprites handling).

!!! Please don't look at the images before watching the program :) !!!

No optimization nor good coding stuff, nor music, it was really just to spend some time and nothing new after the word "think" disappears.

Now I have some ideas for the next scenes but I'd like to know what you think about it (not concerning the code, I know it's awful, but more in an artistic sense) before I continue it :)


Thanks :D
« Last Edit: October 19, 2008 by Hezad »

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Boring afternoon
« Reply #1 on: October 17, 2008 »
Really cool. I like it a lot.

The pixeled head looks superb. The background gradient
has got smooth colors. A nice music would definately create
more atmosphere.

Well done!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Boring afternoon
« Reply #2 on: October 17, 2008 »
Ooooh, that was nothing like I was expecting to see Hezad :)

For a little Work in progress, it seems already to be very artistic. I like it already.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: Boring afternoon
« Reply #3 on: October 17, 2008 »
Cool :) Thanks to both of you !

Quote
A nice music would definately create more atmosphere.

I'm already wondering about it ^^

For the continuation, I may play with faces, I'd like to see the man mouth moving with some lyrics :D

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Boring afternoon
« Reply #4 on: October 17, 2008 »
As he is running through town it might be cool to have some debris? maybe litter blowing by sometimes...

Possibly rain sometimestoo? :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Boring afternoon
« Reply #5 on: October 17, 2008 »
Tells me I need "multiput.bi"
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: Boring afternoon
« Reply #6 on: October 18, 2008 »
Quote
As he is running through town it might be cool to have some debris? maybe litter blowing by sometimes...

Possibly rain sometimestoo? Smiley

what do you mean by "litter blowing" ? About rain, I already have a routine lying somewhere, it should be easy :)

Quote
Tells me I need "multiput.bi"
>< I forgot to get off an include. I used DJ peter's multiput to test some stuff but now it's not used .. I attach a new dl ;D


Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Boring afternoon
« Reply #7 on: October 18, 2008 »
Hmm.

Sorry, by litter blowing I guess that because he is running along so quickly that it would be nice to have maybe some papers, leaves, whatever flying past him.

It would add to the sensation of speed and general cartoon quality of the intro :)

Another thing which would totally rock is to run it in 640 X 480 and provide a full screen version :D
Shockwave ^ Codigos
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Boring afternoon
« Reply #8 on: October 18, 2008 »
Quote
!!! Please don't look at the images before watching the program Smiley !!!

i guess for this sort of thing convering the images to a raw format and including them in the exe might be better,

really cool start to you little cartoon by the way!
Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: Boring afternoon
« Reply #9 on: October 18, 2008 »
Quote
Sorry, by litter blowing I guess that because he is running along so quickly that it would be nice to have maybe some papers, leaves, whatever flying past him.

It would add to the sensation of speed and general cartoon quality of the intro Smiley

My bad ! It's not AT ALL supposed to go fast lol I "forgot" to use time-based stuff (everything's just sync with global counters). I do have to remedy to that if I wanna continue it !

But ! I love the idea of flying papers, leaves, etc ..

Quote
Another thing which would totally rock is to run it in 640 X 480 and provide a full screen version Cheesy
Sure. But I must recode everything, I -my bad, again- hardcoded everything ><
In fact, I guess I'd like to use supersampling on it if the FPS doesn't slow down too much with it.


Quote
i guess for this sort of thing convering the images to a raw format and including them in the exe might be better,

Totally Agree, I'll do that when the thing will be finished :)

Quote
really cool start to you little cartoon by the way!
thanks ;D

Offline Pixel_Outlaw

  • Pentium
  • *****
  • Posts: 1382
  • Karma: 83
    • View Profile
Re: Boring afternoon
« Reply #10 on: October 18, 2008 »
It is very good so far! Just needs a few demo/intro elements tied in.
Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: Boring afternoon
« Reply #11 on: October 19, 2008 »
Thanks Pixel :)

Quote
Just needs a few demo/intro elements tied in.
Yep :) But I don't really know what kind of effect would go with this graphic "style"  ???
If you or anyone have an idea about it, please share it !!  ;)

Update :) I composed a music for this, and I added rain and flying leaves :D Oh, and stars in night time

Of Course I can't upload the Rar here because of the mp3 size so here is the link :

-Download-

I experience sound crackles on my computer :S What about you guys ? I don't have any idea of what can cause that ..

Oh and I hope my sync cheat (yeah still in a hardcoding mood ^^) will work, so please say me if some stuff seems to go at an undesired speed, thanks :)

And a little screen :)


edit : A last question ! I need your opinion !
I'm less and less convinced about the words appearing on screen .. I don't know if their size or their emplacement on screen is wrong, or maybe I should'nt use them ? Or maybe it's the typo .. arg I don't know ! Please tell me what you think about it :)
« Last Edit: October 19, 2008 by Hezad »

gooner

  • Guest
Re: [Demo] Cities (Update)
« Reply #12 on: October 19, 2008 »
Couldn't get it to run here this is what i got :'(

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Demo] Cities (Update)
« Reply #13 on: October 19, 2008 »
Here's fmod.dll, if you extract this inside the same folder as the intro it will run.


Nice chilled out music :)

It seems to be coming together now Hezad :D
Vsync is working well, it needs lots of stuff in the same style to carry it through now. after it starts raining, maybe more things could happen.. Perhaps the landscape could change and other things could scroll past.. I don't know, it would probably become a lot of work!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: [Demo] Cities (Update)
« Reply #14 on: October 19, 2008 »
@Gooner : My bad ! I forgot to join the fmod dll in the RAR, but Shockwave just attached it :)


@Shockwave : thanks for attaching it ^^

Quote
after it starts raining, maybe more things could happen.. Perhaps the landscape could change and other things could scroll past.. I don't know, it would probably become a lot of work!

I thought about "transforming" the city in a rural landscape after some time, I'll think about implementing it :)

Also there's an enormous "empty" space on screen since all "action" takes place below (the face, the city), so yep, I should add other things but don't really know what for now :)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Demo] Cities (Update)
« Reply #15 on: October 19, 2008 »
Some nice fractals could be cool in that empty space, and maybe other similar effects that can be generated slowly? :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: [Demo] Cities (Update)
« Reply #16 on: October 19, 2008 »
Quote
Some nice fractals could be cool in that empty space, and maybe other similar effects that can be generated slowly? Smiley

yeah ! I already coded some fractal stuff once :) So I just used the code I made and tweaked a bit some stuff .. So here is the new version :D (erm even if the time-movement is still far from perfect) Thanks for the idea ^^

-Download-

Oh, and If anyone is interested about the fractal part, here is a simple code which will draw a moving and rotating fractal, I guess it could be useful so do what you want with it :)

Code: [Select]
#include "fbgfx.bi"

Screenres 640,480,32,2,FB.GFX_ALPHA_PRIMITIVES


dim shared as single CURVATURE1 = 1
dim shared as single CURVATURE2 = 1

dim shared as single AMPLITUDE1 = .7
dim shared as single AMPLITUDE2 = -.7


Sub SpreadTrigo(x as single, y as single, Amp as single, Angle as single, alpha as integer=255)
   
    If alpha<=110 then exit sub
   
    dim as single sa,ca
   
    ca = Amp*cos(Angle)
    sa = Amp*sin(Angle)
   
    Circle(x+ca,y-sa),2,rgba(255,255,255,alpha*.5),,,,f
   
    SpreadTrigo(x-ca,y+sa,Amp*AMPLITUDE1,Angle+CURVATURE1,alpha-10)
    SpreadTrigo(x+ca,y-sa,amp*AMPLITUDE2,Angle+CURVATURE2,alpha-10)
   
End Sub

dim as single angle=3.1415

do : screenlock : cls
    paint(0,0),rgb(55,55,55)
   
    SpreadTrigo(320,240,100,angle)
   
    angle -= .05
   
    Curvature2 += .01
    Curvature1 += .005
   
screenunlock : sleep 1,1
Loop until multikey(&h01)


Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Demo] Cities (Update : fractal)
« Reply #17 on: October 19, 2008 »
Looks quite similar to a "Grinch Dragon" Fractal. :)

I made one once:
(The source is there too if it helps).
http://dbfinteractive.com/forum/index.php?topic=925.0
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hezad

  • Sponsor
  • Pentium
  • *******
  • Posts: 613
  • Karma: 44
  • I believe .. in Patrick.
    • View Profile
    • Hezad.com Web hosting
Re: [Demo] Cities (Update : fractal)
« Reply #18 on: October 20, 2008 »
Cool dragon shockie :P

In fact the fractal part in my code is "just" an IFS which rotates on itself with an evolving curvature :)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17414
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: [Demo] Cities (Update : fractal)
« Reply #19 on: October 21, 2008 »
I didn't see the fractal in your demo though Hezad. I copied and pasted the source into the editor and complied it..

Is the uploaded version correct?
Shockwave ^ Codigos
Challenge Trophies Won: