2D Starfield Plugin [WIP]

Post your work in progress addons and get feedback

Post » Sat Jul 25, 2015 9:23 pm

Hi L&G

After lot of efforts and studying all plugin in C2 plugin folder i made it; 5 layers 2D Starfield for your space games projects.
I know you can do this with C2 but, to make C2 easy as possible without any Event i decided to do this.
0 Event need for this plugin ; so you must just add this plugin in your project and the stars will scrolls
in desired directions ...
left,right,up and down:
X_Speed for Hotizontal negative val to inverse direction
Y_Speed for Vertical negative val to inverse too.
Number of stars : 50 for each layers multiplied by 5.. 50*5= 250 Stars !
And 6 Style of colors:
Image


Live demo:
http://gigatron3k.free.fr/html5/C2/plugin/2dstarfield

This plugin is 95% done... just wait a bit ..

Have Fun
Last edited by Gigatron on Sat Jul 25, 2015 9:30 pm, edited 1 time in total.
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
57
S
20
G
29
Posts: 804
Reputation: 21,969

Post » Sat Jul 25, 2015 9:30 pm

Someone did an fx fo it.
What would be nice is if an fx could interact with events to get a controlled parallax.
Image ImageImage
B
168
S
50
G
163
Posts: 8,218
Reputation: 105,055

Post » Sat Jul 25, 2015 9:36 pm

Mr newt
this is an special plugin like behaviours objects which executed every tick, it's just a test for my plugin knowledge and for
c2 users projects..
i can do to interact with an events... what commands would you like ??
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
57
S
20
G
29
Posts: 804
Reputation: 21,969

Post » Sat Jul 25, 2015 9:56 pm

It would be nice if it worked like scrollx, and scrolly.
Last edited by newt on Sun Jul 26, 2015 12:01 pm, edited 1 time in total.
Image ImageImage
B
168
S
50
G
163
Posts: 8,218
Reputation: 105,055

Post » Sat Jul 25, 2015 10:08 pm

newt wrote:It would be nice if it worked like scrollx, and scrolly.

This is a demo I have with tilemaps on layers with parallax:
https://dl.dropboxusercontent.com/u/666 ... index.html


Ok i understand and will work for do that.

Thx
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
57
S
20
G
29
Posts: 804
Reputation: 21,969

Post » Sun Jul 26, 2015 10:33 pm

Ok ... this plugin WIP was updated..
Mr newt ... tell me if it's ok ...now ?
I can tell you now... it's working nice , automatic tick method is running much faster now;

I will release this plugin soon....


Ca marche impéccablement bien ... normal ça ma pris toute la journée :))
Last edited by Gigatron on Sun Jul 26, 2015 10:41 pm, edited 1 time in total.
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
57
S
20
G
29
Posts: 804
Reputation: 21,969

Post » Sun Jul 26, 2015 10:41 pm

I wonder what is the CPU usage in your example? (nice plugin)
Image Image
B
22
S
13
G
129
Posts: 868
Reputation: 67,314

Post » Sun Jul 26, 2015 10:43 pm

Looks good here.
Image ImageImage
B
168
S
50
G
163
Posts: 8,218
Reputation: 105,055

Post » Sun Jul 26, 2015 10:45 pm

MadSpy wrote:I wonder what is the CPU usage in your example? (nice plugin)


On Chrome it's running 60 fps, with background protracker music.
But on FireFox nightly it's slowww .. 25/30 fps with my 4 core 3.6 Ghz !
http://gigatron3k.free.fr/Intro/

https://www.shadertoy.com/user/gigatron

https://twitter.com/realistquantum

Ezekiel 1-4 ; ufo landing explanation ..

CONSTRUCT 2 THE ONLY FAST WAY TO HTML5

Image
B
57
S
20
G
29
Posts: 804
Reputation: 21,969

Post » Mon Jul 27, 2015 1:01 pm

I liked the demo, but it would be nice to have a few optional binary systems that slowly circle even when not scrolling. The occasional super nova too (as an option of course).

Also a few distant galaxies.

Just sayin. Nice work.
B
33
S
8
G
3
Posts: 169
Reputation: 3,280


Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests