- 2010/09/03 tested on iPad :) . Actually I’m quite happily surprised by the result.
The other day, I was wondering if I could create a simple point and click game engine only with javascript… I ended up spending a couple of hours building a simple prototype, with characters I made for Yokata.
Test it here: Chara move test 0.0.1 (only character movements and simple speech bubble)
The music of the demo is not by me. It has been made by the wonderful Ultrasyd.
It’s pretty rough for now, but I think the idea is there. No use or canvas or any other fancy HTML5 feature, just good old divs and Jquery for the animations.
It has been developped with Firefox 3.6.2 on a Mac. There is a positioning bug in Safari/Webkit and Chrome, I’m working on it… (or if you have any idea, don’t hesitate to mail me). This is fixed. I have no plan of supporting IE for now.
This is a work in progress, and should be updated frequently (well, depending on my time of course).
For now, the only features are :
- Click and go — limited to a square area around the character.
To do : make this roundDone. - Background scrolling
- Collisions with NPC, generating different type of events (simple alert, dialogue, etc.)
- Random “jewels” generation for each level (not featured in demo)
- Login/logout (not featured in demo)
- Life, money, stats. (not featured in demo)
To do :
Fix Safari/Chrome start positioning bugFixed- Collisions with jewels
- Add 1st plan with z scrolling.
- Save position of character, background, level
- Make level building dynamic
- Add ability to change character
- Add sounds (ideally, without Flash)
Updates:
- 2010/06/11: Added cookie saving player position, background position, and profile (left or right).
I called this “Donut”, because of the character’s face.
Comments and critics welcome !


12 Comments
This is great… are you going to make the source available?
Thank you.
It’s mostly JavaScript, so you already have acess to the source… The login part is very simple PHP, no rocket science here :)
Jérôme,
Oh sorry! I mean are you going to open-source this? I think this has a good future… I would be interested to join the development if you are going to open-source it.
cheers
I guess I can put everything on a SVN somewhere if that’s what you mean :)
Any comments suggestions etc. are of course welcome!
Yep that should be good :)
This could be a bug, I can not see any text box for username and password in the overlay login box. :| I tried on FF and Chrome.
OK. I’ll do this :)
concerning your remark, this is not a bug, but a previous version, which doesn’t include the login form. Should work on FF/Chrome/Safari/iOs
Great! I was just thinking how about this with Google map in the background and you can see all the people who are online at their exact place? Could be fun… and probably you can walk around in the real map! Meet people who are nearby talk to them and such… add some reality to it, you can not walk a lot, you will lose energy after sometime… Haha could work as a Facebook game ;)
The login box dont shows in safari to. But its realy great!!!
Thanks for your mail!
The login form doesn’t show in ANY browser, since it’s not integrated to the live version yet :)
I like the idea of using gmap to manage the maps and the background… V.3 is really flexible, and can be tweaked to display almost anything. Not sure how I would integrate it tough…
Hey there,
I would love to have access to the source for this project. You did great! I am also an illustrator (and a web programmer) but don’t want to code anything from the ground up. This would be a wonderful addition to the website and allow people to “meet” my characters.
I would love to give you credit! Please let me know if you would be willing to send the SVN.
Thanks!
Hey Sarah,
basically, you already have access to the JS part by checking the source of the demo. The code is quite ugly, and I never found time (and motivation, I confess) to clean it, so I guess that’s why I never put it on SVN/git/etc. — and wouldn’t recommend to use it in production. Also, I used a mix of PNG and animated GIF for animation, which I don’t think would be the best solution now CSS3 and frame-based animation is more mainstream.
The PHP part doesn’t add much: very simple login, and a primitive in-game dialog model thing, using CodeIgniter.
What would you have in mind for your site?