| Name | Description | Size | Visibility | ||
|---|---|---|---|---|---|
|
Simple library to encode and decode int values to any encoding base between 2 and 64.
Content
encode(v: the value, b: encoding base ): Encode the value in the specified encoding base, return None if base is not valid.
decode(v: the value, b: encoding base ): Decode the encoded value in the specified encoding base, return None if base is not valid or if value is an empty string.
CHARSET: The list of characters that define the encoding, add your own characters to increase the encoding base.
CHARS: The maximum possible encoding base, must be increased if you add new characters in CHARSET.
|
442 Bytes | Public |
|
||
|
A start of a 3D engine. UseOK to display the faces or edges of cube and ←↑→↓+- to move it.
NOTE: This script work better on Upsilon because fill_polygon() function doesn’t exist in others OS. So we need to re-implement this and is consuming a lot of resources.
This is an improvement of the infarctus’s script, so thanks to it. =)
|
4.23 KB | Public |
|
||
|
A benchmark to calculate speed of graphic methods.
|
1.42 KB | Public |
|
||
|
Magic Draw
A small program based on maths equations, which shows you who draws equations in different forms, each one prettier than the next.
To add your own representation, add it to the ‘_list’ list in the form: (“x calcul”, “y calcul”).
There are two variables to use: p and i.
Examples of equations
|
3.17 KB | Public |
|
||
|
Convert a text to Hexa, Binary or Decimal, and vice versa.
Posibles conversion:
0- Text → Hexa
1- Text → Decimal
2- Text → Octal
3- Text → Binary
4- Hexa → Text
5- Hexa → Decimal
6- Hexa → Octal
7- Hexa → Binary
8- Decimal → Text
9- Decimal → Hexa
10-Decimal → Octal
11-Decimal → Binary
12-Octal → Text
13-Octal → Hexa
14-Octal → Decimal
15-Octal → Binary
16-Binary → Text
17-Binary → Hexa
18-Binary → Decimal
19-Binary → Octal
Display of list may come out of the screen a little, because the script was designed with the small python font, but that does not interfere with its operation
|
2.92 KB | Public |
|
||
|
This library add lot of draw methods for kandinsky library.
Go to GitHub page to read doc about avalaible methods
Note: if you read the code you risk not understanding anything, it’s normal the library has been designed to be as optimized and small as possible, hence this somewhat strange syntax.
|
3.46 KB | Public |
|
||
|
PyMenu
The new library for making beautiful menus on numworks with dynamic accent colors. Thanks to cent20’s library, menu.py, for inspiring me for this library.
To give a little aspect, here is a demo script showing the options menu of my game snake_lite.
How to use
This is simple, you just need to create an instance of Menu class and set menu title, menu confirm label, and options, like this :
menu = Menu(
"My Title", # Replace by your menu title (e.g. "Game Options")
"Close menu", # Replace by your menu confirm label (e.g. "Start Game")
[ # And here is the options of menu.
#Must be formatted like this: ["<option label>", "<default value>", <values...>],
["My option", 0, "value 1", 2, [0,1]],
])
Note: The default option value must be an index of the list of values, not the value itself.
And after, just open the menu like this:
menu.open()
This will automatically clear the screen, format and display options, add a scrollbar if list exceed 6 options per page, handle keys to move through the menu, clear again the screen at end and return the result of selected options.
You can open the menu as many times you want by recalling the function, the last selected option will be automatically focused.
… Full documentation here
|
2.27 KB | Public |
|
||
|
The demo script of my library pymenu.
This is the options menu of my game snake_lite
|
2.63 KB | Public |
|
||
|
Python_Upgrade (v10.4)
Création : 21/01/2021
Dernière mise à jour : 31/10/2021 - 16:01
Documentation
Concernant toute demande, problème ou suggestion avec ce script, c’est ici
|
14.9 KB | Public |
|
||
|
Only works on Omega, Upsilon and KhiCass.
Add a dot at beginning of all scripts names to hide them and automatically delete this script.
To show all scripts, just run exec(open(".show").read()) in the shell or in a new script.
This script is for single use, once run it will delete itself, so you will have to transfer the script again.
|
896 Bytes | Public |
|
||
|
The most small and configurable snake ever (on numworks).
I used the library called pymenu to make the options menu.
Features
Very VEERRYY small program, only 240 lines and 7KB of storage
A leaderboard
Configurable game options :
Speed [default: 10]: Speed of snake.
Power [default: 2]: Size added after eat a cherry.
Snake Size [default: 10]: The size of snake (1 –> 80).
Score [default: 1]: Score added when eating a cherry.
Expert Mode [default: False]: Snake’s body will grow infinitely.
Babu Mode [default: False]: Literary a gost, it can eat walls and itself. 🤣
Darkmode [default: True]: A mode for g@mers.
Rainbow [default: False]: Enjoy the rainbow!
Walls [default: True]: Enable/Disable walls.
Dynamic accent color according to OS
A start menu to play with default settings
Automatic darkmode
|
7.13 KB | Public |
|
||
|
Ce programme permet de calculer la raison et u_0 d’une suite, arithmétique ou géométrique, à partir de 2 points donnés, puis vous affiche le résultat proprement avec le calcul effectuer par la machine, pour vous aider.
Le programme vous proposera ensuite, si vous le voulez, de calculer des points spécifiques dans cette suite, et/ou si vous voulez en faire la somme des termes.
|
5.39 KB | Public |
|
||
|
|
433 Bytes | Public |
|