Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Windspar opened this issue Feb 8, 2018 · 3 comments
Open

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

Windspar opened this issue Feb 8, 2018 · 3 comments

Comments

@Windspar
Copy link

Windspar commented Feb 8, 2018

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
Copy link
Owner

ashish2199 commented Feb 24, 2018

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants