Your C2 tests

Show us your completed creations made in Construct 2

Post » Sun Mar 25, 2012 1:28 pm

Thanks. Sorry but I've been updating that Shadowtest directory as I build the game I'm working on, so the html page was no longer a representation of what I originally posted. I've gone back and edited it now, so it's pointing back at the original shadow test.

The zombie game I'm working on is where that test originally was, which is here. It's uses the same shadow system, but with a tweaked shadow sprite (basically just a solid wedge of black with a bit of blur to the edges).



I'm just trying to get it optimised at the moment. It runs fine on my desktop PC, even when it's forced to use Canvas2d in IE, but I tried it on a laptop today at it was unplayable. The optimisations I've done (such as culling out shadows when they're off screen) actually loweres the overall fps (especially in webgl, which could handle the extra sprites), but it also smooths it out, so hopefully less dips into the 20's. Plus with the optimisations it also means I can hopefully increase the level size without any slowdown.

I thought using sprites as shadows was a good idea, and it works fine for enemies and collumns and small things, but you need heaps of shadow casters to make a wall (butted up against each other to fill the gaps) which isn't ideal. I can't think of a method to do the walls and buildings in a simple way though. If I could use vectors / polygons this would probably be easier I expect?Puck2012-03-25 13:43:23
B
32
G
1
Posts: 18
Reputation: 1,663

Post » Sun Mar 25, 2012 5:22 pm

By Amazing coincidence I was looking at this thread -

http://www.saltgames.com/2011/2d-shadow-effects/

It's done in flash but similar method I think.

Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Mar 25, 2012 10:49 pm

Yeah that's a similar effect to what I was trying to achieve, but I think it's done in a better way there than they way I've done it here. They actually calculate out the proper polygons for each object, so all the shadows are accurate. My one just draws a shadow sprite (that looks like a black wedge) behind each object, which is fine for enemies and small objects, but very inefficient for walls (need dozens of 'shadow casters'). I'm not sure how to use their method in C2.

Here's an even better implementation with the same method, though it goes a step further and has soft shadows - http://www.gamedev.net/.../dynamic-2d-soft-shadows-r2032

And of course, what originally made me want to try and make a simple zombie game with dynamic shadows, Notch's "Left 4k Dead" test game before he made minecraft.
B
32
G
1
Posts: 18
Reputation: 1,663

Post » Wed Mar 28, 2012 1:17 am

Today I got the idea in my head to compare the two most common types of health meters. The one where you have a meter that increases in length when the player upgrades his health, and the one where the meter stays the same but instead the upgraded health is handled with percentages instead.
That lead to me thinking about how I would go about making the latter one.
When I got that to work I thought about fighting games and how the sometimes have curves and weird shapes. So I started thinking about masking, and subsequently snooped around on the forums to see if someone else had tackled it. Someone had, so I adapted that into my little experiment.

Result.inkBot2012-03-29 00:16:39
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Fri Mar 30, 2012 12:09 pm

why is it so very slow in firefox. Is this the case with all games?
B
7
S
1
Posts: 65
Reputation: 821

Post » Wed Apr 04, 2012 8:33 am

C2 recreation of simple Mouse Toy actionscrip code by Zevan
http://db.tt/C0HOj71n
podpathos2012-04-04 08:36:31
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Wed Apr 04, 2012 2:41 pm

Mouse toy 2...added some stuff: create/destroy circles at will, change angle, radius, shake effect, order of movement...
instant fun :)
capx

edit: open in Chrome, in Firefox after clicking button rest of comands for changing parameters dont work unless you click outside of game screen

podpathos2012-04-06 11:03:52
B
12
S
2
G
2
Posts: 96
Reputation: 1,583

Post » Sat Apr 07, 2012 7:03 pm

wow soo cool cant wait for finished product
B
27
S
11
G
1
Posts: 246
Reputation: 5,048

Post » Mon Apr 09, 2012 3:54 pm

heres one of my lil tests

Platform Test

So far I can tell its a pain in the ass to work with tiles in c2 lolaridale2012-04-09 15:55:11
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Thu Apr 12, 2012 5:44 am

@aridale

I liked the mechanic! And I agree with you, C2 needs image editor tools.KrazyKaos2012-04-12 05:45:40
B
20
S
2
G
1
Posts: 32
Reputation: 1,997

PreviousNext

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 2 guests