cocos2d / cocos2d-iphone-extensions Goto Github PK
View Code? Open in Web Editor NEW3rd party extensions for cocos2d-iphone
Home Page: http://www.cocos2d-iphone.org/forum/forum/17
License: Other
3rd party extensions for cocos2d-iphone
Home Page: http://www.cocos2d-iphone.org/forum/forum/17
License: Other
Subj.
While scrolling if you move your finger and than just release your finger of the menu if should scroll a bit more - smooth scrolling
Like a UITableView
Looks like i forgot to add ability to disable autoclaim touches on iOS & didn't provide test for it.
Probably the last version of CCScrollLayer in iTraceur have this already - check there before coding new stuff.
Also - there's a lot of TODO's in CCScrollLayerTest - close them all.
Definitely.
FilesDownloader will fail if any redirect occured.
Probably we can handle some redirects and proceed to download.
@Seasons7 your CCSlider has some functionality that existing CCSlider in extensions repo doesn't.
Could you take a look at this CCSlider, please? The best way is probably get latest cocos2d-iphone-extensions and test CCSlider within cocos2d-iphone-extensions-ios.xcodeproj & cocos2d-iphone-extensions-mac.xcodeproj
@hiepnd, @Seasons7
I think we should integrate pros and remove cons of both CCSlider's for the extensions repo.
Your comments, suggestions & pull requests are always welcome!
Thanks!
Subj. Test it - fix it.
iOS version only.
Subj. Probably @slycrel can help us with this.
Thanks!
Subj.
BTW if you need something like CCScrollLayer without snapping effect for menus - take a look at CCMenuAdvanced.
Two people already have problems with that:
Default GitHub tarballs doesn't inlcude submodules.
Subj. This is fixed by wilczarz at the moment.
Issue will be closed in few commits (test+fix)
On Mac this can be done by adding TileCore from Tile-Cutter.
On iOS this needs some smarter image processing library, that can read large png in parts.
The best approach is to prepare plist & tiles in NSCachesDirectory and use them later.
It's stupid, but can be handy for small CCBigImage's (more than 2048x2048 but less than 10k x 10x)
Add, addWithNumber, remove, removeWithNumber.
Start mentioning authors of extensions with requests for MIT License, documentation, etc...
Look on the 3rd party extensions subforum - there's some extensions that are not listed here.
http://www.cocos2d-iphone.org/forum/forum/17
Subj, there was a discussion on cocos2d forum. Here it is:
http://www.cocos2d-iphone.org/forum/topic/9220
I propose fixing CCBigImage to work correctly at different scales. CCBigImage is a very good solution to provide a background to your game world. As well as panning many games require zooming in and out of the world. This is generally done by scaling the world layer.
I see CCBigImage working at different scales as an essential component.
Hi,
Please reconsider calling the folllowing in ccTouchMoved method of CCScrollLayer.m:
[[CCTouchDispatcher sharedDispatcher] touchesCancelled: [NSSet setWithObject: touch] withEvent:event];
The problem is that if I provide implementation of ccTouchCancelled, it will be called during the first ccTouchMoved invocation, and in my opinion it should only be called when the touch is interrupted by external event (system message, phone call etc.)
Consider the following example: the scroll layer holds the first scrolling touch to avoid multiple touch issues (see http://www.cocos2d-iphone.org/forum/topic/17118) With this approach I really need following method, to release the touch when incoming call appears:
-(void)ccTouchCancelled:(UITouch *)touch withEvent:(UIEvent *)event {
if( scrollTouch_ == touch ) {
scrollTouch_ = nil;
[self selectPage: currentScreen_];
}
}
However, when present, ccTouchCancelled will be called just after scroll starts and therefore, no scrolling animation occurs.
Thanks!
Probably someone will ask for this after Lion release.
Rename from VideoPlayer to CCVideoPlayer
Like the one that cocos2d-iphone uses.
Rename FileDownloader to SingleFileDownloader.
Enable & Test on Mac Support.
Change links in README to CCVideoPlayer in extensions repo.
Cleanup & license.
Right now only horizontal & verticall alignment is setting CCMenuAdvanced's contentSize.
To change full behavior of CCMenu into CCMenuAdvanced rows and columns alignment methods should be changed.
It's pretty simple, probably. I just didn't do it, because i didn't use this alignments before.
After new screen rect calculation - performance can decrease.
Currently only Landscape Left & Landscape Right are supported.
Looks like subpixel render issue... I don't have it in my game.
Here's the illustration: http://dl.getdropbox.com/u/1765875/CCScrollLayerBug.png
http://www.cocos2d-iphone.org/forum/topic/1722/page/3 by @manucorporat
It's better than GLKit screenshot cause should be compatible with iOS 4 and older.
Solution posted by Jonathan in "Anybody plays video somehow?" topic
Currently CCBigImage doesn't use it's tranform to calculate it's visible rect.
So it doesn't support scale, rotate and other transforms.
A bouncy effect to the ccmenuAdvanced class when reaching the end (or begin) of the menu (like the UITableView)
Right now target = nil leads to calling methods in CCStoredMessages not target.
Currently FilesDownloader works on Mac the same way as on iOS - it saves files in the caches folder.
On iOS - there are many Caches folders for each app in its sandbox.
In OS X - there's only one Caches folder for each user.
~/Library/Caches/__BUNDLE_IDENTIFIER must be used instead of ~/Library/Caches on Mac.
Doesn't have independent test.
Cocos2d as a submodule.
Basic README
Mac & iOS XCode Projects.
Repo structure:
One can be found here:
http://www.learn-cocos2d.com/2011/01/cocos2d-gem-clippingnode/
Another can be found here:
https://github.com/Seasons7/CCSlider/blob/master/Classes/CCNodeClipping.m
Second is a part of @Seasons7 CCSlider.
Linked issue: #21 - CCSlider's features merge.
Subj.
Ability to scroll to an item.
Methods:
-(void)scrollToItem:(CCMenuItem*) item {
//search for this item and scroll to it
}
-(void)scrollToItemAtIndex:(int)index {
//scroll to item at "index"
}
Ability to disable the snapping effect to do thing like e.g:
Like a UIScrollView.
It's very cool, so i'll add it in 0.1
The one that i forked from Israel Roth.
Testcase idea: CCSlider & CCLabel that shows CCSlider's value.
Subj.
Discussion: http://www.cocos2d-iphone.org/forum/topic/17464
It will be right to throw away customVideoView.nib, header and implementation.
Instead of that i should integrate all View setup right into VideoPlayerMacImpl
Subj, it should be pretty easy.
https://github.com/psineur/CCMenuAdvanced
alignVertically by default.
Set isRelativeAnchorPoint = YES by default.
Right now almost all code in CCMenuAdvancedTest is taken from CCMenuAdvanced Repo, which was used to demonstrate how to build universal cocos2d menu.
This is not needed in cocos2d-iphone-extensions repo.
So all unnecessary universal menus should be removed, and full tests coverage should be added.
I have problems with it on my fork of 0.99.5-rc1, due to freezes (CGLockContext + NSLocks in CCTextureCache).
Need to test how it works with 1.0
Maybe some thread safety must be added to cocos2d.
Subj. Right now it keeps playing in the background, while glView is visible.
Subj.
__Also check my personal TODO list on Desktop - there maybe something that must be pushed to extensions repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.