Skip to content

Commit 88b2429

Browse files
committed
feat: texture sampling and global settings
1 parent 904f1bb commit 88b2429

File tree

15 files changed

+235
-517
lines changed

15 files changed

+235
-517
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ classes
1313
docs/en/public/reference
1414
docs/de/public/reference
1515
docs/en/book/changelog.md
16+
docs/de/book/changelog.md
1617

1718
natives
1819

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ index: 4
44
lang: en
55
---
66

7+
## 4.17.0
8+
9+
- 🚀 Feat: Add texture sampling modes. These are useful if you want for example develop a pixelart game. The texture sampling mode can be set via the new global settings.
10+
- 🚀 Feat: Introducing global settings.
11+
12+
You can set theses static attributes in your main-method. Take a look at the [documentation](https://openpatch.github.io/scratch-for-java/) for more information.
13+
14+
```java
15+
Window.TEXTURE_SAMPLING_MODE = 2;
16+
Text.DEFAULT_FONT = "Tiled/assets/Retro Gaming.ttf";
17+
Text.DEFAULT_FONT_SIZE = 11;
18+
Text.FONT_SIZES = new int[] { 11 };
19+
Text.SPEAK_BUBBLE_MAX_LIMIT = 200;
20+
Text.SMOOTHING = false;
21+
```
22+
23+
724
## 4.16.0
825

926
- 🚀 Feat: Add better fullscreen mode. You can now set a target resolution, when using the fullscreen mode. This renders the stage at this resolution and scales it to the fullscreen size keeping the aspect-ratio.

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ Scratch for Java is maintained by [OpenPatch](https://openpatch.org), an organiz
4343

4444
## Special Thanks
4545

46-
The Scratch for Java website is hosted on [Vercel](https://vercel.com).
47-
48-
[![Vercel](https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg)](https://vercel.com?utm_source=openpatch&utm_campaign=oss)
49-
5046
The Scratch for Java library is profiled using [Java Profiler](https://www.ej-technologies.com/products/jprofiler/overview.html)
5147

5248
[![Java Profiler](https://www.ej-technologies.com/images/product_banners/jprofiler_large.png)](https://www.ej-technologies.com/products/jprofiler/overview.html)

docs/de/book/changelog.md

Lines changed: 0 additions & 356 deletions
This file was deleted.

0 commit comments

Comments
 (0)