Git Product home page Git Product logo

Comments (6)

LoganTann avatar LoganTann commented on June 11, 2024 1

Hello, sorry for the late reply

There are multiple ways, that depends on how you are coding your game. What you are asking is "how to show a video without borders and controls" ?

Here are the supported configs you can use with the show video action : modal, immersive, background and fullscreen.
I think immersive is what you need, but this covers the whole screen. You might need to edit the CSS to set the correct size/position of the video.

For a spritesheet animation, a simple div with a background image does the job (it might not be responsive though). Or you can also use a canvas.

Keep in mind that SVG can be used as an image (it can be a character sprite for example), it's sometimes useful for basic animations. However, inside an image tag, you can't really control it using JavaScript. In this case, you can directly add it inside/over the HTML of the game.

from monogatari.

LoganTann avatar LoganTann commented on June 11, 2024 1

are there any existing examples of how this can be achieved?

It really depends what you need. My own games adds a html container that overlays the game screen when I need something that monogatari can't do (eg. acessing to the protagonist's PC to read his mails)

I've seen examples of point and click in discord, this requires to force the aspect ratio because it uses CSS to position the choices buttons at the exact percentage position in the screen : https://newrem.com/monogatari/helpExamples/pointAndClickAdventureExampleInvisible/

blink animations

i'd embed the images [without eyes + open eyes + closed eyes] inside a SVG image that contains a CSS animation to toggle the closed and opened eyes.

from monogatari.

blurymind avatar blurymind commented on June 11, 2024

@LoganTann are there any existing examples of how this can be achieved?
For example a clickable image sprite that starts a conversation with the character on that sprite?

Lets say we want to simulate a room with 2 or more characters/items that can be interacted with by clicking on them.

Or even just a simple looping spritesheet for a character avatar (blink animations?)

from monogatari.

blurymind avatar blurymind commented on June 11, 2024

its a nice example but its not source code on github :)

from monogatari.

LoganTann avatar LoganTann commented on June 11, 2024

its a nice example but its not source code on github :)

I just noticed I misunderstood what you're looking for : characters with blinking eyes, clickable characters instead of traditional choices.
Actually, there is not such examples I know in github. I still have an idea on how to do this, but it will require some time to create it. I'll reply to this issue once it's done (don't hesitate to reply if you have found a solution by yourself).

Hyuchia created a repository dedicated for templates or examples created by the community (https://github.com/Monogatari/Community), maybe I would create this example there ?

from monogatari.

blurymind avatar blurymind commented on June 11, 2024

from monogatari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.