Giter Site home page Giter Site logo

c_bomberman's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

c_bomberman's Issues

Structure change

Let's change the "Bombs" structure to some "AnimatedObjects" and stuff
It should manage a list of animated objects, each containing

  • Animation index
  • Position

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

Forgotten free

Every time we crash the app with exit(EXIT_FAILURE),
we DO need to free everything before

Player speed

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.

Free forgotten

We need to free "playerVars", "bombVars", or in general "variables" if it's not null

updateAnimations

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

Reverse loop

Change the editorLoop's deletion for i backward to avoid possible conflicts

Collisions

Need to code the collisions between the players and the blocks, as well as the boxes and spikes.

Enjoy the grid structure

Lots of grid related stuff can be shorten in editor.c such as not calculating marginTop again. Let's use it

Debug

We need to add printf's everywhere for Morvant.
Even print the whole board

game is useless

After converting the players to some objects, having a game.h/.c will become mostly useless

Text in editor

We could put text in the editor's hub and also a slot to show what the current item is

Editor's deletion

As mentioned in the comments by sereyn, we need to generalize the editor's deletion system

justClicked

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

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.