lunafromthemoon

Members
  • Content Count

    16
  • Joined

  • Last visited

About lunafromthemoon

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. lunafromthemoon

    Visual Novel Engine RenJS

    Here's a little example to add Inputs https://gitlab.com/lunafromthemoon/renjsinputexample
  2. lunafromthemoon

    Visual Novel Engine RenJS

    Hello and thank you for checking RenJS. I don't come to this forum often, so any question will be answered more quickly directly in the RenJS Tutorial forum. As for the input feature, I made a little example for Kalesco that I can send you on monday, but it's not an integrated feature yet, so you will need to personalize it.
  3. lunafromthemoon

    Visual Novel Engine RenJS

    Hello, I sent you a pm!
  4. lunafromthemoon

    [Phaser] Spiked Heart - a visual novel

    Spike is just a cat like any other, until the local fairy came to visit and told him to find his true love, or else!. Is it just a coincidence that the fairy looks exactly like Cereza? Can Spike find his true love? And what is the else? There's 6 different endings, including secret romanceable characters! The game was developed with RenJS, a new Visual Novel engine, inspired by Renpy and powered by Phaser! (Also developed by me!) Have fun! https://lunafromthemoon.itch.io/spiked-heart
  5. lunafromthemoon

    Visual Novel Engine RenJS

    Hello, I work on it, I hope to see what you make of it. Pas francaise, mais j'habite ici maintenant! Merci, I hope more people start using it! There are already more new features like Mobile and Desktop versions, multilanguage and lots of bugfixes. Cheers! Luna
  6. lunafromthemoon

    (Demo) Spiked Heart

    Thanks for playing! This is just the demo, the full game will have 6 whole hours to do different stuff!
  7. lunafromthemoon

    (Demo) Spiked Heart

    Hello everyone, I present you my new visual novel, Spiked Heart. Spike is just a cat like any other, until the local fairy came to visit and told him to find his true love, or else. Is it just a coincidence that the fairy looks exactly like Cereza? Can Spike find his true love? Why does the game look so shitty? Many questions in this life have no answer. The game was developed with RenJS, a Visual Novel library for Phaser, also developed by me! Thanks for playing! https://lunafromthemoon.itch.io/spiked-heart-demo
  8. lunafromthemoon

    Visual Novel Engine RenJS

    Merci! I'm still working on the documentation, though it should be a lot better now. I'm going to open a forum in itch.io for this purpose soon, and it would be helpful if you could report errors or problems you find either in the engine or the documentation, I'm working alone in this project and it's not yet very popular. You can't currently pass the variable as a parameter now, because I hadn't thought about it. You still can read a variable (setted with the "var" action) straight in your function. If you check the last part of the call action docs (https://lunafromthemoon.github.io/RenJS/actions/call/), there's a list of handy things to use inside your own functions. One of this is the object RenJS.logicManager.vars, which contains all the vars setted during game by the "var" action. In short, to check the value of the "genre" variable inside your function you just have to call it from this object like: RenJS.logicManager.vars.genre. RenJS.customContent = { //put here your own functions helloworld: function (params) { console.log("helloworld function"); console.log("genre is "+RenJS.logicManager.vars.genre); RenJS.resolve(); } }
  9. lunafromthemoon

    Gaps between scrolling background objects

    You need to realign both backgrounds when changing them from place to place. If you change bg1.x to 1280, but bg2.x is 4, then they will overlap for those 4 pixels and create a gap in the other side, so you have to adjust both at the same time. bg1.x = 1280; bg2.x = 0; And the same when changing bg2 to the right side.
  10. lunafromthemoon

    Visual Novel Engine RenJS

    Hi! Of course you can use it for whatever game you want. If you can mention the engine in the credits of the game I will be pleased too, since I want more people to know about it. There's a little problem with the call in the yaml file. Yaml parses each element on the list (whatever you write after "-") as the same element. What you need to send is each param as a key-value pair as the child of the call action. What you are sending right now is a list (every time you use a "-" you're saying that's an element of a list), and it's also with the wrong indentation, making this list a "brother" of the main call action. So the way to call it is like this: - call get_variables: param1: parametre Take into account: There's two spaces to the first "-" indicating the call action is inside a scene. There's six spaces in the next line: 2 for scene indentation, 2 for "inside a list" indentation, 2 more for "child of action" indentation. This indentation issue is something that happens because of the yaml format, but shouldn't be such a problem. Just in case, be sure to start with the latest code, that you can find in the Quickstart (the tutorial might be a bit outdated), it includes now different mobile/desktop ports and also multi language possibility. Documentation: https://lunafromthemoon.github.io/RenJS/games/ Quickstart: https://gitlab.com/lunafromthemoon/RenJSQuickstart Hope to hear from you again!
  11. lunafromthemoon

    Visual Novel Engine RenJS

    If you read the helloworld function that's in the file "CustomContent.js" you will see it's expecting two parameters inside the object "params", called "param1" and "param2". When you call this from your story, you need to send those parameters, like this: - call helloworld: param1: asdf param2: qwer This is just an example function, you should make the function you need and send whatever parameters you need to use inside it.
  12. Hello, I'm trying to make a mobile version of a game. The game has lots of code and javascript files that I preload (I have a bootstrap file, that load the splash screen and preloader). I load the scripts like this: game.load.script('preload', 'Preload.js'); It works perfectly on the browser and with the Webview mode in Cocoon, but when I try to use Canvas+, I get an error when I try using the contents of "Preload.js". Not even a problem when trying to load it, so I don't even know why it's happening. Does anyone know what it could be? I would like to use Canvas+, since the webview is a bit slow. Thank you!
  13. lunafromthemoon

    Visual Novel Engine RenJS

    You can customize everything, in fact, i'm currently working on a tiny pixel art visual novel. The way to change the size is a bit tricky because to create the Phaser game object you need those numbers right away, so they are a bit hidden, but nonetheless there. You can find the size in the file RenJSBootstrap.js, it's a tiny file so it won't be hard to find where to change it. It's the object phaserConfig that has w and h sizes. The UI is all contained in the GUI.yaml file, there you'll find that it loads the images for the ui, such as the text, name and choice boxes, and also the menus. It's a bit complex, but not hard to get, if you play the tutorial game I linked above, the last part contains an explanation of how to change the UI a bit. As for the controls, the game already uses standard onTap events, so it should work on mobile without problem. A click or a tap are the same for the game, is what I mean. If you want to make something more complex, most of this functionality is in the file RenJS.js. I can help you as much as you need, just post the questions or send me a pm! I hope you do use RenJS for your games.
  14. lunafromthemoon

    Visual Novel Engine RenJS

    Hello everyone, I wanted to let you know I updated the project with some bugfixes today, and also with a new feature: Visual Choices! Check the tutorial again to see how to use them. Also, the documentation is up, and while it's still not complete, the API is documentation is there! https://lunafromthemoon.github.io/RenJS/api/ Hi, still working on that feature! Hey! It's possible to do it. You can have as many files as needed, but these extra files must be listed as story files in the RenJSBootstrap.js file (it's a really small file where the game is initialized). Here you'll find the config for phaser and some other things, like the screen size. The call command is documented here: https://lunafromthemoon.github.io/RenJS/api/call/ But I'll show you a simple example: In your story, you call it like this: Then in the file CustomContent.js, you add a function with the same name. The params will come all together in a map. You can do whatever you want here, but remember to call RenJS.resolve() at the end. And that's it! Hope it's useful.
  15. lunafromthemoon

    Visual Novel Engine RenJS

    Thanks! Gracias! Yo también, y es la razón principal por lo cual lo hice. Ren'py está bueno, pero nadie quiere descargar un juego (corto) hoy día. Thanks! I made the engine because I couldn't find any good web alternative to renpy. I'll see to add that explanation to the tutorial, thanks so much for the feedback. I haven't yet added any mark up for the text, but will soon add it. Not yet, imagemaps (or image choices) are next on the dev backlog. No inventory yet, but added to the backlog. No case, only if. There are some more actions than the ones shown in the tutorial, one of the most interesting I think is "call", that calls your own function with the parameters you want, so if you want to e.g. implement your own inventory or battle system, you can then call it's api directly from the story with this action. You basically do "call myfunction:" and then add that function inside the CustomContent.js file. Thanks all for your feedback!