Most voted "games" questions
A game or video game, also called a video game, is a form of entertainment in which the player interacts with a program through peripherals, such as controls (joysticks) and/or keyboard, where the program performs certain events through player actions.
Learn more…112 questions
Sort by count of
-
1
votes2
answers146
viewsDoubt in javascript collisions
I’m starting programming now, and I have the task of making a simple control with the keyboards on a "map" which is an image, and the cart can bypass the streets, the map is the attached image but n…
-
1
votes2
answers272
viewsUsing Unity 3D tags?
I cannot identify my prefabs with the tags I have set, I have already added the tags to the prefabs as you can see below: and my condigo: public void Checks(){ for (int y = 0; y < gridHeight;…
-
1
votes1
answer38
viewsHow to scale a bitmap quickly
I’m making a game using Surfaceview and I need a bitmap to be , for example ,a size of 20x20 ,but this bitmap is reused in other parts of the code in different sizes ,that is, it would not be…
-
1
votes1
answer2037
viewsSockets - Tic-tac-toe / Rooster Game MULTIPLAYER
EDITED POST I’m creating the so-called 'Tic-tac-toe' (or 'Rooster Game'), right now I’m trying to create a feature that allows two players on different devices - although on the same network - to…
-
1
votes1
answer728
viewsHelp with a simple game
Well, I’m trying to make a "ball" follow the rectangle of the game, but it doesn’t seem to be happening because the "ball" kind of blurs the screen when I move the player. I already looked for the…
-
1
votes0
answers56
viewsHow to use the C++ HARDWARE_INPUT structure?
I am developing a program that simulates inputs for games. Using the function SendInput() C++. I’ve already been able to simulate keyboard inputs from the structure INPUT using the parameter…
-
1
votes0
answers33
viewsDo you have any python library for creating an online game? The idea is Tetris in pygame, in q in it you can fzr a X1 with someone on another pc
My idea is that the two X1 screens, appear to both players, that they can see each other’s moves in real time. I couldn’t find anyone who knows a library like this or who can teach you how to use…
-
1
votes0
answers555
viewsPlay Tic-tac-toe with Minimax. Problem printing moves
Me and two other friends are doing an old game in C using Minimax and tree as a Data Structure project and we are having trouble receiving the move, and also when showing it to the user. We believe…
-
1
votes3
answers121
viewsHow can this be improved? (It’s just a little game)
I tried to make this game based on the Magic Cards. As I am still learning, that’s how I managed to do it. I would like to see other versions to know how I could have done and what I did of "wrong".…
-
1
votes0
answers113
viewsRecursiveness - Why am I entering a loop?
I’m trying to implement an algorithm called Minimax, but I’m finding problems in effecting its recursion, it goes into a loop that I can’t identify why. The depth of the algorithm should vary…
-
1
votes0
answers74
viewsI’m doing the game Nightmares from Unity and in the playerMovement script my character just doesn’t rotate looking at the mouse
This is my code, I thank you in advance for your help. using UnityEngine; public class PlayerMovement : MonoBehaviour { //velocidade do jogador public float speed = 6f; //vetor responsavel pelo…
-
1
votes0
answers60
viewsHelp in creating a bot for a Web Browser game
Hello, I need help to create a script that causes you to auto-click a button when entering a particular page of the game I play. Explaining better: The game has a "PVP", that when I click to enter…
-
1
votes1
answer435
viewsHow to make character jump while walking?
I am creating a game in Javascript. This is my first contact with the language and also the development of games. Going straight to the question, I can walk and jump in the game, but when I’m…
-
1
votes1
answer526
viewsMake image appear stay a while and then disappear - JS
I’m playing a game of snake (Snake) and I need to make an image appear on the canvas every 3 seconds, but it needs to last 4 seconds before it disappears. I’m trying to use the setInterval() but the…
-
1
votes0
answers23
viewsUnity3d Because my camera is rotating sharply, character even keeps blinking
I made a camera for my game in third person, but when it rotates together with the player, the player sometimes goes away, it seems as if the fps goes down (but it’s just impression). I have done…
-
1
votes1
answer68
viewsUpdate the console without flashing C++
Hello, I’m doing a game of the cover, the game is already finished, however, I believe by the high frequency of system("cls"), the console keeps flashing, and I wanted to know how to fix it Here my…
-
0
votes1
answer3045
viewsHow to develop a basic game using opengl that accepts keyboard commands
I tried to follow the source of a tutorial Metar Gearn Nanna, because I was interested in creating a game in opengl and c++, it could be something simple, with precarious validations, just to…
-
0
votes1
answer1217
viewsOnline Server and Unity 3d
Considering a game created on Unity-3d . What We Should Know to Make You an Online Multi Player?…
-
0
votes1
answer1004
viewsHow to check winner in the game of old
I’m playing an old-fashioned game on C, I want to know how to check which player won by checking the lines horizontally and vertically and on the diagonals. Here’s my program done so far: #define…
-
0
votes1
answer84
viewsInput with Link to "modal"
I am developing a project with sudoku, and I would like to show a "modal" with the possibilities every time the user clicks on some cell. This site illustrates well what I need:…
-
0
votes1
answer684
viewsOld tcp server client game
I’m using the netbeans, and the program and what is on this link: Rooster Game / Old Game with Application Level Protocol First I run the server says : server is running then run the client: and…
-
0
votes0
answers106
viewsMy tetris game descends one piece and in the second piece it game over
My game tetris descends the first normal piece, but in the second piece there in the same high, he of the game over. As if the second piece had reached the top entering the condition of the GAME…
-
0
votes0
answers156
viewsCreate a game standalone . exe in Visual Studio
I need to release a game but want to create a standalone . exe, because when VS finishes the compilation creates the . exe but together are the dll’s of the game, I wanted it to stay only the . exe…
-
0
votes1
answer150
viewserror here in my script to make the character give respawn (load.level)
When I put this following script on unity and right after the association with a transparent form (without physics) and I click on play to test, gives an error saying that can not play (look at the…
-
0
votes0
answers503
viewsProblem with 2D character Sprite display in Unreal Engine 4
I was following a tutorial from the site of Unreal Engine 4 and in a certain video has an explanation of how to give movement to some character (WASD, jump, run and etc). In another video shows how…
-
0
votes2
answers5035
viewsHow to access classes in Unity 3D (C#)
I’m making a 3D game in Engine Unity, an FPS to be more specific and taking advantage of this experience to learn programming in C#, the one I’m having in school. But now I’ve come across a problem,…
-
0
votes1
answer76
viewsHelp with level system (RPG)
Hello, I am trying to build a leveling system (like an RPG). So far I have it: Math.floor(1000 * Math.pow(level, 1.5F)); Here I enter with the level, and get the XP necessary to reach it. But now I…
-
0
votes1
answer56
viewsHow to avoid the intersection of 2 objects
I have a game problem I’m developing. The problem is, I’ve got two planes that can stand on top of each other and I don’t know what to do, any suggestions? Plane code1 int vBola=550; int CBola=600;…
-
0
votes1
answer513
viewsHow to use Tiles in Unity 5?
I’m in big trouble. I’m doing a role-playing game and using tilesets with the 32x32-dimensional Tiles for all of the game’s graphics, but Unity doesn’t support tilemaps. I’ve looked for plugins and…
-
0
votes1
answer1154
viewsGame Snake in pygame: Snake growth function
I’m writing Snake in pygame, but I don’t have a very clear idea how to implement snake growth functionality. I made a list ("lista_cobra") containing the coordinates of the head (which has…
-
0
votes1
answer49
viewsHow to detect joystick events from the browser?
Hello, whereas I have a joystick connected and running on my pc; How do I receive events from it through the browser? That’s possible? I can detect keyboard events, only I wish my little game could…
-
0
votes0
answers577
viewsI wanted to program this script to be sent between x to x hours
// ==UserScript== // @name Fakes // @include https*tribalwars.com.*place* // @grant none // ==/UserScript== var tempo =…
-
0
votes1
answer303
viewsTic-tac-toe in C. The program ends before
I am trying to make an old game in C language but in player 1’s first move depending on where to put the 'X' the program is already ending declaring the player a winner. Following this my code:…
-
0
votes0
answers859
viewsGame of life c++
Hello ! I am developing the game of life and I am not managing to get the rules applied correctly(I do not know if it is due to the function that prints or the function that checks the rules). For…
-
0
votes2
answers130
viewsSuggestions for code improvement
Good evening, I created a C++ Hangman as an exercise and would like to receive suggestions for code improvement. Thank you from the outset for those who can answer. Follows the code: #include…
-
0
votes1
answer780
viewsHow do I make an object move on the screen using Tkinter?
I’ve already started my code only I don’t know what’s going wrong so that my object doesn’t move #Praticar movimentação de objetos from tkinter import* class Bola(object): def __init__(self):…
-
0
votes1
answer274
viewsProblem creating Minimax in chess game
I am coding a chess game only in pure C. The game itself is ready, I am for some time trying to develop the algorithm of Minimax. Currently the algorithm is almost ready, but it is not returning and…
-
0
votes0
answers110
viewsCollision problems in Tkinter (game)
I’m learning Tkinter developing a little game but I’m in trouble to erase objects collided with find.overlapping from tkinter import * from constantes import * import random class Jogo(): def…
-
0
votes1
answer99
viewsProblem with comparing two cards in a memory game - JS/Jquery
Hello, this is an exercise for college and I’m not able to think of a solution to compare when two cards are equal, which would be done in the function isMatchPattern(). Could someone suggest a…
-
0
votes1
answer336
viewsPassing error (loops) - play stone paper scissors lizard and Spock
I’m making a game Stone, paper, scissors, lizard and Spock. The intention of the game is to create a function that asks me which option I will choose, while the computer randomly chooses one of…
-
0
votes1
answer75
viewsHow to detect that two bodies (in my case, balls) have touched while they are moving?
I’m doing a program in python that simulates a small game of billiards (pool) and I’m having trouble finding a simple way to identify when the two balls touch, so I can change their direction. My…
-
0
votes0
answers82
viewsAlgorithm of Habbo walls
I’m developing a Javascript game and its environment is very similar to that of Habbo: A floor and walls only at the bottom of the floor. The game map is dynamic and represented by a matrix of…
-
0
votes1
answer30
viewsCS0411 Unity error
I have this error in my code that I am not able to solve. the error code: error CS0411: The type arguments for method 'GameObject.GetComponent<T>()' cannot be inferred from the usage. Try…
-
0
votes2
answers106
viewsHow to order questions randomly?
I’m finishing a project of Quiz Unity game in C#, let me try to explain what I need, I already ask the random questions, but I want the answers to be displayed at random as well. I have a list of 5…
-
0
votes0
answers17
viewsAbout Pygame, I need a picture to get smaller and soon dps return to their normal size, cm a button being pressed for example
My main problem is that when I create a function to get the image back to normal size, instead of it shrinking back to normal, it simply skips the step of shrinking the image. (it does not have the…
-
0
votes0
answers23
viewshow to make the hedge move towards the cursor arrow
Next I wanted to do something like this hedge animation, however I do not know how to make the cover follow the mouse, the method I used at most with low-up or right-left. The code below ta inside…
-
0
votes0
answers25
viewsMy matrices do not appear on the screen in C
I need to make a memory game and I’m in the first part of it, where you need to create a null board and then distribute pairs of numbers in random positions. What I did is give the user 3 options:…
-
0
votes1
answer131
viewsPython Kick Game. Does anyone have any hints how to reduce or improve this code without using functions?
from random import randint from time import sleep valor = randint(1, 20) tentativa = 0 chute = 0 print() while chute != valor: chute = int(input('\nChute um número:…
-
0
votes2
answers44
viewsI need help on the IF command, it doesn’t work I don’t know why, it closes the program when I write FRONT is to be a writing game
package reading; java.util.Random import; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String nome; Random rand = new…
-
0
votes2
answers83
viewsError "Nullreferenceexception: Object Reference not set to an instance of an Object" in Unity
I’m trying to develop my first game with Unity, a Space Invaders, and I was able to do a lot of things, but when I get to the part of the code to create the enemy’s movement, I’m getting this…