Comments (7)
This makes Issue #10 more urgent.
from duosnake.
I suggest using Vite (French word - pronounced /vit/) - a new/modern build tool, blazing fast, easy to setup (ez af I swear).
If we agree on this, I can help a hand to setup.
from duosnake.
Can you split main.js
into at least 2 files and/or folders for those unfamiliar with Vite (me) to know how to continue coding?
from duosnake.
@canhnd58 Vite using ES module syntax, it means we can use import
/export
to communicate between modules.
For example
// foo.js
const a = 'a string'
const b = 'another string'
export { a }
export default b
// bar.js
import { a }, b from './foo' /* Let's say foo.js is in the same dir with bar.js */
from duosnake.
@tung-eh npm run serve
does not work locally because it searches for resources in https://canhnd58.github.io/duosnake/
.
Should we fix it or just remove the commands from package.json
?
from duosnake.
I removed the hostname from the base
config through this commit. It should works fine from now.
from duosnake.
It works perfectly now. 10 billion points.
from duosnake.
Related Issues (20)
- Show keyboard controls to help players getting started HOT 1
- Add a simple AI that automatically controls a snake
- Change sanity to love
- Add a wining condition
- Make the game searchable by Google
- Update README and other information in github to attract contributors
- Add and config a git branch for github pages HOT 4
- Introduce snake status
- Sound for snakes
- Track website traffic
- Classic mode
- Add VFX class/functions HOT 1
- Add play/replay buttons
- Pause the game when the tab loses focus
- Add button/option to change game mode
- Add concept "theme" and move existing drawings (circles, rectangles) into one theme
- Add animation to snake head and body
- Allow multiple drawing modes
- Refactor class Board and Snake
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duosnake.