building

Plug-in related stuff can be discussed here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
RopaSucia
Metropolitan
Posts: 116
Joined: 06 Dec 2019, 18:13
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

building

#1

Post by RopaSucia »

I could create a plugin for this?
Tai_20-06-14_17.07.37.png
Tai_20-06-14_17.07.37.png (424.41 KiB) Viewed 5974 times

User avatar
Lobby
Developer
Posts: 3719
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: building

#2

Post by Lobby »

These are the in-game construction sites (and cranes):

Code: Select all

[
   {
      "id":"$site",
	  "type":"site",
	  "frames":[
	     {"x":640,"y":256,"w":32,"h":32,"count":12},
	     {"x":512,"y":288,"w":32,"h":32,"count":12},
		 {"x":512,"y":320,"w":32,"h":32,"count":12},
		 {"x":512,"y":352,"w":32,"h":32,"count":6}
	  ]
   },
   
   {
      "id":"$crane",
	  "type":"crane",
	  "frames":[
	     {"x":704,"y":352,"w":64,"h":32,"count":4},
	     {"x":512,"y":384,"w":64,"h":32,"count":8},
	     {"x":512,"y":416,"w":64,"h":32,"count":8},
		 {"x":512,"y":448,"w":64,"h":32,"count":8}
	  ]
   }
]
You can just define more of them, the game will choose randomly between them.

See the world texture world0_0.png (that is the first one) for how these frames look like: viewtopic.php?f=108&t=5659

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”