ashish2199 / Aidos

A beginner friendly project with aim of creating our own version of Bomberman.
GNU General Public License v3.0
41 stars 27 forks source link

Questions about new image being created for every object. #51

Open Windspar opened 6 years ago

Windspar commented 6 years ago

First. Still pretty new to java and I'm self taught. I done some programming in D and Python.

Looking through code. It seems you create an new image for every object. Even if it the same object. Just wonder why images are not static to the object ?

Why isn't Sprites called AnimatedSprite ?

Also wondering in nbproject .project.properties. How can I ignore this ? I have to change line 72 to false. line 72 (javafx.deploy.includeDT=true)

ashish2199 commented 6 years ago

Sorry for late reply.

Just wonder why images are not static to the object ?

We do have the Image which we use for main sprite sheet ( Image img )as a static image only inside the Renderer Class. We create image object which are a cropped version of that main sprite sheet.

We are still in early stages of development, if we face any memory issues or slowdown we will look into those optimizations.

Why isn't Sprites called AnimatedSprite ?

hmm because we would also want to refer to non animated objects like walls and stones using it.

I didn't understand what problem you are facing because of it. nbproject.properties is a file which Netbeans uses. It has been created by Netbeans and we haven't written it.

Windspar commented 6 years ago

I didn't understand what problem you are facing because of it. nbproject.properties is a file which Netbeans uses. It has been created by Netbeans and we haven't written it.

My problem with it. Is git wants to commit it. How to get git to ignore it without effecting the project ? I don't use netbean. I just use a terminal and atom.

We are still in early stages of development, if we face any memory issues or slowdown we will look into those optimizations.

None. My question is more about programming style it self.

Questions Why did project choose to use a sprite sheet ? It just seem like a lot of work in slicing.

Why is resources in source path ?

I made my own experiment branch. For playing with ideas. I using tile sprite sheet. It doesn't use netbean . But I did use ant.

ashish2199 commented 6 years ago

My problem with it. Is git wants to commit it. How to get git to ignore it without effecting the project ? I don't use netbean. I just use a terminal and atom.

This link might be helpful in removing it and then adding it to your gitignore

Why did project choose to use a sprite sheet ? It just seem like a lot of work in slicing.

We used sprite sheet as it was available to us easily. I too feel using individual images would be easier to use in programming as it would get rid of coordinates needed to crop them.

Why is resources in source path ?

Hmm I don't know why we have it that way. Now that I think of it. It seems that it should be outside only.