Webtoy - now portable! - Printable Version +- Eagle Time (https://eagle-time.org) +-- Forum: Archive (https://eagle-time.org/forumdisplay.php?fid=25) +--- Forum: Adventures and Games (https://eagle-time.org/forumdisplay.php?fid=30) +---- Forum: Projects and Comics (https://eagle-time.org/forumdisplay.php?fid=33) +---- Thread: Webtoy - now portable! (/showthread.php?tid=1555) |
RE: web toy - Kaynato - 05-03-2016 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 - Kaynato - 05-03-2016 I regret this rewrite incredibly RE: web toy - OTTO - 05-03-2016 You must be registered to view this content. RE: web toy - Kaynato - 05-04-2016 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 - OrangeAipom - 05-04-2016 https://i.imgur.com/R1YtzlS.png what does this mean EDIT: it's stuck to my mouse and i can't let go RE: web toy - Kaynato - 05-04-2016 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 - Kaynato - 05-05-2016 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 - Justice Watch - 05-05-2016 I want to make them happy. Let me show affection RE: web toy - Kaynato - 05-18-2016 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/26075333/%7E/%7E/fig/fn0.png with a link to your spritesheet. It must fit the dimensions specified. Each square is 150x150 pixels. RE: web toy - Reyweld - 05-18-2016 I like the new art, even cuter! RE: web toy - Kaynato - 05-19-2016 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: web toy - Dalmationer - 05-20-2016 I gave her some friends. RE: Webtoy - now portable! - Kaynato - 05-20-2016 Now available on any site! RE: Webtoy - now portable! - OrangeAipom - 05-20-2016 I wanted to have many and I was not disappointed. RE: Webtoy - now portable! - Kaynato - 05-20-2016 Hahaha, wow, dang. I've gotta add multi-instance support. Don't think it'll be TOO hard, actually. RE: Webtoy - now portable! - OrangeAipom - 05-20-2016 if you do that i think they should wave at each other RE: Webtoy - now portable! - a52 - 05-20-2016 I love that the very last method is appendChild(). Like you are appending a webchild to your browser. RE: web toy - Reyweld - 05-21-2016 (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. RE: Webtoy - now portable! - a52 - 05-21-2016 I keep killing her when I scroll down |