News for hackers. Stuff that matters.
Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @10:18AM (#8273966)
I'm the developer of Construct 2 - it's our startup (www.scirra.com). We're YC rejects :) Nice to see it pop up on HN!
Re:Show HN: Colors – Experimenting with Construct 2 by lsjroberts on Friday September 05, 2014 @12:40PM (#8274824)
Hi Ashley, I've only just started out playing with Construct 2 and I have to say it is fantastic. I recently used Scratch as a teaching tool and this seems like a great next step.

It also seems like a great tool for quickly making Ludum Dare games. Thanks.

Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:19AM (#8273977)
Hi Ashley! I've seen you around on the Scirra forums; nice to meet you! Thanks for all the great work!
Re:Show HN: Colors – Experimenting with Construct 2 by kornakiewicz on Friday September 05, 2014 @10:07AM (#8273916)
Looks neat, but I would play with nicer palette. Also the hardness is increasing hyperbolically so after those small red dots appears it's almost impossible to survive.
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:12AM (#8273935)
The color palette was pretty random haha; if you have a better color scheme to recommend, I'd love to see it! And I'm currently trying to find a good balance for size and speed such that the game is very challenging, but not impossible.
Re:Show HN: Colors – Experimenting with Construct 2 by kornakiewicz on Friday September 05, 2014 @10:24AM (#8274001)
Checkout this: http://clrs.cc/

and try not to use similar colors after each other.

Re:Show HN: Colors – Experimenting with Construct 2 by kaoD on Friday September 05, 2014 @10:24AM (#8274000)
Whichever color scheme you choose, make sure it works for colorblind folks too! I'm not colorblind myself, but I know it's a good source of frustration for them.
Re:Show HN: Colors – Experimenting with Construct 2 by hawleyal on Friday September 05, 2014 @11:20AM (#8274333)
I don't think that is possible, given how many different colors this generates.
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @11:35AM (#8274454)
As the colors are purely for aesthetic purposes, this shouldn't be too much of an issue. As long as it is pleasing to the eye for them!
Re:Show HN: Colors – Experimenting with Construct 2 by hawleyal on Friday September 12, 2014 @11:14AM (#8308441)
I don't think the colors are for aesthetic purposes. They describe meaning for how large and fast the objects are.
Re:Show HN: Colors – Experimenting with Construct 2 by knd775 on Friday September 05, 2014 @12:41PM (#8274831)
I guess this is true, as long as the colors do appear differently to them.
Re:Show HN: Colors – Experimenting with Construct 2 by krat0sprakhar on Friday September 05, 2014 @12:03PM (#8274611)
Re:Show HN: Colors – Experimenting with Construct 2 by symmetricsaurus on Friday September 05, 2014 @12:52PM (#8274901)
The resulting balls always travel at a 45 degree angle from the direction of the shot. So shooting diagonally should keep all resulting balls travelling up-down or left-right. This would keep all balls in a rough cross shape on the playing field.

Stay out of this area and you will be able to live forever and easily beat the game.

In practice this is really hard to achieve since only a small deviation will cause some of the ever increasing number of balls to hit you anyways.

Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @03:37PM (#8275880)
Nice job picking up on the nuances of the game :) and as you said, much easier said than done.
Re:Show HN: Colors – Experimenting with Construct 2 by taternuts on Friday September 05, 2014 @10:02AM (#8273885)
It freezes for me after about 5 seconds in (Chrome 36.0.1985.143)
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:05AM (#8273902)
Huh. Interesting. Do the controls freeze or the game itself? I'm not sure what would cause that; the game was developed on a proprietary HTML5/JS engine.
Re:Show HN: Colors – Experimenting with Construct 2 by egeozcan on Friday September 05, 2014 @10:12AM (#8273933)
There's an error:

Uncaught TypeError: Cannot read property 'qb' of undefined c2runtime.js:105 g.Jq c2runtime.js:105 g.qb c2runtime.js:102 si

Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @10:16AM (#8273958)
Check your browser addons and try disabling them - some clunky addons clobber Javascript that the Construct 2 engine uses and breaks it.
Re:Show HN: Colors – Experimenting with Construct 2 by egeozcan on Friday September 05, 2014 @10:19AM (#8273970)
Tried in incognito mode where everything is disabled. Still, it freezes with the same error. (Windows 8.0, Chrome Version 36.0.1985.143 m)
Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @10:32AM (#8274048)
Actually I did some sleuthing from the minified code and found where it corresponds to in our engine. It's just calling a tick function on one of the behaviors, and I guess from the error report it's calling a function on an array with an empty element in it. No idea how that could fail or why it would only happen on one system and not another, this is probably only Javascript logic. Maybe the author is using an old version of C2, or a broken third party plugin... or you have a buggy extension that runs in incognito mode?! I still want to get to the bottom of it, maybe if you head over to our forum at www.scirra.com/forum and post there we can dive deeper.
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:45AM (#8274111)
To clarify, I'm using C2r178, and no third party plugins.
Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @10:22AM (#8273989)
Huh, odd... I'm afraid to investigate further you'd have to ask the game author to trial a non-minified version with you. I'd be keen to find out the cause so if there's an issue in Construct 2 we can fix it.
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:37AM (#8274068)
If you want to try to resolve this, feel free to contact me via email (shawnsmlee at gmail); the code/capx project file is also on my github, so if you would like to try making sense of it yourself, you're more than welcome!
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:14AM (#8273945)
I wish I could make sense of that error for you haha...
Re:Show HN: Colors – Experimenting with Construct 2 by yeppers8 on Friday September 05, 2014 @10:08AM (#8273920)
Construct 2 is becoming a better and better game engine. Good to see it getting some love on HN
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:17AM (#8273960)
I'm thinking about also adding co-operative multiplayer functionality; what are your guys' thoughts?
Re:Show HN: Colors – Experimenting with Construct 2 by kaoD on Friday September 05, 2014 @10:33AM (#8274051)
Sounds fun and I would definitely play with my friends :)

Add touch controls for mobile devices if possible (check PewPew for a similar movement mechanic) and you got yourself a pretty fun mobile game. I'm not sure if mobile browsers would be up to the task though, just throwing random ideas.

Does Construct2 include networking and lag compensation? It's hard to achieve smooth gameplay over the internet, especially for fast-paced games like this one. Check [1] for a great resource on networking.

I have some experience on game networking. Feel free to contact me at (el + my HN username) at gmail if you need some help.

[1] http://gafferongames.com/networking-for-game-programmers/

Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:39AM (#8274087)
I'm not sure about lag compensation, but the good folks over at scirra added multiplayer functionality via WebRTC, which allows for peer-hosted games. I'll look into adding touch controls and maybe get it out to Android soon!

Thank you for the offer! I'll be sure to consult you if I have any questions!

Re:Show HN: Colors – Experimenting with Construct 2 by AshleysBrain on Friday September 05, 2014 @11:13AM (#8274274)
Yes, Construct 2 supports multiplayer over WebRTC DataChannels with built-in interpolation, lag compensation, input prediction and more: https://www.scirra.com/manual/174/multiplayer
Re:Show HN: Colors – Experimenting with Construct 2 by kaoD on Friday September 05, 2014 @10:13AM (#8273936)
Looks fun, but the red balls are frustratingly hard to hit.

You should make it go fullscreen, I keep clicking my bookmarks and taskbar!

EDIT: I might've found a bug. One of the red balls escaped the game field near the top-left corner while moving in a horizontal trajectory.

Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @10:16AM (#8273951)
Yeah I've seen/heard from folks that this happens; will fix sometime later today! Thanks!
Re:Show HN: Colors – Experimenting with Construct 2 by _lce0 on Friday September 05, 2014 @10:54AM (#8274159)
I cannot shot using a regular tap on the trackpad. I need to hit really hard the surface to shot, but I can get considerably fire speed using the physical button..
Re:Show HN: Colors – Experimenting with Construct 2 by ionforce on Friday September 05, 2014 @10:58AM (#8274179)
Does it seem that staying in the corner is a good strategy?

Maybe if the canvas wrapped it would make moving around more rewarding, strategically.

Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @11:13AM (#8274277)
I introduced the score multipliers (hitting the same color twice) to discourage staying in one spot the whole game, but I guess it is still a prevailing strategy. That's a great idea! Would both the player and the balls wrap around, or just one of them? Also, what are your thoughts on having the entire playing field in your vision, or having a locked camera on a much larger field?
Re:Show HN: Colors – Experimenting with Construct 2 by azatris on Friday September 05, 2014 @12:13PM (#8274690)
The strategy for getting rid of red balls is to just wait until you get a lag spike and they go out of screen (forever).
Re:Show HN: Colors – Experimenting with Construct 2 by _random_ on Saturday September 06, 2014 @06:24AM (#8277984)
Wow, almost as smooth as Flash! I think HTML5 could be easily used for casual games in about 5 years.
Re:Show HN: Colors – Experimenting with Construct 2 by mickanio on Friday September 05, 2014 @10:07AM (#8273914)
Re:Show HN: Colors – Experimenting with Construct 2 by toadkicker on Friday September 05, 2014 @10:16AM (#8273955)
Bravo, thanks for ruining my productivity today.
Re:Show HN: Colors – Experimenting with Construct 2 by tcfunk on Friday September 05, 2014 @11:36AM (#8274460)
I must be on the wrong browser...all I see is "C o o"
Re:Show HN: Colors – Experimenting with Construct 2 by sleepysort on Friday September 05, 2014 @11:42AM (#8274491)
Are you using a modern browser with JS enabled?

EDIT: I'm a derp; your JavaScript must have been enabled since it (partially) rendered the menu screen. Check your plugins, see if there's anything that might conflict with the Construct 2 engine.

Re:Show HN: Colors – Experimenting with Construct 2 by tcfunk on Friday September 05, 2014 @02:53PM (#8275616)
I'm running Firefox (32 I think?). I do have Ghostery running, but I tried disabling that thinking it was perhaps blocking something.

Could be the age of my laptop, though, I suppose.