• Welcome to Dark Bit Factory & Gravity.
 

[Demo] Cities (Update : fractal)

Started by Hezad, October 17, 2008

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Hezad

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
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

benny!

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:

Shockwave

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:

Hezad

Cool :) Thanks to both of you !

QuoteA 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
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Shockwave

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:

Clyde

Tells me I need "multiput.bi"
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Hezad

QuoteAs 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 :)

QuoteTells 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

Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Shockwave

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:

ninogenio

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:

Hezad

QuoteSorry, 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 ..

QuoteAnother 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.


Quotei 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 :)

Quotereally cool start to you little cartoon by the way!
thanks ;D
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Pixel_Outlaw

It is very good so far! Just needs a few demo/intro elements tied in.
Challenge Trophies Won:

Hezad

#11
Thanks Pixel :)

QuoteJust 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 :)
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

gooner

Couldn't get it to run here this is what i got :'(

Shockwave

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:

Hezad

@Gooner : My bad ! I forgot to join the fmod dll in the RAR, but Shockwave just attached it :)


@Shockwave : thanks for attaching it ^^

Quoteafter 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 :)
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Shockwave

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:

Hezad

QuoteSome 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 :)

#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)


Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Shockwave

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:

Hezad

Cool dragon shockie :P

In fact the fractal part in my code is "just" an IFS which rotates on itself with an evolving curvature :)
Music + Coding :
http://Hezad.no-ip.org

Hosting / Hébergement :
www.hezad.com

Shockwave

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: