[PLUGIN] Polygon (update 2013-04-23)

Post your completed addons to share with the community

Post » Fri May 17, 2013 3:48 pm

@Yann

[QUOTE=Yann]
You probably already thought about this but as a nice mecanism, having to walk slowly/silently (maybe holding shift) when you are just behind an enemy to avoid being "heard" could be a nice addition (:
[/QUOTE]

Thanks for the feedback! I'm actually doing this in reverse. You walk by default, which is quieter. If you hold shift you can sprint, which will allow you to out-run the guards, but you're a lot louder so you'll end up alerting more guards if you're not careful.

[QUOTE=Yann]
Also you should probably resize your text object, it seems some words get clipped
[/QUOTE]

What browser/text size/zoom level are you using? Can you post a screencap in my thread? I haven't seen this behavior myself, but good to know!


[QUOTE=Yann]
And I didn't understand at first that if the enemies where to close to me in alerted mode I would automagically lose. I think they should just shot you dead (:
[/QUOTE]

Guard AI is still in the works :)

Thanks again for all the feedback!
B
8
Posts: 32
Reputation: 1,039

Post » Tue Aug 27, 2013 8:05 am

Thanks this plugin is great. I did a test and it can only handle me drawing 60 4-sided polygons every frame before it starts slowing down, is that normal? Is that because normally the GPU would be handling polygons or something?alspal2013-08-27 08:06:48
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Tue Aug 27, 2013 8:21 am

@alspal
It's not drawn by the GPU, it's drawn by a off-DOM canvas2D element and then the resulting texture is sent to the GPU to texture the object's polygon.
So you still get as fast as the Canvas2D is.

I warned you in the first post that's why my 3D test is so slow (:

But you should be able to draw one polygon and move/scale/rotate it with C2's set position/size/angle function without triggering any redraw of the polygon itself.
You only ever redraw the polygon texture when the vertices are modified.

So unless you're modifying the vertices of your 60 polygons every frame, it shouldn't be too slow.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Aug 27, 2013 9:11 am

Thank's, yeah that's a good note.
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Sat Sep 14, 2013 2:15 pm

@Yann I was wondering whether your Split Poly demo would work combined with the Physics Demo?

So say, having a physics square and being able to split that into two two physics polys.

We're starting work on the ice world for Mortar Melon, and an awesome mechanic would be to slice ice blocks into angles to bounce off :)
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Sat Sep 14, 2013 3:19 pm

@thehen
For now, I see no reason why it shouldn't work.

An easy way to test that would be to just create instances of polygons with physic behavior and with random set of vertices (for example on a touch event) and see if they interact properly with the environment.

Once you made sure of that, you can safely implement the splitting and integrate everything in your game.

Edit: I just checked my old demo, you can just modify that to create new instances and check various interactions to see if a bouncing melon bounces well enough etc.
Because in the end, what the splitting does is deleting the current polygon et creating two new ones. It's a more deterministic version of the physics demo (:Yann2013-09-14 15:23:43
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sat Sep 14, 2013 8:47 pm

@Yann awesome I'll have a whizz at getting this working when I've got some R&D time. Thanks again for the awesome plugin :)
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Tue Oct 01, 2013 3:37 am

Is it possible to exempt a side from being drawn?

-Trav
B
4
Posts: 2
Reputation: 204

Post » Wed Oct 02, 2013 7:43 pm

@travhoang1991
nope
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Oct 03, 2013 11:37 pm

Yann, it's so perfect, thank you!!! Also, did you noticed your nick in my last game, on credits? Just check it out =]

This plugin make possible to slice things with lasers, muahahhahaha =]

And most important, make possible to draw Concrete Profiles for Civil Engineering softwares!TELLES08082013-10-03 23:38:59
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,192
Reputation: 18,276

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: dark1994 and 2 guests