Games [XUI2D] Example Pack - Erel    Oct 2, 2022   (32 reactions)   tags: example games, XUI2D Games Updated thread based on X2 v2.0+: https://www.b4x.com/android/forum/threads/xui2d-x2-v2-0-2021... is not 100% up to date. It was created before the X2 library was available. All the X2 modules are now packed as a single b4x lib. 300267245 The examples pack is a single zip with all the XUI2D examples. The code modules and files are shared between the projects. See this tutorial for more information... following a path - Angry birds example - Space Shooter - Tetris - X2 Source Code Video tutorial... Games [XUI2D] Cross platform tips - Erel    Dec 19, 2018   (17 reactions)   tags: b4x folder structure XUI2D allows us to develop games that run on B4A, B4J and B4i. This tutorial will explain... they will be updated automatically when we run the project. Tips - B4A and B4J XUI2D library is based on jBox2D. B4i iXUI2D is based on the C++ box2d. In most cases the behavior will be the same. However there are some edge cases. - Be careful with modifying returned B2Vec2 vectors unless.... Not just XUI2D.... Games [XUI2D] X2 v2.0 - 2021 - Erel    Jul 22, 2022   (22 reactions) .b4x.com/android/forum/threads/97029/#content - Touchy - https://www.b4x.com/android/forum/threads/xui2d.../threads/very-very-very-simple-xui2d-test-project.96793/post-611080 - Tank Attack - https://www.b4x.com/android/forum/threads/xui2d-tank-example.96567/#content - Collisions - https://www.b4x.com/android/forum/threads/97144/#content - LargeBackground - https://www.b4x.com/android/forum/threads/xui2d-large.../xui2d-parallax-background.131606/#post-829749 - Breakout - https://www.b4x.com/android/forum/threads... Games [XUI2D] To Collide or Not To Collide - Erel    Sep 12, 2018   (6 reactions)   tags: Box2d Collision . You can use X2.AddFutureTask to run something after the events complete. Nice tutorial about box2d collisions: http://www.iforce2d.net/b2dtut/collision-anatomy The example is included in the examples pack: https://www.b4x.com/android/forum/threads/xui2d-example-pack.96454/... (0xFFFF). 0xFFFF in base 2 is 1111 1111 1111 1111. Category bits should be a power of 2. This means... detecting the collision. The third ground body mask bits value is 65529 = 0xFFFF - 4 - 2 = 1111 1111... B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    Jun 2, 2022   (78 reactions)   tags: runtime permission, sdk version, Targetsdk, SDK, B4A There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this mapping here: https://en.wikipedia.org/wiki/Android_version_history#Overview The api level is used in our code. minSdkVersion Set in the manifest editor. Default value is 5 (Android 2.0). This one is very... B4J Library [B4X] X2 / XUI2D (Box2D) - Game engine - Erel    Jul 31, 2019   (25 reactions) XUI2D is a wrapper for jbox2d engine: https://github.com/jbox2d/jbox2d License: https://github.com/jbox2d/jbox2d/blob/master/LICENSE iXUI2D is a wrapper for Box2D: http://box2d.org/ XUI2D and iXUI2D share the same API and together with BitmapCreator, XUI library and the X2 library they allow to...+). Download X2.b4xlib (this is a cross platform library) and copy it to the additional libraries folder. Current versions: - BitmapCreator - latest version is preinstalled. - XUI2D - latest version... Games [XUI2D] Mouse following a path - Erel    Nov 1, 2018   (8 reactions) . 2. How to use the new async drawing features added in BitmapCreator v4.5. These features are very important as they allow us to make drawings directly to X2.MainBC. X2.MainBC is the BitmapCreator that all the bodies are drawn to (by default). Start with this tutorial: https://www.b4x.com/android/forum/posts/622812/ It looks like this: gs.DrawingTasks.Add(X2.MainBC.AsyncDrawCircle(v.X, v.Y, 5... object. This object holds the information that is required to later make the drawing. Remember that X2... Games [XUI2D] Large background class + example - Erel    Jun 14, 2021   (11 reactions) As Form Private xui As XUI End Sub Sub AppStart (Form1 As Form, Args() As String) MainForm... = xui.LoadBitmap("C:\Users\H\Downloads\mapa.gif", "") Split(bmp, 7, 14) End... is included in the example. https://github.com/AnywhereSoftware/X2... B4A Tutorial Runtime Permissions (Android 6.0+ Permissions) - Erel    Mar 16, 2022   (32 reactions)   tags: RuntimePermission, runtime permissions, B4A Runtime Permissions, Runtime, SDK, B4A 1. Edit: In B4XPages the permission result event signature is: Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) 2. Important to read: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content 261306184 If the targetSdkVersion is lower than 23 then the standard permissions system will be used on all devices including Android 6.... The parameter passed is an optional subfolder that will be created under the default folder. 2. Add this code... B4A Tutorial [B4X] OkHttpUtils2 with Wait For - Erel    Apr 11, 2021   (52 reactions)   tags: image, wait, Download, Http MySql, Wait For, ws parameter (read more in the tutorial about resumable subs). The same sub can be called multiple times and....OpenOutput(File.DirInternal, "filename.dat", False) File.Copy2(j.GetInputStream, out...("https://b4x-4c17.kxcdn.com/images3/code.png", ImageView2) End Sub The images... Page: 1   2   3   4   5   6   7   |