Skip to content

madeso/xfx.js

Repository files navigation

xtreme fantasy xtended (js version)

Extreme fantasy, or xf for short, is despite it's name a really simple text/based action rpg where you, as a noble warrior, travel from town to town and kill evil monsters.

Quickstart

npm install
npm run dev

Background

I wrote the first xf somewhere around 99/00 in ti83 basic for (and on) the ti83 graphic calculator. Sometime around say 04/05 I tried to remake it in php and then later in c++ both significantly more advanced. This time I am more or less recreating the original with a few, but less complicated enhancements, as a learing project for "webdev".

todo

  • Make enemies appear based on current level
  • Rename shout to boast or something that won't be mixed up with shouts from elder scrolls
  • Make ui hover to the side instead on bottom
  • Change to tracery output instead of constant strings
  • Rewrite fixed battle to states with defend and attack bonuses

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:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

About

extreme fantasy extended (js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published