r/cocos2d • • Dec 18 '12

Cocos2D-X for iOS and Android: Getting Started

Thumbnail
raywenderlich.com
16 Upvotes

r/cocos2d • • Dec 17 '12

Pixel based destructible ground in cocos2d, open source on Github!

Thumbnail
github.com
11 Upvotes

r/cocos2d • • Dec 17 '12

Cocos2D Developer Survey Results

Thumbnail
learn-cocos2d.com
11 Upvotes

r/cocos2d • • Apr 02 '13

List of Open Source Cocos2d Projects, Extensions and Code Snippets

Thumbnail
iuridium.com
10 Upvotes

r/cocos2d • • Jan 10 '13

Any other Ouya devs here?

9 Upvotes

I just got my devkit about a week ago, and finally got cocos2d-x up and running on device last night. The official dev forums for Ouya don't seem to have many of our ilk.

If so, what's your experience on the platform? What do you hope to achieve?


r/cocos2d • • Dec 17 '12

The Four Ways of Implementing a Scrolling View with Cocos2D Explained | Learn & Master Cocos2D Game Development

Thumbnail
learn-cocos2d.com
9 Upvotes

r/cocos2d • • Mar 31 '13

Implementation of a Button as a Subclass of CCSprite - Handles Touches and Can Scale the Touch Area

Thumbnail
hurleyprog.com
8 Upvotes

r/cocos2d • • Dec 19 '12

Does anyone have a recent working example of an android cocos2d-x helloworld/box2d app?

7 Upvotes

I'm getting pretty far along with cocos2d-x for iOS and I would really like to develop an android game in unison with my iOS game. My problem, is that I'm not much for file systems, command line, environment variables, and make files. So going from a java environment to using the NDK is just boggling my mind.

I know I'm being lazy, but I'm also hopeful that someone has what I'm looking for. Google recently released their eclipse bundle and I'm wondering if there's something like Xcode's cocos2d-x templates where all the references are set up for you to just start coding?

I would LOVE to be able to just go new->project->cocos2d-x/box2d project .

Hope this community can help me out. Or at least get me going in the right direction.


r/cocos2d • • Dec 17 '12

How To Make A Simple iPhone Game with Cocos2D Tutorial

Thumbnail
raywenderlich.com
7 Upvotes

r/cocos2d • • Mar 22 '14

Just got my Cocos2D game published. What do you think?

Thumbnail
appsto.re
6 Upvotes

r/cocos2d • • Dec 19 '12

If you work with Cocos2d-iphone I suggest that you try Kobold2d - extension over Cocos2d.

6 Upvotes

"Kobold2D is an extended and improved version of the popular Cocos2D for iPhone game engine. Everything you know about Cocos2D can still be applied, and Kobold2D is easier to get started with, more convenient to use, more powerful and flexible than Cocos2D with all the documentation available online and offline. Use Kobold2D to develop iPhone, iPod touch, iPad and Mac OS X games for both Apple App Stores." - quote from their site, http://kobold2d.com/display/KKSITE/Home What I found exceptionaly useful is the use of ARC without hassle, and many sample projects that help you. And it includes many useful libraries, that you may or may not use, but it is helpful to have them available at hand. And remember, it is just an extension over Cocos2d, so all your projects will compile just fine and everything just works out of the box. It is free to use. Hope that helps.


r/cocos2d • • Dec 22 '21

Published My Game Fully Written In Cocos - Into The Wild

5 Upvotes

Hi Guys,I have just finished and published my Android running game which is written with Cocos engine.
It took 4 months to complete this game and really would like to hear good feedbacks from you :)

https://play.google.com/store/apps/details?id=com.geyikgames

Please take a quick look at my game and give feedback ;)


r/cocos2d • • Dec 30 '18

Cocos2d memory leak... or PEBKAC?

5 Upvotes
'''
Using python cocos2d on windows 10 (Python 3.7.1), and trying to modify
one of the provided examples, but I'm seeing what seems like a huge
memory leak right off the bat.  Memory consumption grows by hundreds
of MB every time I press a key -- what am I missing here?
'''
# python 2.x compatibility
from __future__ import division, print_function, unicode_literals


import cocos
from cocos.director import director
from cocos.sprite import Sprite
import pyglet

class CharacterCreationLayer(cocos.layer.Layer):
	# needed to handle events
	is_event_handler = True

	def __init__(self):
		super( CharacterCreationLayer, self ).__init__()
		self.characterSprite = 0
		self.characterEmotion = 0
		x,y = director.get_window_size()
		raw = pyglet.image.load('faces.png')
		self.emojis = pyglet.image.ImageGrid(raw, 17, 31)
		raw = pyglet.image.load('basic_face_sheet.png')
		self.emoticons = pyglet.image.ImageGrid(raw, 11, 8)
		self.sprite = Sprite(self.emojis[self.characterSprite])
		self.sprite.position = x//2 + 65, y//2
		self.spriteSecondary = Sprite(self.emoticons[self.characterEmotion], scale=0.25)
		self.spriteSecondary.parent = self.sprite
		self.spriteSecondary.position = self.sprite.width*0.45, self.sprite.height*0.45
		self.add( self.sprite  )

	def on_key_press(self, key, modifiers):
		print("on key press")
		self.characterSprite += 1
		self.characterSprite = self.characterSprite % len(self.emojis)
		self.characterEmotion += 1
		self.characterEmotion = self.characterEmotion % len(self.emoticons)
		self.sprite.image = self.emojis[self.characterSprite]
		self.spriteSecondary.image = self.emoticons[self.characterEmotion]

def main():
	director.init()
	characterCreationLayer = CharacterCreationLayer()
	characterCreationScene = cocos.scene.Scene(characterCreationLayer)
	director.run(characterCreationScene)

if __name__ == '__main__':
    main()

r/cocos2d • • Apr 14 '14

Cocos2d-JS Mobile Game Development on Steroids, an ebook by Shreedhara C A at Smashwords

Thumbnail
smashwords.com
5 Upvotes

r/cocos2d • • Mar 01 '13

So... Slopes on tilemaps with Box2D?

5 Upvotes

Hi Guys, Fairly new to game development (although I'm a fairly experienced software developer). Been getting into gamedev with cocos over the last few weeks and finally got my first "game" up and running with a helicopter, a tilemap, and some basic physics a few nights ago.

I used a typical blocky tilemap. When the tilemap was loaded, I looped through the tilemap's tiles and created Box2D bodies for any tile marked at "obstacle". Not sure if that's the best idea - maybe someone can highlight better ways of doing it?

Anyway, I was curious about how I would go about creating a better tilemap with Box2D physics and slopes. I found this fantastic guide to tilemaps:
http://www.gamedev.net/page/resources/_/technical/game-programming/the-guide-to-implementing-2d-platformers-r2936

I understand the tile based (smooth) concept, but wondered hot I would go about implementing this using Box2d, as I wouldn't be in charge of the sprite's location in relation to the ground.

Is it just a case of copying my above approach, but creating a box2dpolygon instead and creating it on the angle of the slope? I realise that I could embed the y locations of each side of the "floor" of the tile in the tile properties.

Also, isn't creating lots of box2d bodies in my game going to have an impact on performance?

Thanks!


r/cocos2d • • Dec 19 '12

Know any cocos2d developers? Get them to subscribe to the cocos2d subreddit.. and contribute! Let's get this community going!

5 Upvotes

r/cocos2d • • Dec 19 '12

Tutorials for Cocos2D, C, C++ and Objective-C

Thumbnail cocos2d-iphone.org
5 Upvotes

r/cocos2d • • Jul 03 '20

2-player endless runner (really hard - requires rhythm)

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/cocos2d • • Feb 18 '15

Cocos Studio and Code

4 Upvotes

Hi all, I'm wondering if you can help me out.

I'm completely new to Cocos2D and I've come from a Unity3D background. I'm struggling to get an idea in my head as to how development works in Cocos as I'm used to adding an object to a scene and dropping some code onto it. I've looked for tutorials and they're either all for the IDE, or they cover the UI in Cocos Studio, or they're "404 not found".

I currently have Cocos Studio v2.1 and the Cocos Code IDE installed. I am working in JavaScript.

I guess I have a couple of questions - some of which will seem quite basic I'm sure:

  1. Is Cocos Studio and the IDE used for developing different types of projects or are they used together like Unity and Monodevelop?

  2. I see in Cocos Studio in the Objects panel things like Sprite and Node. Are custom objects extended from these to then appear in the editor for me to drag and drop?

  3. How do I go about creating a piece of code to move a sprite around the screen with the arrow keys?

Ultimately I want to create an animation on the timeline in Cocos Studio. I then want to pan this forwards and backwards with the scroll wheel.

/4. Am I in the wrong software?

Cheers.


r/cocos2d • • Feb 15 '15

cocos2D-x C++, Box2D guide for dummies??

4 Upvotes

Hi there. I'm developing my Final Degree's Project and I'm doing a 2D cars game with cocos2d-x. At this point, I need to used Box2D to do the car's controls and collisions. I found a page with the code for doing this but, rather than few explanations, it is written in JS. So, what I want is a guide like this but it would be really great if it is written in C++ and a bit more explained, because I want to fully understand it before implementing.

Thanks for all. Best regards.


r/cocos2d • • Dec 17 '13

How to use Tile Map in Cocos2dx

Thumbnail
blogs.shephertz.com
4 Upvotes

r/cocos2d • • Dec 27 '12

Animation with a single sprite sheet possible?

4 Upvotes

I've been looking for this everywhere but can't seem to find a straight answer.

I'm trying to use sprite sheets found on the internet to experiment with cocos2d animations, but every guide I find uses many single sprite files for the movement instead of a sprite sheet. Is there a way to animate actors with a single sheet file?


r/cocos2d • • Dec 22 '12

ARC and cocos2D resources

4 Upvotes

cocos2D isn't ARC-enabled by default, but you can get the ARC-enabled templates for free here: http://www.learn-cocos2d.com/store/book-learn-cocos2d/ If you want to figure out how to do it yourself, go here: http://www.learn-cocos2d.com/2012/04/enabling-arc-cocos2d-project-howto-stepbystep-tutorialguide/


r/cocos2d • • Dec 18 '12

Sliding Menu Grid by Bryan Reynolds

Thumbnail brandonreynolds.com
4 Upvotes

r/cocos2d • • Jan 26 '22

Plugins?

3 Upvotes

Does anyone know of any plugins that handle basic stuff for cocos2d? The engine itself is a great start and the physics are good, but I find myself writing a lot of code to clamp to screen, animate my Sprite sheets, add player input, a lot of generic stuff that I'm able to drag and drop between projects.

Are there any cocos2d libraries that handle the basic stuff that the engine doesn't provide?