RE: web toy
05-03-2016, 08:50 PM
I was about to bemoan how javascript doesn't allow you to use object elements like local variables in a var but then remembered it's a scripting language
Webtoy - now portable!
|
RE: web toy
05-03-2016, 08:50 PM
I was about to bemoan how javascript doesn't allow you to use object elements like local variables in a var but then remembered it's a scripting language
RE: web toy
05-04-2016, 01:38 AM
Yeah. Big edits are pushed to the Git. Now I'm also doing edits on a different version, which seems to be functionally identical now.
I toned down the flick speed a bit but there's two finals coming up tomorrow. Now that I've done a ton of generalization it ought to be relatively trivial to make the proposed ideas, though. Another rewrite might work better, come to think of it. I was basically forcing a structure based around pure functions into one based on object orientation, and that did not come out very sane.
RE: web toy
05-04-2016, 01:56 AM
(This post was last modified: 05-04-2016, 01:58 AM by OrangeAipom.)
https://i.imgur.com/R1YtzlS.png
what does this mean EDIT: it's stuck to my mouse and i can't let go
signature
RE: web toy
05-04-2016, 02:45 AM
wait what is going on what
I thought I was working on the dev version which oughtn't affect it... In either case it's all good now. I'll have to be more careful checking what files I'm changing
RE: web toy
05-05-2016, 03:30 AM
Heya!
I think this is about "ok" and am thinking about working on a more ambitious project - a fully fledged web game. https://github.com/Kaynato/RagdollWebtoy < I uploaded the source for this so you can see how awful it is. I am not sure if I can ask for help regarding server backend development here, regarding the new project, however.
RE: web toy
05-18-2016, 06:49 AM
(This post was last modified: 05-18-2016, 06:55 AM by Kaynato.)
I made a new spritesheet. OP was updated.
Also, this is now portable! You can put this web toy, for example, on your very own tumblr! Anything that allows you to edit the html. Put in the following in the HEAD of your page: Code: <script src= "https://code.jquery.com/jquery-2.2.3.min.js"></script> Put in the BODY of your page, ONLY ONCE, before anything else and on the very outside (don't put inside other elements): Code: <div id="figure" ondragstart="return false;" ondrop="return false;" class="mass"></div> CUSTOMIZATION: Download the css and replace https://dl.dropboxusercontent.com/u/2607...ig/fn0.png with a link to your spritesheet. It must fit the dimensions specified. Each square is 150x150 pixels.
RE: web toy
05-19-2016, 11:41 PM
Thanks!
Now I've also made it more portable. INSTRUCTIONS: Stick <script src="https://dl.dropboxusercontent.com/u/26075333/%7E/%7E/webtoy-portable.js"></script> Somewhere in your webpage. If it doesn't work, stick <div id="figure" ondragstart="return false;" ondrop="return false;" class="mass"></div> As the first thing in the <body> section. That's it.
RE: Webtoy - now portable!
05-20-2016, 02:45 AM
(This post was last modified: 05-20-2016, 02:52 AM by Kaynato.)
Now available on any site!
RE: Webtoy - now portable!
05-20-2016, 03:12 AM
I wanted to have many and I was not disappointed.
signature
RE: Webtoy - now portable!
05-20-2016, 03:15 AM
Hahaha, wow, dang.
I've gotta add multi-instance support. Don't think it'll be TOO hard, actually.
RE: Webtoy - now portable!
05-20-2016, 04:47 AM
if you do that i think they should wave at each other
signature
RE: Webtoy - now portable!
05-20-2016, 05:12 AM
I love that the very last method is appendChild(). Like you are appending a webchild to your browser.
RE: web toy
05-21-2016, 12:51 AM
(05-20-2016, 01:59 AM)Dalmationer Wrote: »I gave her some friends. The cats just keep on getting bigger. When does the madness stop??? Listening to memes of old for 5 minutes is a good use of time.
Sig:
RE: Webtoy - now portable!
05-21-2016, 09:37 PM
I keep killing her when I scroll down
|
« Next Oldest | Next Newest »
|