Page 1 of 1

modify sprites file

Posted: 20 January 2020, 16:41
by tchobello
Hello

I'm adding sprites in a sprites file and I also need to move the existing ones.
I've had a bug report last time as it has disturbed display on existing games so I had to switch back to a former deploy.

Is there a way to do that without altering existing games ?

Re: modify sprites file

Posted: 20 January 2020, 19:55
by RicardoRix
css selector for the new image file with the new php?

Re: modify sprites file

Posted: 20 January 2020, 22:01
by tchobello
what does it mean ?
can you give a little more explanation ?

Re: modify sprites file

Posted: 20 January 2020, 23:46
by RicardoRix
don't overwrite your image file, make a new one, and have both that you can reference.

.oldVersionImage
{
url: oldimage;
}

.newVersionImage
{
url: newimage;
}

old php:
<div class="oldVersionImage">

new php:
<div class="newVersionImage">

Re: modify sprites file

Posted: 21 January 2020, 00:09
by tchobello
you mean I should add
.newVersionImage
{
url: newimage;
}

in the CSS

and replace
<div class="oldVersionImage">
by
<div class="newVersionImage">
in the JS file ?

The existing games will make the switch without bugging ?

Re: modify sprites file

Posted: 21 January 2020, 01:15
by RicardoRix
sorry, I'm talking absolute nonsense. I was thinking the old games would be running the old code, which is not true.

What was the reason the update failed the last time?
If you get to the bottom of that, then it would help you understand.

I think the only reason why this would fail is because of something in the DB, so it's mildly possible the suggestion above may have some merit.