Questions tagged [cocos2d]
cocos2d is a free open-source framework for building 2D games, demos, and other graphical/interactive applications.
275 questions
0
votes
1
answer
88
views
Box2d: High screen resolution / frequency causes high friction?
I'm using Cocos Creator with (built-in) box2d for physics.
Recently our game behaves weirdly on our new device Galaxy S20 Ultra 5G - which has screen size = 1440 x 3200 - frequency = 120Hz.
After stop ...
0
votes
0
answers
249
views
How to take input from featured mobile phone in cocos creator?
I am beginner to cocos creator and I came to know cocos has Keyboard,DeviceMotion and Mouse input event but I want to know how to take input from featured mobile phone having number pad?
Will it be ...
2
votes
0
answers
73
views
What is the right way to implement a loading screen in cocos2d-js?
We have two scenes that are loaded with heavy computation; a map screen and a puzzle screen. When we change the scene from A to B, the app gets stuck on scene A for a while before it renders scene B.
...
1
vote
0
answers
399
views
Given the size of far and near plane, find other parameters of a frustum
I am trying to find the correct parameters for setting up my perspective camera. But I don't know the mathematics involved in that. Can somebody point me to the right direction?
My near plane should ...
0
votes
1
answer
99
views
Adjusting arms of character while moving
I'm working on a test game in Cocos2d for Python (code is a little dirty). I'm trying to run and shoot at the same time without having my character's (running) legs go back to the beginning position ...
1
vote
1
answer
70
views
Help understanding the parkour tutorial in Cocos2d
I was practicing the parkour tutorial for chapter 7, but I failed to understand why we should move the same delta movement of this.gameLayer, which contains the ...
0
votes
2
answers
109
views
Make something move when no key is pressed
I am new to game programming and I have a question about my game logic.
In my game there is a balloon that is supposed to collect some stars. the balloon moves with the keyboard. When the balloon ...
0
votes
1
answer
1k
views
How do I publish a game for the web, using Cocos Creator?
I am new to Cocos Creator and web game programming. I have build a simple game for the web, but I don't know how can I publish it. In the documentation files, it says:
You only need to .zip scripts ...
0
votes
1
answer
178
views
Cocosdenshion and Android not working
I'm trying to play sounds and music with cocos2d. When I run on iPhone and .caf files the audio is perfect, but on Android it is not playing the background music and is only playing 2 sounds of 10 ...
0
votes
1
answer
95
views
Cocos2dx launcher - how do I set a newer engine version?
Why doesn't Cocos(V3.10) detect my newer engine version (3.14) which I downloaded and placed into the engine folder? ( I mean the launcher, the all-in-one version where you can create your project ...
1
vote
0
answers
47
views
Socket.io emit textfield
Hello everyone I learned how to emit from socket.io website guides but I was wondering how does the chat example receive its input? For example in my cocos2dx app how do I pass a text field over to ...
0
votes
1
answer
4k
views
Minimum hardware requirements for developing for iOS and Android with Unity, Cocos2d-x and GameSalad on a Mac
I intend to create iOS and Android games. My main priority is to create 2D games. The software that I’m planing to use are Unity, Cocos2d-x and GameSalad.
I am a bit interest in the Mac Mini, ...
0
votes
2
answers
516
views
Cocos2dx - Create the friction of the ground
I'm writing a game, it a pool game.
I've read about cocos2dx + physics library, however the document is really poor to understand.
Material has 3 attributes (http://www.cocos2d-x.org/wiki/Physics#) :
...
3
votes
0
answers
289
views
Batch z-ordering problem in Cocos2d (Python)
I have a weird problem with my hexmap drawing code.
My code uses "squished" hexagons to achieve a pseudo-isometric view. Because of that, the order of drawing them on screen matters a lot.
...
2
votes
2
answers
471
views
Cocos2d JS - Getting vector reflection
I'm working on a small Breakout clone using Cocos2D-JS, without the use of a physics engine.
One of the things that baffles me was how the ball bounces. My friend came up with this:
inputVector - 2(...