Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
9 results across 6 corpora for iterables.
Encyclopedia 2
Variadic function
se parameters are declared with a single asterisk ( * ) and they flatten arguments by dissolving one or more layers of elements that can be iterated over (i.e, Iterables). sub foo($a, $b, *@args) { say @args.perl; } foo(1, 2) # [] foo(1, 2, 3) # [3] foo(1, 2, 3, "hello") # [3 "hello"] foo(1, 2, 3, [4, 5], [6]); # [3, 4, 5, 6] ====Unflattened slurpy==== These parameters are declared with two asterisks ( ** ) and they
Comparison of programming languages (associative array)
s element: phonebook["Sally Smart"] Add element: phonebook["New Contact"] = "555-2222" Delete element: delete!(phonebook, "Sally Smart") Get keys and values as iterables: keys(phonebook) values(phonebook) ===KornShell 93, and compliant shells=== In KornShell 93, and compliant shells (ksh93, bash4...), the following operations can be used with associative arrays. Definition: typeset -A phonebook; # ksh93; in bash4+, "
Dictionary 1
iterables
Developer library 6
2D maze game with device orientation
In this tutorial we'll go through the process of building an HTML mobile game that uses the [Device Orientation](/docs/Web/API/Device_orientation_events) and [Vibration](/docs/Web/API/Vibration_API) **APIs** to enhance the gameplay and is built using the [Phaser](https://phaser.io/) framework. Basic JavaScript knowledge is recommended to get the most from this tutorial. ## Example game By the end of the tutorial yo
Build the brick field
Games/Tutorials/2D_breakout_game_Phaser/Track_the_score_and_win This is the **7th step** out of 12 of the [creating a Breakout game using Phaser tutorial](/docs/Games/Tutorials/2D_breakout_game_Phaser). Let's explore how to create a group of bricks, print them on the screen using a loop, and remove them when the ball hits them. Building the brick field is a little bit more complicated than adding a single object to
Move the ball
Games/Tutorials/2D_breakout_game_pure_JavaScript/Bounce_off_the_walls This is the **2nd step** out of 11 of the [creating a Breakout game using pure JavaScript tutorial](/docs/Games/Tutorials/2D_breakout_game_pure_JavaScript). In this article, we'll look at how to add sprites into our gameworld. Our game will feature a ball rolling around the screen, bouncing off a paddle, and destroying bricks to earn points. Hand
Build the brick field
Games/Tutorials/2D_breakout_game_pure_JavaScript/Track_the_score_and_win This is the **6th step** out of 11 of the [creating a Breakout game using pure JavaScript tutorial](/docs/Games/Tutorials/2D_breakout_game_pure_JavaScript). Let's explore how to create a group of bricks, print them on the screen using a loop, and remove them when the ball hits them. Building the brick field is a little bit more complicated than
Animations and tweens
Games/Tutorials/2D_breakout_game_pure_JavaScript/Buttons This is the **9th step** out of 11 of the [creating a Breakout game using pure JavaScript tutorial](/docs/Games/Tutorials/2D_breakout_game_pure_JavaScript). We'll explore how to implement animations and tweens in our game, to make the game look more juicy and alive. This will result in a better, more entertaining experience. ## Animations A sprite animation
Tiles and tilemaps overview
Tilemaps are a very popular technique in 2D game development, consisting of building the game world or level map out of small, regular-shaped images called **tiles**. This results in performance and memory usage gains — big image files containing entire level maps are not needed, as they are constructed by small images or image fragments multiple times. This set of articles covers the basics of creating tile maps usi