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

@yantra-core/examples

v0.4.4

Published

Examples for Yantra.gg Serverless Physics SDK for Node

Downloads

1

Readme

Yantra Examples Repository

This repository serves as a collection of example implementations showcasing the capabilities of the Yantra serverless physics platform. Each example is structured to run within the Yantra environment, demonstrating various aspects of game development including game state management, collisions, player interactions, and configuration settings, among others.

Table of Contents

Getting Started

  1. Clone this repository to your local machine.
  2. Navigate to the desired example directory.
  3. Install the necessary dependencies using npm install.
  4. Run the example using npm start.
  5. Alternatively, you can install any of the example worlds directly using the command yantra clone worldname where worldname is the name of the example world you wish to clone (e.g., yantra clone pong).

Examples Overview

The examples cover a range of game genres and mechanics. While the specific examples may evolve over time, as of now, the repository includes the following worlds:

  • pong: Classic Pong game.
  • platformer: Basic platformer setup.
  • space-melee: Space melee game with extensive configuration settings.
  • world: Simple world setup demonstrating initialization and game tick updates.
  • snake: Classic snake game.

Each example contains a boot.js, world.js, and config.js file at a minimum, along with other necessary files for running the example. The ReadMe.md file within each example directory provides more detailed information on the implementation and how to run the example.

API Basics

The 0_API_Basics directory provides scripts demonstrating basic API interactions with the Yantra platform, such as creating bodies, detecting collisions, applying forces, mutating gamestate, viewing player positions, and creating a world.

AYYO: Yantra Game Client

AYYO is the default game client provided by Yantra. Yantra focuses on serverless physics and backend development, necessitating a client interface for interaction. AYYO serves this purpose as a standardized client for games deployed on Yantra.

Choose your Client

When developers deploy their games to Yantra, they have two client-side options:

  1. Write and implement their own custom game client.
  2. Use the provided AYYO client.

AYYO as a General-Purpose Yantra Client

AYYO is designed to be a general-purpose client and functions as Yantra's most substantial client implementation, showcasing the platform's features and scalability. Developers opting for AYYO can streamline their development, utilizing a pre-built client fully integrated with Yantra's backend.

Start with AYYO

We recommend starting your Yantra development using the AYYO client. AYYO is a great client for retro-style browser games! Once you have gotten a better handle on the Yantra API and deployment lifecycle, you can decide if writing a custom game client is right for you.

Contributing

We welcome contributions to this examples repository. Whether you are a seasoned game developer or just getting started, your experiences and insights can benefit others in the community. Feel free to submit issues, enhancements, or new example implementations!

License

AGPL