The much abused and overused.....ASTEROIDS!

Show us your works in progress and request feedback

Post » Sat Aug 09, 2014 8:29 pm

So...yea I followed the Beginners thing to make a ghost shooter...and well....I got bored and tried my hand at an asteroids clone with the free space sprites (soon to be replaced with mine just as soon as I figure out how to swap em out), I found out there was a tut....but I didn't bother reading it because I wanna see If I can actually do something like this...I think it's going quite well...Give it a DL and lemme know what you think? :geek:



I'm going to add a title screen at somepoint as well.
You do not have the required permissions to view the files attached to this post.
B
6
S
1
Posts: 20
Reputation: 424

Post » Thu Aug 14, 2014 2:30 am

Looks good but lagged then froze on Chrome.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Thu Aug 14, 2014 2:49 am

avoid the every tick ... try to set text only when it is necessaire ;)
enable / desable collisions only when it is necessaire
reduce collisions polygone
in your place , and specially if you use canvas 2d .... don't use layer at all .... use only one
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Thu Aug 14, 2014 10:28 pm

matrixreal wrote:avoid the every tick ... try to set text only when it is necessaire ;)
enable / desable collisions only when it is necessaire
reduce collisions polygone
in your place , and specially if you use canvas 2d .... don't use layer at all .... use only one


I'm not sure I understand what you're trying to tell me here...what's canvas 2d?

and don't use any layers? I thought if I put it all on 1 layers it would mess everything up
B
6
S
1
Posts: 20
Reputation: 424

Post » Thu Aug 14, 2014 11:17 pm

Canvas2D is kind of the engine behind it. Use WebGL instead it´s way faster! Should be in the properties bar I guess.
You definitely can use many layers man, don´t be to worried about that. All my games use many layers and run 100% performant.

Every tick can be replaced with every 0.1-0.5 seconds for exaple with reduces the calculation behind it.

GOOD LUCK!
Image
Check out our start-up and configure your own helmet in true 3D.
B
44
S
11
G
11
Posts: 1,154
Reputation: 9,988

Post » Thu Aug 14, 2014 11:21 pm

I suggest you change the shoot control to left click. Might be more convenient :)
B
37
S
14
G
3
Posts: 263
Reputation: 4,280

Post » Fri Aug 15, 2014 12:30 am

IF YOU USE canvas2d engine ... its more efficient on cpu render ... try it by your self
if you use webgl ... welcome layer its better for optimisation
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Fri Aug 15, 2014 5:03 pm

Awesome thanks for the tips! @HZGaming It's not convenient for me because I was keyboard controls, did you not play those old DOS games where it was only keyboard? ahh good times. Well University starts monday so it's going to be a hectic for me x.x

I'll try and use the WebGL instead and see how it works out. eventually I want the asteroids to be kind of like the one Atari did for the gameboy color...I loved that version!
B
6
S
1
Posts: 20
Reputation: 424


Return to Works in Progress/Feedback Requests

Who is online

Users browsing this forum: No registered users and 1 guest