GithubHelp home page GithubHelp logo

luizppa / top-gear Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 45.01 MB

The SNES Top Gear game made in Allegro 5

License: GNU General Public License v3.0

Shell 0.71% C++ 99.29%
allegro allegro-framework allegro5 car-game cpp game-2d snes top-gear

top-gear's Introduction

top-gear's People

Contributors

luizppa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

top-gear's Issues

Playing consecutive races causes the cars to be rendered incorrectly

When playing multiple consecutive races causes the cars to be incorrectly ordered on the **cars array (global variable in helpers/game.c) therefore, causing them to be rendered in an incorrect order and also affecting things like placements.
Running a few tests i could realize that the cars array stays ordered like it has been at the end of the first race placed, which should not happen since the array goes through a quick sort each time the game is updated. To avoid this i started cleaning the cars array at the end of each race (on void clear_game() at helpers/game.c line 717) and refilling it at each race start (on void setup() at helpers/game.c lines 583 and 589) but it does not seem to be of any help.

Compilação no Windows com MINGW

Olá Luiz,

Tentei compilar seu jogo no Windows com MINGW porém não tive êxito, apesar de conseguir alterar o makefile-windows até que todos os arquivos fossem compilados (gerados o ".o") deu problemas no linker.

Tentei criar um projeto no MSVC 2022, mas foi pior ainda, a versão do C++ do MSVC é superior e diversas modificações teve que ser feitas no código apenas para tentar compilar, mesmo assim também não consegui compilar.

Eu ainda não testei no linux pra ver se dá certo, porém queria mesmo compilar no windows.

Será que tem alguma coisa que estou fazendo errado pra tentar compilar o game?

Obrigado.
[]'s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.