sicm-scheme-exercises
matter-js
sicm-scheme-exercises | matter-js | |
---|---|---|
1 | 9 | |
61 | 15,983 | |
- | - | |
0.0 | 7.0 | |
about 2 years ago | 6 days ago | |
Scheme | JavaScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sicm-scheme-exercises
-
MIT Scheme on Apple Silicon
It is good enough! Almost all code forms from the book live in the tests (see the FDG directory[0], for example), and there are a few nice environments like Nextjournal[1] where everything from the books works in the browser.
The Clojure port is quite fast, faster than the original for all benchmarks GJS has sent me, and more fleshed out. (That will change, as I've been pushing bugfixes and performance improvements back upstream as I go, as a meager gift to GJS for making this huge, amazing library in the first place.)
I actually wrote to GJS this morning asking for instructions on how to compile the original "scmutils", since I have the same problem. He responded saying he'll get back to me this afternoon, so I'll post here once I have details.
If you are still interested in getting the books going with MIT-Scheme, I put a decent amount of work into the exercises using the original codebase here[2], including a dockerized version of mit-scheme[3] and the scmutils package[4] that might be useful.
- [0] https://github.com/sicmutils/sicmutils/tree/main/test/sicmut...
- [1] https://nextjournal.com/try/samritchie/sicmutils/
- [2] https://github.com/sicmutils/sicm-exercises
- [3] https://hub.docker.com/r/sritchie/mit-scheme
- [4] https://hub.docker.com/r/sritchie/mechanics
matter-js
-
Copying Angry Birds with nothing but AI
Do you think this worked so cleanly because there is a tutorial similar to this and its in the dataset?
https://github.com/liabru/matter-js/wiki/Tutorials
-
Draggable physics button? How would you create such an effect?
If you don't want to create your own physics engine, there are also existing ones like matter.js.
-
Advice about useful libraries to create a 2D car game (hill climb racing style)
A physics engine for the basic stuff (colisions with the terrain, gravity, rigid body mechanics, suspension springs...) would be great and I think Matter.js it's a great option
-
Phaser vs PixiJS for making 2D games
Another option is to add a third-party physics library such as Matter.js, although setting up and integrating the physics library can be tricky. If you need physics in your game, especially more complex physics effects, Phaser is a better choice.
-
Canvas Liquid Effect using Matter.js and SVG Filters
I have created a demonstration for liquid (or gooey) effect on HTML Canvas using Matter.js and SVG Filters.
-
Server side game collisions
I recently came across this library: https://github.com/liabru/matter-js
-
Is there a good JavaScript library for 2D collision?
This was a bold faced lie. Matter.js has no continuous collision detection. You wasted so much of my time I hope you are mildly inconvenienced in the near future! https://github.com/liabru/matter-js/issues/5
-
Matter.js z-index?
https://github.com/liabru/matter-js/issues/243 was a bit confusing. The solutions in this thread don't seem to work for me, and i cant find any information elsewhere.
-
Walking AI: Simple Neural Network from Scratch
Over half of the source code is just making the robots exist. If you haven't used matter.js before, you can download it here. You can read the whole documentation here, but the functions we will need are:
What are some alternatives?
sicmutils - Computer Algebra, Physics and Differential Geometry in Clojure.
kaboom.js - 💥 JavaScript game library
ChezScheme - Chez Scheme
melonJS - a fresh, modern & lightweight HTML5 game engine
fdg-book - Executable version of Functional Differential Geometry.
offscreen-canvas - Demo app using worker.Canvas
sicm-book - Executable version of Structure and Interpretation of Classical Mechanics.
engine - Fast and lightweight JavaScript game engine built on WebGL and glTF
Scala Native - Your favorite language gets closer to bare metal.
Projectile-Motion-Simulation - A simple projectile motion simulator made made using matter.js , it looks cool and ofc gonna help you see physically accurate projectile motion
svelte-canvas - 🎨 Reactive canvas rendering with Svelte.
Pattern-Script - Open Source HTML5 Game Engine based on PuzzleScript