Search found 11 matches

by Sydnique
11 August 2025, 21:25
Forum: Developers
Topic: Power Plants: design advice
Replies: 0
Views: 63

Power Plants: design advice

Hi guys, I am currently developing the game Power Plants. https://studio.boardgamearena.com/gamepanel?game=bainewedlockpowerplants It is playable but I did not implement all "features" of the base game. (e.g. advanced tiles) Who could give me some advice on the UI, I think there are multip...
by Sydnique
05 August 2025, 07:08
Forum: Developers
Topic: Changing parent of mobile_obj to Scrollmap
Replies: 0
Views: 20

Changing parent of mobile_obj to Scrollmap

There is a game component (a hexagonal playing tile) which starts on a players hand and has to move to an absolute position onto the scrollmap. I've tried different things, but hopefully anybody knows a better way? Version a) - put mobile_obj on scrollmap with this.attachToNewParent - slide mobile_o...
by Sydnique
08 March 2021, 07:48
Forum: Developers
Topic: Need help with hotseat player turn notification
Replies: 0
Views: 297

Need help with hotseat player turn notification

Hi, there is this bug in Onitama: https://boardgamearena.com/bug?id=35747 Short version: During hotseat, it notifies the wrong player of his turn and then the correct player. Has anybody experienced something similar? Some Details I removed the call to activeNextPlayer() from setupNewGame() and inst...
by Sydnique
13 August 2020, 17:55
Forum: Developers
Topic: growing yourgamename.game.php
Replies: 11
Views: 4423

Re: growing yourgamename.game.php

Are you sure it works in production though ? Yes, but only when using bga-workbench. I think there are two methods: 1) Lightweight Method That means using the modules-directory (as mentioned by RicardoRix and Draasill) 2) Using bga-workbench Which requires alot more configuration, but I think the (...
by Sydnique
13 August 2020, 17:29
Forum: Developers
Topic: growing yourgamename.game.php
Replies: 11
Views: 4423

Re: growing yourgamename.game.php

Draasill wrote: 13 August 2020, 17:12 Some games are using it, yeah.

Remember there are some inspiration on https://github.com/topics/boardgamearena !
awesome - I didn't know about this list
by Sydnique
13 August 2020, 11:26
Forum: Developers
Topic: growing yourgamename.game.php
Replies: 11
Views: 4423

Re: growing yourgamename.game.php

@RicardoRix

Thanks, thats good to know.

Might be useful in the BGA Studio doc :-)
by Sydnique
13 August 2020, 11:16
Forum: Developers
Topic: growing yourgamename.game.php
Replies: 11
Views: 4423

Re: growing yourgamename.game.php

It depends a lot on the game's complexity, IMHO. If you like OOP, it's good to have classes representing your board, your players, your cards... So you can do things like $card->applyEffectOnPlayer($player). The "modules" directory exists for this. Thanks for the hint, I think if one woul...
by Sydnique
13 August 2020, 11:13
Forum: Developers
Topic: growing yourgamename.game.php
Replies: 11
Views: 4423

Re: growing yourgamename.game.php

got it to work Things to remember: add new class file under src/Yourgamename/YourNewClass.php reference your new class in yourgamename.game.php: use Yourgamename\YourNewClass; (put that directly below the require statement near the top of the file) Then, to make phpunit work: configure autoload in c...
by Sydnique
13 August 2020, 10:02
Forum: Developers
Topic: growing yourgamename.game.php
Replies: 11
Views: 4423

growing yourgamename.game.php

Hey everybody, as I'm working on a first (example) game, I keep adding more and more code to the "Main game logic: yourgamename.game.php" file. Is there a recommended way to move some of that code out to another File and or Class? There's a guys project on Github who seems to have figured ...
by Sydnique
10 August 2020, 11:24
Forum: Developers
Topic: SQL Injection
Replies: 4
Views: 2614

Re: SQL Injection

I just asked myself the same question. It is not mentioned in any of the 3 tutorials, but the guide for game.php mentions that there could be situations where you should use escapeStringForDB( $string ) on your query parameters. I guess an sql injection attack would only be possible if you allow an ...

Go to advanced search