Git Product home page Git Product logo

curse-notice's Introduction

curse-notice

A small app for making Castlevania 2 message images.

Try it here: https://jimkang.com/curse-notice/

Development

Install the dependencies...

cd curse-notice
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

Embedding the font in the svg

If the font isn't embedded in the svg, it won't appear in the generated png. So, to embed it:

  • Run base64 -w 0 src/PixelEmulator-xq08.ttf > src/pixel-emulator-ttf.base64
  • Paste the contents of src/pixel-emulator-ttf.base64 into the src attribute of the @font-face inside the <style> tag in the svg in index.html after the data:application/font-truetype;base64, part of the line.

Embedding the images in the svg

If the images aren't embedded in the svg, they won't appear in the generated png. So, to embed them:

  • Run make encode-images.
  • Paste the contents of the images you want in src/images-b64 into the href attribute of the <image> tags inside the svg in index.html.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

License

BSD.

curse-notice's People

Contributors

jimkang avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

curse-notice's Issues

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.