fragcolor-xyz / shards-examples Goto Github PK
View Code? Open in Web Editor NEWTutorials and examples with shards
Home Page: https://learn.fragcolor.xyz
License: BSD 3-Clause "New" or "Revised" License
Tutorials and examples with shards
Home Page: https://learn.fragcolor.xyz
License: BSD 3-Clause "New" or "Revised" License
The website https://euler.color-rise.xyz/problems/ has some examples and tutorials using chainblocks.
For example, if you press the "Output" button of Do's documentation example (https://docs.fragcolor.xyz/shards/General/Do/), it is empty:
What does "ticked" mean in the documentation for "Branch": https://docs.fragcolor.xyz/shards/General/Branch/
A branch is a child mesh that runs and is ticked when this shard is activated, wires on this mesh will inherit all of the available exposed variables in the activator wire.
Pitch
As a game creator new to Fragcolor, I want to learn how to program in Shards so that I may be able to write my own Shards scripts for use in my game projects.
Sections - 6
Appendices
Appendices have moved to issue #18
Fix incoming links
.../functions/macros/#defwire
- This link should now point to the mention of 'stateful functions' in section Elements of Shards in the primer.Following issues document the functions and shards covered in this primer:
Hashed
, Await
, Once
Rendered markdown with currently finished topics here.
Acceptance criteria
A beginner-friendly getting-started guide for programming with Shards (language primer).
Pitch
As a beginner programmer, I want the Snake tutorial to be easy enough to follow, so that I may be able to work through the whole tutorial on my own.
Acceptance criteria
Additional Context
Also use improvement notes/observations taken a few months back.
After the time is up, the game-over screen is rendered. However, it can be seen that the player's final score is still changing, indicating that the game itself is still running in the background.
The issue can be reproduced by running the full code for the Glod game.
Pitch
As a developer new to the Chainblocks-Examples repository, I want to quickly understand and set it up, so that I may start contributing if interested.
Acceptance criteria
Update this project repository's README file to satisfy the parent Epic's Acceptance Criteria, and additional criteria given below
Additional context
Refer to guidelines at Github, freeCodeCamp, Make a Readme, & Awesome READMEs.
Current documentation suggests that "The message to display can be passed to this shard either as a string or as a variable holding a value. In case a variable is passed the shard displays the variable's value.".
This is not intentional, and Msg should only accept rvalues and not variables nor arguments. The documentation should be updated to reflect accordingly once the behaviour of the Msg shard has been rectified
The following code should be added to the full code si far for step 3.6 of the Glod game tutorial.
(LoadTexture "GlodImages/Character1_Jumping_Left.png") = .character-jumping-left
(LoadTexture "GlodImages/Character1_Jumping_Right.png") = .character-jumping-right
3 (-> .character-direction
(Match [0 (-> .character-jumping-left (UI.Image :Scale (float2 0.2)))
1 (-> .character-jumping-right (UI.Image :Scale (float2 0.2)))]
:Passthrough false))
Convert the Snake-2D game into its 3D version using GFX
shards.
Issue 1: In step 4, the value of 310.0 is assigned at first, making the character appear in the middle of the game. A "floor", or boundary is later set at the bottom of the screen so that the character does not fall off the screen. This results in the character starting at the middle of the screen on an invisible platform, jumping, then landing at the bottom of the screen which is a bit odd. In step 5.4, this value is silently changed to 620.0. This value can just be 620.0 from the start
Issue 2: Values 50 and 5 are used for the damage limits.
They are then subsequently overwritten in the later part of the code to use a margin of 120 and 15.
Convert the Shards Primer document into byte-sized (2-3 minute long) video tutorials
learn.fragcolor.xyz/shards
Pitch
As a programmer learning Chainblocks, I want the Snake tutorial to be free of any obvious grammar errors and typos, so that I may be able to easily follow the tutorial.
Acceptance criteria
There are only clear instructions for Windows & Linux: https://docs.fragcolor.xyz/contribute/code/building-shards/
List may not be exhaustive
Complete the Shards primer appendices.
Appendices - 3
Additional Context
This issue is a continuation of the original Shards primer issue, #12
Convert the Snake-2D game text tutorial into a series of byte-sized (2-3 minute long) video tutorials
learn.fragcolor.xyz/snake
A Bishi-Bashi-like game to teach users about conditional sentences, arrays, showing images and variables.
Inconsistency in the code for calling the end-round
wire as well as the result of true > .input-received
being a Bool output causes the first When
shard depicted to have an input type of Bool whereas the second When
shard has an input type of None, resulting in an error "Attempted to call an already composed wire with a different input type"
Note: WireBase::verifyAlreadyComposed in wires.cpp in Shards will have to be smarter in identifying wires that can ignore inputs and ignore differences in input types when called again after composition. Separate issue to be raised there
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.