sereyn / c_bomberman Goto Github PK
View Code? Open in Web Editor NEW3rd semester project at UJM
License: MIT License
3rd semester project at UJM
License: MIT License
Let's change the "Bombs" structure to some "AnimatedObjects" and stuff
It should manage a list of animated objects, each containing
Then we could use it to create one handling bombs, ones for each of the flame animation, ...
Therefore we could remove the updateAnimations function and call
Instead of having a lifespan, bombs would be destroyed when the animation index reaches its end, same would go for the flames
Every time we crash the app with exit(EXIT_FAILURE),
we DO need to free everything before
As a result of moving the player with a pixel per frame speed, its speed depends of not only the framerate which we don't actually care but more importantly the grid size.
We should give to the player a speed relative to the grid size.
We need to free "playerVars", "bombVars", or in general "variables" if it's not null
Add the infos about make debug
in the readme
Change everything to pointers
We need to create an "updateAnimations" function that has an explicit enough name.
We would increase all the animation indexes in it according to their speed.
We have to do it that way and not in the "drawAnimation" function as we currently do it because it would increase too much the index if you draw more than once a certain animation at the same frame
Change the editorLoop's deletion for i backward to avoid possible conflicts
Need to code the collisions between the players and the blocks, as well as the boxes and spikes.
We need to find a way to check when the user clicks for not creating hundreds of blocks in the editor
Lots of grid related stuff can be shorten in editor.c such as not calculating marginTop again. Let's use it
We need to add printf's everywhere for Morvant.
Even print the whole board
After converting the players to some objects, having a game.h/.c will become mostly useless
Only works with left control or right but not both
We could put text in the editor's hub and also a slot to show what the current item is
As mentioned in the comments by sereyn, we need to generalize the editor's deletion system
Generalise the toolbar for more efficient implementations
We should do the same as keys.h/c but for the mouse so that we can know if a click has been just.....
...clicked!
I suggest we could just extend the keys library by renaming it to inputs
While using the editor, if you put an item over a different one, you need to remove the old one at that place!
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.