GitShow/tj/game-prototypes
tj

game-prototypes

JavaScript & CSS3 game prototypes

by tj
Star on GitHubForkWebsitenpm

JavaScript

74 stars8 forks1 contributorQuiet · 14y agoSince 2011

Meet the team

See all 1 on GitHub →
tj
tj88 contributions

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 14y ago
See all on GitHub →
thinkt4nk
Object ContainmentOpenPR

Ok, I added support for selector containment, easily used like the following. You can see it illustrated in the default example of my fork. The cat box is bordered by 1px solid red. move('#cat') .add('left', Math.random() \ 30 | 0) .add('top', Math.random() \ 30 | 0) .contain('#cat_box') .end() I also added converse property translation. The converse translation works when I do something like the following: move('#cat') .add('left', Math.random() \ 30 | 0) .add('top', Math.random() \ 30 | 0) .contain({ bottom : '+30-50' }) .end(); Basically, it'll convert the bottom containment to the appropriate top, since that's the prop that's set in the Move object. In this case, you would be contained to the 'top' equivalent of 30 to 50 px from the bottom. This code might need some cleaning up, and I'm totally open to suggestions.

thinkt4nk · 14y ago

Recent fixes

View closed PRs →
thinkt4nk
object containmentMergedPR

I thought Move could use some containment controls, so I added a Containment class that allows one to set containment constraints (e.g. { top: '+350', left: '-200' } would contain to top-left corner of document ). These constraints are applied on Move's 'start' event. I intend to add support for containment through an object selector string, as well. I love this library! Thanks so much, and I will let you know what prototypes I cut in the near future. An illustrator friend of mine and I are thinking about story-boarding something very soon. ~Ryan

thinkt4nk · 14y ago
Structured data for AI agents

Repository: tj/game-prototypes. Description: JavaScript & CSS3 game prototypes Stars: 74, Forks: 8. Primary language: JavaScript. Languages: JavaScript (100%). Homepage: http://visionmedia.github.com/game-prototypes/ Open PRs: 1, open issues: 0. Last activity: 14y ago. Community health: 28%. Top contributors: tj.

·@ofershap

Replace github.com with gitshow.dev