Sign in to follow this  

How to make a hidden object/photo-hunt game - Javascript/HTML5

This topic is 1715 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have this idea for a simple game, a photo-hunt/hidden-object type game.

 

hidden object game (sometimes called hidden picture) is a genre of puzzle video game in which the player must find items from a list that are hidden within a picture. 

 

(http://en.wikipedia.org/wiki/Puzzle_video_game#Hidden_object_game)

 

So my first question would be how to actually achieve this. My initial thought is to separate the objects into individual files with a transparent background so that I can overlay them on the main scene. Does this seem correct? If so, how do I actually do the overlaying and subsequent removing of objects, I'm guessing I will need an engine, which leads me to...

 

My idea is to make it web-based, specifically looking at HTML5 so it's cross-platform. I first thought of doing it with canvas but then I stumbled upon this: https://developers.facebook.com/blog/post/2012/04/17/making-a-speedy-html5-game/, where they say how canvas was actually quite slow and unusable so they ended up with their own rendering engine. Are there any ready to use engines that could fit my needs?

 

Basically, I'm not to sure of the direction I need to take to make this. I would appreciate any and all tutorials or documentation or whatever kind of learning material :)

Edited by moljac024

Share this post


Link to post
Share on other sites

When they said the canvas was slow, they weren't talking in seconds, but in milliseconds. HTML5 should be just fine for a point-and-click kind of game like you describe. You could even get away with not even using javascript if you just use a bunch of pictures meshed together and make each one a link, but of course that is kind of limiting.  

With a quick google search, I found this engine for JS: crafty. I haven't used it but it seems fairly well documented.

Share this post


Link to post
Share on other sites

Hey thanks for that suggestion! Crafty certainly looks nice.

 

Also, if anyone else might be interested in this topic, I have found this: http://ntt.cc/2011/01/31/66-open-source-javascript-game-engine-for-serious-developers.html

Seems like there are a lot of these engines/frameworks and that's awesome.

 

You are right though. Speed of canvas shouldn't be an issue for a simple game like this that isn't even real-time.

 

I'm still not sure of how exactly I should achieve my goal but I'll play around with canvas and see where I end up.

Edited by moljac024

Share this post


Link to post
Share on other sites

This topic is 1715 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this