npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lve

v5.3.4

Published

Light visualnovel Engine

Downloads

30

Readme

LveJS3

LveJS 3.0 ~ x.x

LveJS란?

LveJS는, Light Visual novel Engine의 약자입니다.

웹에서 비주얼노벨을 손쉽게 구현할 수 있도록 지원하는 Web Canvas 라이브러리이며, jQuery의 문법과 비슷하기에, 기존의 jQuery 사용자는 쉽게 배울 수 있습니다.

지원 사양 및 동작 방법

LveJS는 공식적으로는 구글 크롬, 모질라 파이어폭스를 지원합니다.
하지만 그 외 HTML5 Canvas를 지원하는 기타 브라우저에서도 동작할 수 있습니다.

WebGL을 사용하지 않고, canvas API으로 동작합니다. 따라서 오브젝트가 많이 필요한 무거운 게임에는 적합하지 않습니다.

기본적으로 kripkenBox2D의 물리엔진이 내장되어 있습니다. 따라서 번거롭게 물리엔진을 적용하지 않아도 됩니다.

원한다면 생성한 오브젝트의 속성을 수정하는 것만으로 물리충돌을 제어할 수 있으며, 이는 LveJS가 비주얼노벨뿐만 아니라, 간단한 2D 게임도 구현할 수 있다는 의미입니다.

설치하기

다운로드 https://www.npmjs.com/package/lve

npm

npm install lve

browser

<script src="dist/LveJS.js"></script>

시작하기

const lve = new LveJS

lve.init({ canvas: '#yourCanvasSelector' }).loadAsset([
  'http://your-asset-in-here.png',
  'http://image-video-audio-and-all-type.mp4'
]).ready(() => {
  
  
  // Create image and video object on screen
  // This asset has been loaded as a loadAsset function,
  // so you do not need to wait for it to load.
  
  lve('Objects-unique-identifier').create({
    type: 'image',
    src: 'http://your-asset-in-here.png'
  })
  
  lve('Like this').create({
    type: 'video',
    src: 'http://image-video-audio-and-all-type.mp4'
  })
  
  // You can create multiple types of objects
  // camera
  // image, sprite, video, particle (need asset url (src attribute)
  // square, circle
  // text (text attribute)
  
  
  // You can also get object reference
  
  const square = lve('sample-square').create({
    type: 'square'
  })
  
  
  // Use CSS-like grammer
  
  square.css({
    width: 100,
    height: 100,
    color: 'blue',
    left: 100, // X axis
    bottom: 100, // Y axis
    perspective: 100 // Z axis
  })
  
  
  lve('hello-world').create({
    type: 'text',
    text: 'Hello, World!\n and Hello, LveJS!'
  }).css({
    fontSize: 15,
    fontFamily: 'consolas',
    fontStyle: 'italic',
    lineHeight: '150%',
    color: '#0075c8'
  })

})

예제

Github에서 프로젝트를 다운로드 받고 순서대로 npm install 명령어를 실행하여 의존 모듈을 설치하십시오. 이후 npm run dev 명령어를 실행하여 데모 페이지를 여십시오.