Questions tagged as 'game'

1
answer

Detect and destroy colliding objects

This is the code: import pygame,sys from pygame.locals import * from random import randint ancho = 1280 alto = 720 class Snake(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.Image...
asked by 03.01.2018 / 22:42
2
answers

Memory failure error

I'm trying to create a game but when I pass the cell phone to try it I throw the error of lack of memory. I do not know why this error is occurring because the images I use do not take up much of anything. How can you solve it? Here is the ga...
asked by 14.05.2018 / 01:24
1
answer

Rebounding angle of two Circles

How can I calculate the bounce angle between two circles ... ?? I use the following code to check and resolve collisions. -- CHECK COLLISIONS BALLS AND RESOLVE ... function CheckCollisionResolve(a, b) local dx = a.x - b.x; local dy...
asked by 08.06.2017 / 18:30
0
answers

I want to create an object within another, but I can not use adds in sprite - HaxeFlixel

I want to create a box with a coin, which appears when I destroy it. The problem arises when I break the box, the currency appears but it is invisible because I can not do add in the states . How can I create the coin in another way so t...
asked by 02.06.2017 / 21:25
0
answers

Doubt about a simple game of stone paper scissors lizard spock!

From a static array where I have {stone, paper, scissors, lizard, spock} I'm interested in the computer taking one randomly. How would you do? import java.util.Scanner; public class Principal { public static void main(String[] args) {...
asked by 19.11.2018 / 12:52
1
answer

Rain effect in Android Studio

I'm trying to create the rain effect. I already created the sprite, what I do not know is how to make X number of drops per second or life time appear. Can someone help me? Thank you. Sprite: public class Sprite_Lluvia { private Bitmap...
asked by 20.12.2017 / 15:18
1
answer

Vertical ladder in 2D game

Let's see I'm designing a 2D game with unity, but I'm looking for a solution to make a method in my main character's script where when entering a collider2D (with a Trigger2D) placed in his vertical stair sprite, he can activate your climb anima...
asked by 02.12.2018 / 16:28
0
answers

JAVA know if a Puzzle n X n has a solution

I would like to know how to make a code that lets me know if a puzzle n xn (in which I generate random positions [and leave a picture of the game]) has a solution, so I saw not all the different possibilities of generating A puzzle has a solutio...
asked by 08.05.2018 / 01:05
1
answer

Problem with collisions of a softbody in unity

I am developing a game where collisions with other objects are very important. I downloaded a prefab from a softbody (like a jelly cube) that has perfect collisions with the ground, a plane, but when moving it against other objects (like walls,...
asked by 23.03.2018 / 14:16
0
answers

Ogre does not take the materials correctly

in blender I made a model with several textures to give the depth effect (version of blender 2.69) and then export (exporter of ogre version 0.6.0), but when I load it in ogre it is very badly loaded, I do not know It combines the materials well...
asked by 25.05.2017 / 20:14