Log In  
Log In  
BBS > Lexaloffle Community Superblog
This is a combined feed of all Lexaloffle user blogs. For Lexaloffle-related news, see @zep's blog.

All | Following | PICO-8 | Voxatron | General :: [Thread List]

using google translate

At the beginning of the year I started using PICO-8 when I found out that Celeste was born from such a simple concept.
The first thing I could discover using PICO is that you can export to html...

if you can use HTML you can visualize it directly on Android using a tool called WebView.

This is a step-by-step tutorial to use your PICO-8 cartridges on your Android phone, let's begin shall we?

What do we need:

Now we need to understand what we are going to do:

1) create an application on Android (the classic helloworld: https://developer.android.com/training/basics/firstapp/).
2) Add the WebView tool to your app (https://jgvcodigo.blogspot.com/2017/12/webview-android.html).
3) Add the controls on the html file of your cartridge.
You can use the following template and call your .js file:

https://github.com/headjump/pico8_html_template (awesome morningtoast post: https://www.lexaloffle.com/bbs/?tid=30147)

4)Finally add your html and js file inside your android project:
C: \ Users \ AndroidStudioProjects \ YOUR_PROYECT \ app \ src \ main \ assets

This is the line that made the magic:
myWebView.loadUrl("file:///android_asset/YOUR_GAME.html");
This line sends your html.

MainActivity.java

package com..;
import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.webkit.WebView;

public class MainActivity extends AppCompatActivity {

    @Override    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);        setContentView(R.layout.activity_main);
        WebView myWebView = (WebView) this.findViewById(R.id.webView);
        myWebView.loadUrl("file:///android_asset/YOUR_GAME.html");
    }
}

So as you can see we are calling a simple html on android to be able to show our game. It seems the easiest way to have your first android application working.

And you don´t need as much knowledge to publish your Pico-8 game on Google play.

I leave my code so you can steal it https://github.com/demilion/Celeste-Classic-PICO-8-Android

It has a couple of extra lines such as having ads or integrated purchases.

{\__/}
( • . •)
/>♥ u want this?...

{\__/}
( • . •)
♥< \ NoOoOoOoO

{\__/}
( • . •)
/>♥ im joking

Let me know what you think!!!!!!

https://play.google.com/store/apps/details?id=com.demilion.a20

P#61896 2019-02-15 03:15

I didn't find any way to change it,is it even possible?

P#61552 2019-02-05 20:07

Cart [#yuparebodo-0#] | Code | 2019-01-31 | No License | Embed
2

P#61392 2019-01-31 13:36

Hey everyone, I have a 3d printer now. I'm currently one step closer to being able to release a final product to the public now that I can actually manufacture the console myself, I still have a bit of work to do on the cartridge system but that's for a later update. Anyways I'll be posting print pictures in a couple days (assuming I have time to put this thing together). Side tangent here, I am so incredibly happy that I finally got my own 3d printer. I've been wanting one for 3 years and now that it is currently sitting right next to me its such a surreal moment.

P#61314 2019-01-28 23:17

Cart [#domobiwonu-0#] | Code | 2019-01-26 | License: CC4-BY-NC-SA | Embed
1
I'm a big fan of Seth Macfarlane's The Orville so I decided to make a retro-style space shooter loosely based on the show. Thanks to PICO-8 for a great development environment :)

You pilot The Orville to fight one Krill ship after another, each one shooting faster at you than the one before. X or Z to fire, up and down to move your ship. Try to see how many levels you can make it through.


Note: This is very much a fan made game. I don't own the rights to The Orville which is why I have the "purchase" set to none at all. I just want to share a game I made and that I've also had fun playing. Hope you all enjoy it as well. :)

Also on itch: https://howtophil.itch.io/the-orville-arcade-game

P#61215 2019-01-26 04:02 ( Edited 2019-01-26 04:03)

Cart [#hokandowa-0#] | Code | 2019-01-21 | No License | Embed

P#61066 2019-01-21 13:50 ( Edited 2019-01-21 13:51)

Cart [#kuhetiwozo-0#] | Code | 2019-01-20 | License: CC4-BY-NC-SA | Embed

P#61016 2019-01-20 03:16 ( Edited 2019-01-20 03:17)

It's just a litle game for my firends

I know there are still bugs in this game, but it was a good experience to play with this tool :D

Cart [#modacles-0#] | Code | 2019-01-19 | No License | Embed

press c to destroy the the fireworks
press x to jump

uses <- && -> to move

P#60981 2019-01-19 00:58

It's new here.
Start to learn..
and GLHF.

P#60961 2019-01-18 15:22

It's VERY much a work in progress still, and there's a lot I have to do with it. Still, I hope you guys like it!

P#60929 2019-01-17 18:15

Cart [#mobajezade-0#] | Code | 2019-01-15 | No License | Embed

STORY
A Bad Mole has kidnapped the beautiful princess PinkyBall, you must save her!
Survive trough caves and reach 10000 points to defeat the Bad Mole!

or simply, play endless mode and post your BEST SCORE! here :)

COMMAND
UP to JUMP
X for STORY MODE
Z for ENDLESS MODE

ABOUT GAME
This is my first game with pico-8!
Actually the game lacks in music...

P#60851 2019-01-15 13:23

I was trying to create a coroutine for each sprite to move it. However it seemed like a fixed number of coroutines are dead. Notice the frozen ones (every single run launches the same number of frozen stars):

If I just use a normal for-loop it's all fine, except it's slow. And I used the code on itch

--broken
function _update()
 for c in all(boids) do
  coresume(cocreate(move_boid),c)
 end
end

--fine
function _update()
 for c in all(boids) do
  move_boid(c)
 end
end

I can upload it here after I figure out how to upload a game to this forum.

Thanks for any help!

P#60840 2019-01-15 06:10 ( Edited 2019-01-15 06:17)

Do I get the coins to come to my Sims game

P#60764 2019-01-12 04:08

Cart [#asteroidsprototype-0#] | Code | 2019-01-11 | No License | Embed

P#60745 2019-01-11 12:04

I have been trying to install the Pico 8 on my new laptop wanting to move it from my old computer in which I have already installed it on just fine. I tried downloading it and went through the installation process, but when it finally done, it essentially put an empty program on my computer not even having a file size on the control panel only having the uninstaller work. I tried reinstalling it through administrator mode but the same issue occurred. As a last attempt, I tried downloading the zip file only to occur with the same issue having it delete itself off my computer.

P#60727 2019-01-10 01:37

The minimum requirement for Windows is to make it support 32-bit versions, unless 4+ GB of RAM or other x64-only features may be needed.

You've read me correctly, that IS the minimum requirement.

I already know that I have a x64-capable system, enjoying a bit of Riko4 on it, and I actually received a gifted copy of PICO-8 last year.

P#60714 2019-01-09 07:15

Hi everyone, this is my first post.

I received a pico-8 licence as a crimbo present from my brother. I guess it is one of the best presents i ever received!

So i started programming something and i think i got some neat ideas, but for now the only decent thing i'd really want to post online is a little musical thingy. It's just a still image with a looping musical background.
I'm growing proud of this little musical piece and want to expand it, so i started experimenting with the musical tools available in pico8:

Cart [#yahetuhuda-0#] | Code | 2019-01-09 | No License | Embed
1

I think it would be great to be able to programmatically set up audio/musical material, something like "set up pattern n1 into channel m1", but i guess there is no direct way to accomplish it natively. Am i wrong? Maybe there's some pro way to do so using poke and the like, but i have no grasp on such exquisitely advanced techniques, so let me invoke the knowledge of the ancient gurus...

Anyway, i'm happy to having been introduced to pico8, I really enjoyed some of the games made with this cute little tool, and i hope to be able to do something special with it, one day.

Cheers.

P#60709 2019-01-09 01:05

Hi,
I know that you can save GIFs in PICO 8 by pressing F9, but is there a way of doing so in Voxatron?

Thanks

P#60672 2019-01-08 01:25

voxatron coming along great! I may have to get a looking glass!! Is there a way LUA can import a VOX (or translated .obj) file into voxatron? Keep up the nice work...

P#60512 2019-01-02 20:55

Hi Mboffin, I have been working on your awesome game dev with PICO 8 pdf. In the lander tutorial, what does the srand(time()) at the end of step 5 do? I don’t see a difference if I inactivate it and just can’t seem to find the answer for it? Can you explain, please? Thank you for the fantastic guide.

P#60123 2018-12-19 22:50 ( Edited 2018-12-19 22:51)
View Older Posts
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-02-17 02:34 | 0.091s | 4194k | Q:123