# Questions tagged as 'jogos'

4

## Check Old Game winner

The algorithm teacher asked us to write a code to play a simple old game in Java. And I already have everything ready, but I'm not too happy with the solution I've got to validate who won the game. I've done a series of if and elseifs to chec...
1

## Drawing Top Gear

I'm trying to make a game like Top Gear (SNES) to get a little bit of knowledge about 2D games, but I had a question about the clues: are they straight lines, curves or images? I'm using JavaFX. If I try to use curves ( QuadCurve ) it i...
2

## Procedural generation

In games like minecraft, cube world and starbound there is the term "Map procedurally generated". As you walk during the game, the map is created, but with a "seed" that will always generate the same map. > How can you use a small set of chara...
3

## Doubt two player game, half screen upside down

I am creating a program to practice what I have learned so far and to learn more, but I have reached a stalemate. The question is: I'm creating a question and answer game for two players, each one stands on one side of the phone to play, the...
2

## Many "if" in an old game for android

When checking if someone has won, I need to use IF several times. I would like to know if you can simplify the code a bit and even replace the IF s. //left, top, right, bottom are int positions relative to canvas //state is a enum{Blank,Re...
1

## How to identify and count prefab collisions at Unity

I'm developing a game for android on the unity platform that is similar to the Tetris game, the difference that is geared towards chemistry, and instead of going down the tetrominos will go down the elements to compose a molecule. Well, what log...
1

## Brute force algorithm for game resolution Sudoku in C

I have the following code written in C : #include <stdio.h> #include <stdlib.h> #include <time.h> // Variáveis globais int jogo_tabuleiro[9][9] = {0}; int func_quadrante(int quadrante, int numero) { int linha_inic...
2

## Pixel distribution algorithm

Well, lately I've been thinking about algorithms for creating random maps / maps and I've got a question that I'll post here for you to elucidate. Suppose I have green and yellow pixels. I'm not working with array, but rather a one-dimensiona...
2