Jump to content

Hypothetical Question


Ninjadoodle
 Share

Recommended Posts

Hi @enpu

I have a strange question, because I feel like I saw something like this in the Panda repo a long time ago.

I'm wondering what the possibility is of having a 'sort of' loader, that serves as a shell to load a bunch of smaller games.

Let's say I make a one button game and want to release it as a standalone on the web, yet on mobile I want to put it in a package with a bunch of other one button minigames.

Normally this would mean, having to keep two separate projects and 'copying' all the assets and code into a compilation project.

I really feel like Panda 1 had something like this on Github, but I don't think it was ever documented - that's why I'm asking :)

Thank you in advance for any feedback!

Link to comment
Share on other sites

Hi @Ninjadoodle

I don't know about the 'loader' but if you use Git maybe use something like submodules might help with a little scripting?  I've not delved hugely into using Git (I should learn more to be honest) but as I understand it this would solve the 'pulling together' all the projects into a single version and keep things in sync quite nicely.  You'd still need to build the 'loader' and so, sorry I can't help anymore :(

Link to comment
Share on other sites

Hi @8bitdna

Thanks for the tips :) 

To be honest, unless there is an easy way to do this, I will just end up pasting everything into a new compilation project.

The Git stuff is probably a bit over my head, and I kind of don't want to go down that path lol.

I do realize that it would probably lead to some nice shortcuts, but one of my goals is to start releasing regular content (games/videos), and I feel that this be a huge distraction.

If @enpu, still has that old code lying around somewhere, he might be willing to port it to Panda 2 - I think it would make a great addition!

Thanks again!!

Link to comment
Share on other sites

@8bitdna

Yeah, the choice and tech can get really overwhelming. I've spent too much time being lost and overthinking/planning stuff, yet I have nothing to show for all that stress and internal struggle, lol.

Right now I'm retraining myself, to be ok with stuff not being perfect, and just getting it out there - game devs are notorious for vaporware, feature creep and impostor syndrome - time to leave that stuff behind!

The best thing is to just get stuff done, and if it's worth developing further - it can always be done down the line :)

Link to comment
Share on other sites

@Ninjadoodle Definitely the same story here.  Spent faaaarrrrrrrrr too much time overthinking and looking for a one size fits all type solution I can 'really learn'.  I love the web and Panda 2 makes life very easy to start that journey, time to get some things completed.  I'm sure there's awful games going to be coming from me, bit embarrassed about that but need to learn and get stuff out there.

Link to comment
Share on other sites

@8bitdna

I think we're always our biggest critics :)

Somebody once said  - "I dare you to produce 100 pieces of work, and see what happens."

The problem is that most people don't ever get to that point. I keep remembering that Angry Birds was Rovio's 52nd game!

One other quote I love is "Fail early, fail often, fail forward" - Will Smith - here is a link to the vid.

 

 

Link to comment
Share on other sites

Hi @enpu

In my case it's a little bit more complicated. I am planning on releasing online games separately - for example Lightybulb 1, 2 and 3

Each game has 20 levels. For various reasons I would like to keep them as separate games on the web, but when publishing to App Store / Steam / Facebook etc. I would like to put all 60 levels together and have a selection screen which will allow you to play 1, 2 or 3.

Right now, to do this, I would have to paste each of the episodes into a separate compilation project and keep another code base.

This is not a huge deal, but it does mean that whenever I fix a bug and so on, I would have to do it twice.

If some kind of loader like this was possible and easy enough to do, that would be awesome!

Link to comment
Share on other sites

@enpu

Thinking about this, I'm not actually even sure it's doable. Maybe I'll have to re-think my publishing strategy.

I'm not sure how the menus / game saves / sound buttons etc. would even work with the above system.

I don't really want to publish a whole bunch of tiny games to iOS for example, as it just means more maintenance.

On my website however, it would be better to have separate episodes (small games) for several reasons.

If anyone has any ideas that I haven't though of, I'd be happy to listen lol.

Link to comment
Share on other sites

@Ninjadoodle

That sure is a complicated situation you got there.

I would suggest you to think to put all into one project. Then make one scene that would act as the "selection screen", then other scenes will be the actual games.

Then on your website you could make links to that game with different url parameters, which would change the starting scene of your project. That way it would look like it's separate games, but actually one single project.

Link to comment
Share on other sites

Hi @enpu

Thanks heaps for the tip - that is actually one possible solution :)

I think tho, that I will most likely just release updates / level packs for games instead - that way I won’t have to worry. I’ll think about it a little and see what I come up with.

Thanks again!

Link to comment
Share on other sites

Hi @enpu

I've had a think about this and thought of a way that I think might work.

I just want to double check if this is actually possible, and that you would still be able to compile / export games at the end.

Normally I would keep 3 separate projects + folders for 3 different episodes.

Then, once I I am ready to create an app / compilation, I would create another project that would load all the levels and assets from the individual 'episode' folders.

This means that any fixes I make to the levels, would only have to be done once, and the new project would pretty much just be new 'main' and 'menu' modules.

This would require loading the main module from the project folder, and the level modules from outside folders - Would this be doable?

Thanks heaps for your help :)

Link to comment
Share on other sites

Hi @enpu

Awesome, I'm trying this now ... but can't seem to load a module from another 'src' folder.

I have a feeling this was posted somewhere, but I cant find the info :(

Basically, for the above to work - I think I would need to load modules from different places, but I'm not sure that's possible with Panda.

Link to comment
Share on other sites

@Ninjadoodle

Yeah project can have only one source folder, but source folder can have multiple subfolders.

You could try to put all your projects in same folder, would that work for you? Every project would use the same source folder, but every project could have their own game specific modules. Also then every project would use same engine folder, which would be handy. Also media folder could have subfolders for each project.

Your folder structure could look something like this:

1300633299_ScreenShot2018-06-13at17_16_10.png.9b4a96281031668491dc32a62df7216d.png

Link to comment
Share on other sites

  • 1 month later...

Hi @enpu

I'm trying to get my head around the example you've given me above.

I've put the projects in the same folder, and I've renamed the index files ... game1.html, game2.html, game3.html

I've also change the code inside index.html ... to reflect the new modules name ...

instead of main I have each index file loading ... game1.js, game2.js, game3.js

For some reason, when trying to run the game ... I get this -> Uncaught Scene Main not found

Any idea what I night be doing wrong?

Link to comment
Share on other sites

Hi @enpu

No it doesn't have a main, because I have multiple 'main' files in the src folder - I've renamed them game1, game2, game 3 instead.

Does that mean that in this case, I need to change the starting scene in config, because the engine is automatically looking for a file called main?

Just trying to understand it better :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...