Blocky Migration

Forums: 

I am a new developer. I am working on a website that has games that are created by P5.js and Blockly. I want to create .h5p which I can reuse or distribute. Is there a way to achieve this? Thanks!

otacke's picture

Hi!

Could you possibly rephrase your question or add some context? I'm not sure whether you're asking to create H5P content types written in/with P5.js/Blockly, if you want to write/integrate a player like H5P Standalone (https://github.com/tunapanda/h5p-standalone) or if you want to create a platform integration of some kind. Either way, I recommend to familiarize with the H5P documentation for developers (https://h5p.org/developers).

Best,

Oliver 

Thanks Otacke. I will rephrase my question. 

I am working on a website that has simple games which run on the combination of Blockly and p5.js. But as this is a website, it needs a constant internet connection to work. I want to eliminate the need for a constant internet connection.

I am looking for a way to migrate these already existing games to H5p. And somehow run these games offline(I can use tunaPanda here: https://github.com/tunapanda/h5p-standalone). I hope this explains.

Thanks Otacke. I will rephrase my question. 

I am working on a website that has simple games which run on the combination of Blockly and p5.js. But as this is a website, it needs a constant internet connection to work. I want to eliminate the need for a constant internet connection.

I am looking for a way to migrate these already existing games to H5p. And somehow run these games offline(I can use tunaPanda here: https://github.com/tunapanda/h5p-standalone). I hope this explains.

otacke's picture

Hi!

I am still not sure if I understand what you are trying to achieve. H5P content types don't need an internet connection in order to work. The exception proves the rule. H5P content types need some form of runtime environment, yes, but it doesn't matter whether that's on a server that you can access remotely (e.g. using one of the plugins for WordPress or Drupal) or locally, e.g. using H5P Standalone or Lumi (or even a single-HTML file export that you can create with Lumi).

If you want to migrate existing games written using p5.js, then all you'd need to do is wrap that content inside https://github.com/h5p/h5p-boilerplate and add and instantiate the appropriate dependencies.

Cheers,
Oliver

Hi,

I am trying to upload .h5p but for some reason I am getting the following error:

I am zipping the project files and NOT the project root folder. I will attach the package file for ref.

Thanks,

-Vishvesh

otacke's picture

Hi vivesh!

Please search this forum for this issue. It has been covered multiple times.

Best,
Oliver