Page 1 of 1

First Design Of Plugin

Posted: 17 Oct 2018, 02:15
by William Camilo
¿Que les parece?
¿What do you think?

-Residence TT "1x1"

Re: First Design Of Plugin

Posted: 17 Oct 2018, 03:35
by CommanderABab
Is that a residential?

Re: First Design Of Plugin

Posted: 17 Oct 2018, 03:57
by William Camilo
CommanderABab wrote:
17 Oct 2018, 03:35
Is that a residential?
Yes, it´s a model of my old house, now I live in an apartment. I am form Colombia.

Now my proble it´s how do I make my project fit in a 1x1 or 2x2; the game or json. does it automatically accommodate it? or should I cut the image, in which I have a small image? What do I do CommanderABab? what image should it be? jpg or png, or bmp? I heard something about bmp, that a plugin should be that, bmp ... I need help, ... :c :cry: :?

Re: First Design Of Plugin

Posted: 17 Oct 2018, 04:50
by CommanderABab
Yes, bmp stands for bitmapped image. So the image should be saved as a .png file, which Pixly and Novix do.

I know Novix can import a jpg file to work on, but it will save it as .png. Pixly probably can do so also.

Code: Select all

"frames":[{"bmp":Cima2.png"}],
is how your image would look in the .json file.

So

Code: Select all

[
   {
      "id": "$your_unique_id",  //choose a unique id for the plugin
      "type": "residential",
      "author": "CommanderABab", //put your name between the quotes
      "width": 2,
      "height": 2,
      
      "frames": [
         {
            "bmp":"Cima2.png"
         }
      ],

      "power": -200,
      "water": -50,
      "level": 2 
   }
]
Screenshot_20181016-220225.jpg
Is how you can keep that image as is (as it isn't isometric) by putting it on a larger ground.

Re: First Design Of Plugin

Posted: 18 Oct 2018, 02:34
by William Camilo
WOOOOOOOOW Commmandeeer Thank You so muchhh!!!!!!! Now everything makes sense!

but I have a question and a problem

why the "power" (energy) is "-200
and why the "water" (Water) Is "-50" ???

and I must cut the image that only the house looks. I mean, a cut to each edge of the house? I make myself understand?
I mean the game adapts the png image with just having the height and width?

How do I fix the floor or how can I maintain that image with a larger piece of land? :cry: :?

Re: First Design Of Plugin

Posted: 18 Oct 2018, 03:16
by CommanderABab
The power and water are just arbitrary. You can use smaller values if you wish.

Actually, you would probably have to add to the bottom of the image to change the ground like as shown. Be sure all white background portions are actually transparent. The bottom corner of the building or ground area should be at the bottom edge of the image. The width of the image in pixels should be 32 for a 1x1 game tile, 64 for a 2x2 game tile, 96 for a 3x3 game tile, etc.