# Join the Defold and Yandex.Games Jam 2021

**URL:** <https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493>\
**Category:** Announcements\
**Created:** [October 19, 2021, 9:33pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493 "2021-10-19T21:33:16Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![russelkgd](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/russelkgd/32/15767_2.png) [@russelkgd](https://forum.defold.com/u/russelkgd)\
**Post date:** [November 29, 2021, 11:12am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/81 "2021-11-29T11:12:32Z")

</div>

For me it looked like bug (pun intended), rather than gameplay feature. Maybe it’s just needs to be smoother. But anyway, I can speak only for myself. Maybe others will be ok with that)

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [November 29, 2021, 12:35pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/82 "2021-11-29T12:35:21Z")

</div>

> [@russelkgd](#):
>
> For me it looked like bug (pun intended)

It is now a feature 😃 I added a “debug” button to change the behavior of the controls, so thank you very much for the idea 😉

---

<div class="post-metadata">

**Author:** ![Alexander\_Bulatov](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/alexander_bulatov/32/27139_2.png) [@Alexander\_Bulatov](https://forum.defold.com/u/Alexander_Bulatov)\
**Post date:** [November 30, 2021, 11:51am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/83 "2021-11-30T11:51:10Z")

</div>

Hello! This my game on the gam jam. Good luck!

> **[Yandex](https://yandex.ru/showcaptcha?cc=1&form-fb-hint=8.89&mt=4C85F19691B02F0D05076E283AD15FE77F3889FF7B6F2293889CE16DA73E71B9239ABDD349557DB9F94ACAF75E60A2624EFF16A132D75C8DDE6C0E81883947D47273F8246F953C3B1DB990C594BECD8215D979DCE5D2B10EA73B71090363328802909F55D8933638E502357B88D02C697140F2D76FE334C909694F8376FE61EEF59AFE88AB1A72948978E47A4367461D2A42D01CB6B004E881E36E20A322901B12726FD4694DDF567826A317D0F52346C85147EB99D064D46BE19FC474ADB418611B63C1A2BEAFAF991F91F0F71C6B754C7836C482B132B1855A48EF&retpath=aHR0cHM6Ly95YW5kZXgucnUvZ2FtZXMvYXBwLzE3OTUwMD9kcmFmdD10cnVl_bf082d6803b5f2e5c1a70a57dcef13af&t=2%252F1773938257%252Fd9e607cd80cf554212d9399d3c5695da&u=8366516799071745052&s=e829e03dc34e090379aacee9a01a85d4)**
>
> Finds everything

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [November 30, 2021, 5:43pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/84 "2021-11-30T17:43:22Z")

</div>

> [@Pawel](#):
>
> iOS environment: the game does not respond to pressing - I don’t have any iOS devices, so I won’t be able to debug it. The script uses Defold-Input, specifically onscreen module.

Any idea what could I do with this? Why the touch input is not detected on iOS? (In the end, I see I could disable iOS platform on Yandex)

> [@Pawel](#):
>
> 1. If you switch to another tab at the beginning of the level, the ball will fall through the textures (see attachment 3). - how could I prevent it? The object is falling below tilemaps collision shape whenever I change focus from the game window or tab

or this? ☹

---

<div class="post-metadata">

**Author:** ![russelkgd](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/russelkgd/32/15767_2.png) [@russelkgd](https://forum.defold.com/u/russelkgd)\
**Post date:** [November 30, 2021, 7:26pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/85 "2021-11-30T19:26:13Z")

</div>

I run itch version on my iphone: music button works well, other buttons, like level selection does not work. Also, if after starting the game you firstly press on music button and then on first level, then it loads. But central button does not work, only button in top menu. Something wierd)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [November 30, 2021, 8:31pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/86 "2021-11-30T20:31:21Z")

</div>

> [@Pawel](#):
>
> or this

The FPS might get throttled when in the background? Or you get a huge delta time when you come back.

Are you pausing the game when focus is lost?

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [December 1, 2021, 5:25pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/87 "2021-12-01T17:25:40Z")

</div>

> [@britzl](#):
>
> Are you pausing the game when focus is lost?

Following the trope here, I added the callback for focus losing:

```
function window_callback(self, event, data)
	if (event == window.WINDOW_EVENT_FOCUS_LOST) then
		msg.post("main:/level_"..global.level.."#collectionproxy", "set_time_step", {factor = 0, mode = 1})
	elseif (event == window.WINDOW_EVENT_FOCUS_GAINED) then
		slide_popup(0, true) -- pause menu
	end
end

```

and in init:

`window.set_listener(window_callback)`

This solves the issue. I also added a slider setting for changing a power of the force applied to the ball, so this could also solve the issue on Windows devices

---

<div class="post-metadata">

**Author:** ![Insality](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/insality/32/39737_2.png) [@Insality](https://forum.defold.com/u/Insality)\
**Post date:** [December 3, 2021, 7:55am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/88 "2021-12-03T07:55:13Z")

</div>

While my game on first moderation, you can check it here!

> **[Yandex](https://yandex.ru/showcaptcha?cc=1&form-fb-hint=8.89&mt=41AE1021B6AD97352D3C9725C9AE9260DD1B8C3F15ED02D60169DE743963735324BB2CE08D922DEDE2D28C4D382D7C5194753F5EAA242C261E3DC7479829ED1CBB348F6639CEF1F4E3DB88ACD8B05F1FEC2A8B3B161D05F6C8CF0619A5EDF1DAFA6E16A6224FA7C0340CB51583B1EED59B06CA3F8FF8CB97BE4013EA86F66890608DEBC3E778DEF72E16EE4E1260BE626DFB7D46CD9F084ACAF925D5C9A3CB3B7F85F49B33F0C839BCD4D0C12C4EA9ECEBAD578902334F13E103A752AE03937B34FB98D0070974D061B516FD91506C5B5C90F3CB0E1C5A7D5A44329C&retpath=aHR0cHM6Ly95YW5kZXgucnUvZ2FtZXMvYXBwLzE3ODgyMD9kcmFmdD10cnVl_c3ead439422baf4203132ef442d81041&t=2%252F1773938249%252F8fc5ebf7af1b3f2eccb3ba640d305642&u=8366516284346758388&s=4435536bcb2d44cd13dc76e8f7f2ad4d)**
>
> Finds everything

Meet the “Sea Battle: Universe”. We publish on this month only basics (game versus bot with restricted content). Soon will be added multiplayer and more features! I hope so 😃

And here twitter thread with some pictures/gifs from development:  
[https://twitter.com/insalitygames/status/1455996316291579906](https://twitter.com/insalitygames/status/1455996316291579906)

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [December 4, 2021, 4:31am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/89 "2021-12-04T04:31:41Z")

</div>

Fantastic art direction on this one!

---

<div class="post-metadata">

**Author:** ![d954mas](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/d954mas/32/5401_2.png) [@d954mas](https://forum.defold.com/u/d954mas)\
**Post date:** [December 6, 2021, 10:04am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/90 "2021-12-06T10:04:31Z")

</div>

Our game pass the moderation.  
Avoid evil robots and reboot computers  
Team:  
d954mas  
Anna Matrosova(art)  
Denis(art)

> **[Yandex](https://yandex.com/showcaptcha?cc=1&form-fb-hint=8.89&mt=F00FD9A6A87C361631BA95B8C73913C35C114E5E1773AE31A95151DDC81097B1A16694B6CB8E847F66789BADF4612656A0C4DC00228E27DD1BF27D5F6104A5FC84271CCA9337EBD223E0B218A9B456F3C5042E3E852673266FD271D53A881F85CDF7A4C6AE7F6B66F797475DDCCD3B393665156B82BF3D99085B105B1738DF97D7D639096AC62BFD1484D9FBBF8A01A4995F7A253D2ADBC804C8BD630858B970C7C57D31CD08CEAE6F08B28F5B1DEAE9CB5E239BE9AB0D7B3C6087001FC7CA3E18324D25372F50E2C2D35D57AD2DF5655890DC71A9823D15D1689AEB&retpath=aHR0cHM6Ly95YW5kZXguY29tL2dhbWVzL2FwcC8xODA2MjQ__121caa52a9fd35c0fcfe62ddc2cbe48a&t=2%252F1773938242%252F0d4742ae77e257ad1a31730400440ad3&u=8366515835791111172&s=36d8e249500a15b23831134d993dddf9)**
>
> Finds everything

---

<div class="post-metadata">

**Author:** ![aglitchman](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/aglitchman/32/19432_2.png) [@aglitchman](https://forum.defold.com/u/aglitchman)\
**Post date:** [December 6, 2021, 12:13pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/91 "2021-12-06T12:13:00Z")

</div>

Games tagged “game jam 21”:

> **[Yandex](https://yandex.com/showcaptcha?cc=1&form-fb-hint=8.89&mt=6B8A396CF63FF02436A486CFAF0FBF09F8C7BA0759BB1642C70BB55EA979EA4E1B1923968A23176CE2FEF8183E576547A9E9E4954D3A6E7DB316D1CFFF73A4F6E8107BC3926A09D376D1CCA6F07F6CEC6D0B228F3CEFCF929B19F9A19A1987861ED9067FEBA0C32FED0DBD3CF139D39EBB754554589FC17EE858EE15C3AF18FBDFC3E4C5F0A7BBEEF91AF1A20D3CB85BF3432F67B86E82B26436045C2F0CA375A7D6B21D7C19D0CAA4A47E6D0669F46B10E2641DEDDE5BBD83AB7934B623A5175C7EAEB0160C03DCD0CF10E1706D7F09E02A45C319FDA969B97C7945&retpath=aHR0cHM6Ly95YW5kZXguY29tL2dhbWVzL3RhZy9nYW1lX2phbV8yMV80MDc__c86df161688b8d060070bae30d9bbfe9&t=2%252F1773938242%252Fbea27370e22e6407097cfddc6863bd10&u=8366515802171409539&s=04fe1aceedfa216c8920dd8dc526018d)**
>
> Finds everything

---

<div class="post-metadata">

**Author:** ![benjames171](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/benjames171/32/34759_2.png) [@benjames171](https://forum.defold.com/u/benjames171)\
**Post date:** [December 6, 2021, 12:25pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/92 "2021-12-06T12:25:26Z")

</div>

For some reason, the tag was removed from my entry during moderation 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [December 7, 2021, 8:52am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/93 "2021-12-07T08:52:58Z")

</div>

So I fixed almost all issues, but still have two issues to pass the moderation - ads and saving progress.

Yandex is claiming that Ads are still not enabled. I created an account on Yandex Ad Network and is there something more I need to do in order to enable it? In code I have a chunk using `yagames.adv_show_fullscreen_adv` as in [the example](https://defold.com/2021/04/21/Releasing-games-on-Yandex/). I see no process regarding some kind of joining the created account with the source code - is there anything like this?

Regarding progress - I don’t know how could I sustain it using Yandex SDK - could you please share some knowledge or ideas here?

---

<div class="post-metadata">

**Author:** ![benjames171](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/benjames171/32/34759_2.png) [@benjames171](https://forum.defold.com/u/benjames171)\
**Post date:** [December 7, 2021, 9:25am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/94 "2021-12-07T09:25:17Z")

</div>

Might be worth checking the browser console for errors regarding ads.

For saving progress, I just used sys.load/sys.save to store the data in the browser’s cache. The game passed moderation with just that.

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [December 7, 2021, 9:30am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/95 "2021-12-07T09:30:40Z")

</div>

> [@benjames171](#):
>
> Might be worth checking the browser console for errors regarding ads.

How could I do this before I pass the moderation? Is the game available somewhere on Yandex to check out how it is working with Yandex SDK?

Thank you so much for the tip regarding saving Ben!

---

<div class="post-metadata">

**Author:** ![benjames171](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/benjames171/32/34759_2.png) [@benjames171](https://forum.defold.com/u/benjames171)\
**Post date:** [December 7, 2021, 9:32am UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/96 "2021-12-07T09:32:04Z")

</div>

> [@Pawel](#):
>
> How could I do this before I pass the moderation? Is the game available somewhere on Yandex to check out how it is working with Yandex SDK?

Yes, scroll down to where it says ‘File Verified’ in blue and click that.

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [December 7, 2021, 12:39pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/97 "2021-12-07T12:39:56Z")

</div>

Thank you so much Ben! I debugged it and now the ads are shown:

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/a/a/aa062697b38e31958b18c50a955a5f7650e6804a.jpeg)

Let’s try with the moderation once again 😃

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [December 7, 2021, 1:11pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/98 "2021-12-07T13:11:37Z")

</div>

One message appearing in the console when ads are not working has some useful tips, maybe it could resolve someone’s issue, so I’ll leave it here: 😉

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/3/0/30317ef9be3b8f1176bd8e9bb5d84912df991c5b.png)

---

<div class="post-metadata">

**Author:** ![Insality](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/insality/32/39737_2.png) [@Insality](https://forum.defold.com/u/Insality)\
**Post date:** [December 9, 2021, 4:24pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/99 "2021-12-09T16:24:24Z")

</div>

Finally completed the Yandex moderation and the game is live now 🎉

> **[Yandex](https://yandex.ru/showcaptcha?cc=1&form-fb-hint=8.89&mt=BCD37F82D86EE5FC947A8E408C61E4A2D2BBB68E0E97163D7726A90492B053A3AFF94B016EE4275BC6B7769E072B603744264F81DF620BF70D1B221432695D863FDFB2B9BDDFA55F1766D7D455439E568FEBBF7C30F411A5592B0D238F5E79B44C4212053A798EBE2106514E09D9BCF4865413ADCA3DDA20B60730F405DCCB081FD78016FBC3877FBDB6586F7ADABF356DB3E30B6295C23EACF687D1EF684CFD67C3AC4905C8B8FE277C35D089BC933463AE1062C99067151610E5E12B16B793F10529F4CE647259F2592B2836517C0B6783298144A080E6A7E2532A&retpath=aHR0cHM6Ly95YW5kZXgucnUvZ2FtZXMvYXBwLzE3ODgyMD8%2C_5c4b63f58c04031b367a89025f9dcac3&t=2%252F1773938235%252F24735772e3fec1681509d00d70928b41&u=8366515339388683391&s=0d5f846d0a5c720b7d6b6becf4267615)**
>
> Finds everything

---

<div class="post-metadata">

**Author:** ![sergey.lerg](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sergey.lerg/32/3970_2.png) [@sergey.lerg](https://forum.defold.com/u/sergey.lerg)\
**Post date:** [December 9, 2021, 9:38pm UTC](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493/100 "2021-12-09T21:38:07Z")

</div>

Just finished working on my entry and sent it for review.

> **[Yandex](https://yandex.ru/showcaptcha?cc=1&form-fb-hint=8.89&mt=B10C277D4DED1CBBEE4E77766EFD617A89EC61F694D70496128C9B8E5EC88548067F24065AF26D3FE7C4D59E8D63B0F797284A73801AD6EC51D00BAD7045E535DAD17FACE236CF86698D459A251BA3728452D44A9304A8FF664E8DC91A8820E8A0D5DD51F6C6F6290A1DE7D169139322B86BE89EB827DB562AD957770026F9DECE30FA79939B4D8B34501FE669078C8AE128B471C3C698CE9FACD7A2820BBB249F686D990CE60D89F252B44F31F0F2B53A22838485FBE5A0364A640EA7306366D23EB59ACFBE4CD5DE5225F2790E50248C971C5E7E8171B545E2E5FF&retpath=aHR0cHM6Ly95YW5kZXgucnUvZ2FtZXMvYXBwLzE4MDc0OD9kcmFmdD10cnVl_a3f89ca80a1a004917c540b7386c0168&t=2%252F1773938234%252Fbe98cfb85d5281875923536a2686ba27&u=8366515311670883402&s=2999566cf8e3c8cde6d20812e628afbe)**
>
> Finds everything

Lacking free time, I started working on it quite late, only in the second half of November. And I decided to do some advanced 3D graphics with Defold. I wanted to implement at least some part of PBR rendering. For that I’ve made a native extension that directly uses OpenGL in parallel with Defold’s renderer using parts of the Raylib library. Two weeks of suffering and I’ve made it work. It can actually work in several ways - either completely take over rendering, render to Defold’s render target and display on a quad with the regular renderer or have the renderer from the native extension but with the Defold GUI rendering on top.

At first I used the variant with the render target but it produces visual artifacts in Safari. So I switched to the last variant, which works surprisingly well.

I can load GLTF/GLB, OBJ models and MTL materials. The problem is that there are no readily available shaders that are easy to integrate. It’s definitely possible though. At the moment I have more basic lighting than I wanted. Still looks great for such a small game.

Postponing the deadline was very welcome, I wouldn’t have made it otherwise. Spent one week to actually implement the gameplay.

Only the 3D renderer comes from the extension. Scripting, physics, sound, gui is all regular Defold.

I will upload a sample 3D scene to GitHub with my setup for anyone interested later on.

Quite a challenge on top of a challenge! I’m very glad I could pull it off in time. Hopefully the review will be fast as well.

[Previous page](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493.md?page=4)

[Next page](https://forum.defold.com/t/join-the-defold-and-yandex-games-jam-2021/69493.md?page=6)
