forked from pythonarcade/arcade
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of https://github.com/pvcraven/arcade into…
… development
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
# virualenvs | ||
env | ||
venv/ | ||
venv*/ | ||
.venv | ||
|
||
# docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import os | ||
import arcade | ||
|
||
SCREEN_WIDTH = 800 | ||
SCREEN_HEIGHT = 600 | ||
LINE_HEIGHT = 20 | ||
CHARACTER_SCALING = 0.5 | ||
|
||
|
||
class MyTestWindow(arcade.Window): | ||
|
||
def __init__(self, width, height, title): | ||
super().__init__(width, height, title) | ||
|
||
arcade.set_background_color(arcade.color.AMAZON) | ||
|
||
def on_draw(self): | ||
pass | ||
|
||
def update(self, delta_time): | ||
pass | ||
|
||
|
||
def test_sprite(): | ||
window = MyTestWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Test Text") | ||
window.center_window() | ||
window.set_fullscreen(True, width=1920, height=1080) | ||
window.test(10) | ||
window.set_fullscreen(False) | ||
window.test(10) | ||
window.close() |