Example source code for simple tile-laying game with zoom

Game development with Board Game Arena Studio
Post Reply
User avatar
tabicat
Posts: 39
Joined: 01 December 2016, 23:17
Location: Austin, TX

Example source code for simple tile-laying game with zoom

Post by tabicat »

I'm a new BGA developer and I'm looking for sample source code for a tile-laying game that supports zooming. The best example would be Carcassonne, but I can't find the source code for that game. The game I'm developing has a single square board and the player can place a tile on that board. It's similar to Reversi, but the Reversi tutorial doesn't support zooming. I have a high-res jpeg of the board and tiles, and I would like to support showing that board (and the tiles that go on it) at any zoom level.
User avatar
leocaseiro
Posts: 15
Joined: 22 December 2020, 22:22

Re: Example source code for simple tile-laying game with zoom

Post by leocaseiro »

Try to use https://github.com/thoun/bga-zoom

Also, the discord is more active than the forum.
User avatar
nicotacotac
Posts: 41
Joined: 20 March 2020, 13:42

Re: Example source code for simple tile-laying game with zoom

Post by nicotacotac »

leocaseiro wrote: 06 March 2024, 12:50 Try to use https://github.com/thoun/bga-zoom

Also, the discord is more active than the forum.
This module is not intended for the tile laying purpose but rather zooming in/out a fixed board element (eg no panning included).

You will better to use the scrollmap component. There is an updated version of the "official" one (the one available by default on framework), developped by yannsnow. it is available here : https://github.com/yansnow78/bga_scrollmap
c12h22o11_
Posts: 14
Joined: 03 June 2023, 03:26

Re: Example source code for simple tile-laying game with zoom

Post by c12h22o11_ »

There's a discord!?
User avatar
tabicat
Posts: 39
Joined: 01 December 2016, 23:17
Location: Austin, TX

Re: Example source code for simple tile-laying game with zoom

Post by tabicat »

c12h22o11_ wrote: 10 March 2024, 19:14 There's a discord!?
https://discord.gg/XZjT3r4t
Post Reply

Return to “Developers”