8000 GitHub - yongtenglei/dino
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yongtenglei/dino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦖 Dino

bigme

How could I only get 581 on my e-ink device, even though it runs at 21 FPS? So I have to have my own one. Now I can have much higher scores...

The sprites are from loparcog/chrome-dinosaur and soundtracks (sound effects) are from The sounds resource.

The running soundtrack generated by script:

import numpy as np
import scipy.io.wavfile as wavfile

sample_rate = 44100
duration = 0.3
pulse_width = 100
pulse_gap = 15000

signal = np.zeros(int(sample_rate * duration))
for start in range(0, len(signal), pulse_gap):
    end = min(start + pulse_width, len(signal))
    signal[start:end] += np.hamming(end - start) * 0.8

signal = np.clip(signal, -1, 1)

audio_data = np.int16(signal * 32767)

output_path = "./assets/run.wav"
wavfile.write(output_path, sample_rate, audio_data)

✨ Features

  1. 🦖 Double Jump:

    Dino’s mighty legs let it leap once more while airborne — because why not jump twice? 🕊️🦵💨

  2. 🐊 Duck Dino:

    When danger flies high, go low. Ducking lets Dino dodge those pesky birds. 🐦⬇️

  3. 😮‍💨 Be Nice to Dino:

    Crawling is exhausting! After 3 seconds of ducking, Dino needs to stand up and catch a breath. 🛌⏱️

  4. 🧠 Vim Mode:

    Real pros use K to jump (instead of Space) and J to duck (instead of Down). Old habits die hard — muscle memory, engage! 🎮⌨️💪

  5. 🏃‍♂️ Run Harder, Die Slower (WIP) Earn a revive every 1000 points 🏃‍♂️💨🛡️ Because Dino deserves it. 😤🦖✨

🎮 Demo

demo

TODOs

  • Running soundtrack 🏃‍♂️‍➡️
  • Clouds in the air ☁️
  • Better experience 🎲
  • Duck Dino 🦖
  • Vim mode ⌨️
  • Run for Dino 🏃‍♂️

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0