Questions tagged as 'game'

1
answer

How to send data with JS? no page refresh

I'm trying to create an HTML Game and need a way to send data to a database (MYSQL) and would like to know how I can send site data to a server without the page refreshing. If anyone knows some libraries I can use to develop a 2D game in html...
asked by 21.11.2017 / 04:18
1
answer

Problems developing a bricks-breaking game in tkinter (collisions with objects)

I'm a few days studying and trying to get the ball by hitting the rectangles from above they add and invert the side from tkinter import * from constantes import * import random class Jogo(): def __init__(self): #Criar tel...
asked by 19.06.2018 / 14:29
0
answers

Drawing in the middle of the screen with the android canvas

How to draw in the middle of the screen, in all the attempts I made I was able to just stretch the drawing and not move it to the center of the screen. public class Carta { private static int ALTURA_DA_CARTA= 200; private static int LARGURA_D...
asked by 12.11.2018 / 00:34
1
answer

Python Advocation game

I have with the following problem: at every attempt of the user, the code does not accuse if it is cold, hot, warm, boiling. That is, do not give the tips to the player. If anyone can help me, I thank you! print('Você tem 10 chances de acertar...
asked by 17.05.2018 / 03:54
1
answer

Move sprite to the position of the mouse with Phaser

I need to move a sprite to the mouse position, I used the game.physics.arcade.moveToPointer() function, but only works with sprites that have the body of type Phaser.Physics.Arcade . How do I use this function using a body...
asked by 27.02.2018 / 06:19
1
answer

Sprites Phaser JS

I have a problem with the animation of my character using sprite, I have a sprite with 7 frames of 100x90 for animation left and 7 frames of 100x90 for animation right, the problem is precisely in organizing that sprite and its animation, on the...
asked by 09.08.2017 / 23:50
1
answer

How can I improve my gamer gaming code?

What tips would you give to improve this gaming code in Python? In the "course" I'm doing in Python I have not yet learned how to use string methods yet. It's a very simple game, with no graphical interface because I do not know how to do it and...
asked by 12.09.2018 / 21:40
1
answer

Unity get gameobject disabled

My player has a shield that is disabled in it, and I have a game manager that wants to take care when it can activate the shield or not when the player is instantiated in the scene the game manager does not find the component of the shield, this...
asked by 01.06.2018 / 03:55
1
answer

Set difficulty for a question and when selecting the difficulty to search only those questions

Good afternoon! I'm finalizing a C # Quiz done in Unity. The question I have is, I have several issues that I generate via an Asset. But I need to set the difficulties for each of the issues. And by clicking on the Easy difficulty menu, I wan...
asked by 28.10.2018 / 01:02
1
answer

I can not access a class in another script in UNITY 2D

Hi, I'm having trouble calling PlayerBase and playerBase in another script This is the error that gives: Assets / Scripts / MainMenu / SelectScreenManager.cs (112,16): error CS0246: The type or namespace name 'PlayerBase' could not be found....
asked by 15.08.2018 / 00:58