Skip to content

justinpearson/kidpix

 
 

Repository files navigation

Summary

My fork of vikrum's kidpixjs (Kid Pix 1.0 HTML/JS implementation, https://github.com/vikrum/kidpix) to react + typescript + vite.

See below for vikrum's original readme and vite's template readme.

Quick-start (NEW)

One-time Install (OLD)

Required for both playing and changing code.

Instructions for Mac.

How to Play (OLD)

(On local laptop -- no internet connection required!)

  • cd into kidpix dir
  • python3 -m http.server
  • open localhost:8000 in browser

How to Change Code (OLD)

  • cd into kidpix dir
  • change code as desired
  • run ./build.sh
  • HARD-REFRESH BROWSER
  • important: if changed assets (like png stamp packs) may need to clear browser cache:
    • can tell if you hover over an asset in Elements inspector pane to get a preview, and you'll see it's the old one
    • chrome settings > search for cache > delete browing history & files from last hour
  • should see code changes reflected!

ORIGINAL README:


jskidpix ✨ https://kidpix.app/

In 1989 Kid Pix 1.0 was released into the public domain and this is an HTML/JS reimplementation.

ghsplash

Guide

Just like the original Kid Pix, there's no guide—have fun! Most of the tools support Shift (^) to enlarge. There are a handful of hidden tool features behind various modifier keys (⌘, ⌥, ⇧). The modifier keys can also be combined. Enjoy! :)

Mirrors

Please let me know if you mirror the site elsewhere and I'll add it here:

Questions & Hints


VITE README:


React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default tseslint.config({
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})
  • Replace tseslint.configs.recommended to tseslint.configs.recommendedTypeChecked or tseslint.configs.strictTypeChecked
  • Optionally add ...tseslint.configs.stylisticTypeChecked
  • Install eslint-plugin-react and update the config:
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
  // Set the react version
  settings: { react: { version: '18.3' } },
  plugins: {
    // Add the react plugin
    react,
  },
  rules: {
    // other rules...
    // Enable its recommended rules
    ...react.configs.recommended.rules,
    ...react.configs['jsx-runtime'].rules,
  },
})

About

JSKIDPIX v1.0.2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.6%
  • CSS 1.4%
  • TypeScript 1.3%
  • HTML 1.1%
  • Shell 0.6%