rgimad / gravity_defied_cpp Goto Github PK
View Code? Open in Web Editor NEWRewrite Gravity Defied mobile game from Java to C++ & SDL
License: GNU General Public License v2.0
Rewrite Gravity Defied mobile game from Java to C++ & SDL
License: GNU General Public License v2.0
Привет! Очень круто, респект всем кто это сделал.
Я один из разработчиков порта под андроид и по совместительству админ сайта gdtr.net. Вы не против, если я размещу ссылку на этот проект на сайте? С указанием авторства, естественно.
Также, если вам будет интересно в будущем сделать интеграцию с нашей базой модов, я готов предоставить любые API в любом удобном формате.
The project was ported from Java to C++ using automated tools, and during the porting process, raw pointers were used extensively, as they were the simplest option for the port. However, this has resulted in a memory leaking issue in the project.
Upon investigating the issue, it appears that the memory leak is caused by the improper handling of dynamically allocated memory. In particular, it seems that dynamically allocated memory is not being properly deallocated, leading to a buildup of unreferenced memory over time.
In order to fix this issue, it will be necessary to thoroughly review the code and identify the root causes of the problem. This may involve manually correcting the C++ code to properly handle dynamically allocated memory.
Headers must be in the include folder
Many things converted from Java look extremely strange. The resulting code, to put it mildly, does not correspond to modern C ++. Maybe it's worth rewriting while maintaining compatibility with level files?
The game is currently running at only ~33 FPS, which is not sufficient for modern games. It would be great to increase the FPS and make it configurable, but there is a problem: the physics in the game is tied to the FPS, so if the FPS is simply increased, the game's time would flow faster, which is not acceptable. Therefore, before increasing the FPS, it would be necessary to untie the physics from it in some way.
Hi @AntonEvmenenko! @rgimad and I had an idea to make the binary more autonomous, that is, to include resources in it. Of course, the best option would be to use Windows Resources, but there is nothing similar for Linux. Therefore, my idea is to compile resources into a binary. There are two ways:
When you complete all easy level track, then medium unlocks. Then you complete some tracks of medium, close the game and open again. But now current track is set to the last track of easy level, not the track of medium which you played last time. AND: all previously completed tracks of medium is LOCKED, except the first track of medium.
Hello,
I'm super happy to find this project. I'm a big fan of Gravity Defied, and I think C++ port would allow fans to do a lot of cool things with the game.
If you need any help or support, or just an extra pair of hands to work on the project, please let me know. You can message me in Telegram (@anton_evmenenko)
I also speak Russian :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.