Skip to content

Remove all .ex references from example code #3386

Open
@KokoDoko

Description

@KokoDoko

Problem

Currently there are three ways to work with excalibur:

  • create a vite project
  • import excalibur modules via esm.sh
  • put a script tag in the top of the html document

The last approach (script tag) requires a different approach to using classes, you have to put ex. in front of classnames. The other approaches do not need this.

In the excalibur quickstart the vite approach is taught.
In the excalibur fundementals the ex. approach is taught.

I have found that this is confusing for new game developers.

Proposal

Using ex. seems not needed anymore since we can now use import { Actor, Engine } from 'https://esm.sh/excalibur';

For that reason I propose to remove .ex prefix from tutorials and documentation and only use the modules based approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsRelating to documentation in any waystaleThis issue or PR has not had any activity recently

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions