or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
2D games in Rust workshop
Help eachother with technical issues!
Dependencies Ubuntu 18.04
You may have to run on a session using x11 (wayland did not work for me)
Dependencies archlinux
You need pulseaudio-alsa installed to have sound
FAQ
I get "error: Could not compile
arrayvec
." on MacOS Mojave?Upgrade your Rust version to latest Rust, 1.39.0 (I was on 1.17 when I got this error).
on MacOS I can build and run, but got a blank window?
Blank window is expected. See README.md:
Panic when executing
cargo run
in WaylandWayland backend is broken where it doesn't support windows resizing. See this: https://github.com/ggez/ggez/issues/579. The workaround is to run it using X11.
export WINIT_UNIX_BACKEND=x11
before running
cargo run
.This requires XWwayland (in arch that is
sudo pacman -S xwayland
)My crab is insanely fast
See the
timer
documentation ofggez
on docs.rs. Add this to your update loop inmod.rs
:Or better:
Music is not playing even I have added
let _ = self.assets.bg_sound.play();
If you play it unconditionally it will just start over again and again, which is equivalent to it beeing silent. Check first if it is already running.