npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tfrogger

v1.0.0

Published

A frogger clone built for the Terminal

Downloads

32

Readme

tFrogger 🐸

Welcome to tFrogger! A terminal-based Frogger game built with React and Ink, bringing the classic arcade experience right to your command line. 🎮

Overview 🌟

tFrogger is an open-source project that recreates the beloved Frogger game in a terminal environment. It's perfect for retro game enthusiasts and developers who want to enjoy a quick game break without leaving their terminal. Hop your way to victory while avoiding obstacles and navigating treacherous waters across multiple challenging levels! 🏆

Features ✨

  • Terminal-based Gameplay: Enjoy Frogger directly in your terminal.
  • Classic Mechanics: Dodge cars, ride logs, and reach your goal.
  • Multiple Levels: Progress through increasingly challenging levels.
  • Dynamic Obstacles: Face new challenges like moving lilypads and alligators.
  • High Score System: Compete for the top spot on the leaderboard.
  • Responsive Controls: Smooth, responsive keyboard controls for an authentic arcade feel.

Quick Start 🚀

You can start playing tFrogger right away using the following command:

npx tfrogger

This command will download and run the game without needing to install it globally. Instant fun at your fingertips! 🎉

How to Play 🕹️

  1. Start the Game: Run npx tfrogger in your terminal.
  2. Navigate: Use arrow keys (↑ ↓ ← →) to move your frog.
  3. Avoid Traffic: Dodge cars on the busy roads.
  4. Cross the River: Hop on logs and lilypads to safely cross the water.
  5. Watch for Alligators: In higher levels, avoid the dangerous parts of alligators.
  6. Reach the Top: Guide your frog to the lilypads at the top of the screen to score points.
  7. Progress: Complete each level to move on to the next challenge.
  8. Stay Alive: Don't get hit by cars or fall into the water!
  9. Game Over: Press 'R' to restart when the game ends.

Levels 🎚️

  1. Level 1: Classic Frogger gameplay with cars and logs.
  2. Level 2: Introduces faster obstacles and moving lilypads.
  3. Level 3: Adds alligators and increases difficulty across all elements.

Each level increases in speed and complexity, providing a progressively challenging experience.

Tips for Success 🏅

  • Time your moves carefully when crossing the road.
  • Stay on logs and lilypads while crossing the river - water is not frog-friendly!
  • Keep an eye on the direction and speed of logs and lilypads.
  • In higher levels, avoid the head and tail of alligators.
  • Try to reach the top multiple times to increase your score and advance to the next level.
  • Aim for high scores to climb the leaderboard!

Debug Mode 🐛

For developers and curious players, tFrogger includes a debug mode that provides additional information about game state, collisions, and object positioning. To enable debug mode, run the game with the --debug flag:

npx tfrogger --debug

Contributing 🤝

We welcome contributions from the community! Whether it's adding new features, fixing bugs, or improving documentation, your help is appreciated. Feel free to fork the repository, make changes, and submit a pull request. Check out our contributing guidelines for more information.

License 📜

This project is licensed under the MIT License. See the LICENSE file for details.

Contact 📧

For questions, feedback, or bug reports, please reach out to us via GitHub Issues.

Hop into the action and enjoy the game! 🐸🎮