If the Phaser 3 game sprites are not displayed on iOS change the type in the index.js file to type: Phaser.CANVAS In CANVAS mode Phaser cannot set the background color with this.cameras.main.backgroundColor or this.backgroundColor. Set the background color too in the index.js file as seen above.
Category Archives: Not for home page
Attach an AWS EBS volume to a Linux server
Format and mount the volume List the available disk devices and their mount points The nvme1n1 volume is not yet mounted Create a partition on the volume List the existing partitions Create a new partition Check the partition list lsblk Detect the new partition with If there is a file system on the partition to …
Continue reading “Attach an AWS EBS volume to a Linux server”
has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
When your website calls the Socket.IO backend API from another domain, the browser console displays the error message Access to XMLHttpRequest at ‘http://…:3000/socket.io/?EIO=3&transport=polling&t=N7Y-Fot’ from origin ‘http://….com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. To enable Cross-origin resource sharing add the code to the top of your Socket.IO …
Uncaught TypeError: _helpers_formUtil__WEBPACK_IMPORTED_MODULE_6___default.a is not a constructor
When you import a Phaser 3 module and run the Node.js web application the following error is displayed Uncaught TypeError: _helpers_formUtil__WEBPACK_IMPORTED_MODULE_6___default.a is not a constructor Make sure the imported module and all dependent modules imported by that module has the following class definition format
Node.js
Creating a multiplayer online card game with Node.js
Creating a multiplayer online card game with Node.js and Phaser 3
As the world is locked down due to the COVID-19 Corona Virus, we are quarantined at home. We miss the company of our families and friends, so online games are the only option to play together. We are going to create an online multiplayer game that can be used for any tabletop gameplay. The frontend …
Continue reading “Creating a multiplayer online card game with Node.js and Phaser 3”
Get the public IP address from the command line
To get the public IP address of the server from the command line, execute
Migrating from Chef Client version 13 to 15
Syntax changes There are breaking changes between Chef Client version 13 and the newer versions, make sure you update your Chef cookbooks to make them work with the new version of the Chef Client. Resource Since version Old syntax New syntax Notes logger Client 14.0 keyword, cannot use it as a variable or parameter name …
Continue reading “Migrating from Chef Client version 13 to 15”
Debugging Go programs in Visual Studio Code
Install Visual Studio Code Install Delve For up-to date info visit https://github.com/derekparker/delve/tree/master/Documentation/installation
Computer failed to join domain from its current workgroup ‘WORKGROUP’ with following error message: The system cannot open the device or file specified.
When you use PowerShell to join a Windows server to the domain make sure the -OUPath is correct. Computer failed to join domain from its current workgroup ‘WORKGROUP’ with following error message: The system cannot open the device or file specified. In this case we wanted to place the joined computers in the Computers folder, …