- Key events have patchy support of non english keyboard layouts.
- Resize events and
Canvas::with_window_size()
return the logical window size, this plays havoc with per pixel sensitive shaders - The filesystem module cannot load compressed zip files, why not? Compression has been important in game design since the dawn of graphics.
- Chip-sets as new as Sandybridge don't support OpenGL3.2 (Windows 10) this is totally unacceptable for a 2D casual game engine, however is fixable but requires 3 things to make it work:
- Back end support for querying available versions before starting OpenGL
- Supporting overriding the default shader
- Setting the OpenGL version (already supported)
- Using
primusrun
(Nvidia Prime for Linux) returnsError: WindowCreationError(NoAvailablePixelFormat)
, but works withoptirun
(Open Source alternative)
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
[package] | |
name = "quine" | |
version = "0.1.0" | |
edition = "2018" |
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
fn draw(&self, printer: &Printer) { | |
// If the background is dirty draw a new background | |
if self.dirty { | |
for y in 0..printer.size.y { | |
printer.with_color(ColorStyle::background(), |printer| { | |
printer.print_hline((0,y), printer.size.x, " "); | |
}); | |
} | |
// set background as clean, so we don't need to do this every frame |
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
/* | |
Send a message up to a newline to the server. | |
Read a reply up to a newline and print it to stdout. | |
Loop. | |
Usage: | |
./client [<server-address> [<port>]] | |
Default ip: localhost. | |
Default port: 12345 | |
*/ |
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
/* | |
Send a message up to a newline to the server. | |
Read a reply up to a newline and print it to stdout. | |
Loop. | |
Usage: | |
./client [<server-address> [<port>]] | |
Default ip: localhost. | |
Default port: 12345 | |
*/ |
Write Arduino style sketches in Python
Sketches allows users to write simple "sketches" in python for performing every day simple computation, without having to worry about much of the 'boilerplate' code that a typical python script requires. The name sketch is taken from the short C programs that the Arduino IDE complies and uploads to Arduino devices. Arduino sketches have a fixed format: a setup() function that is run once and a loop() function that is then run repeatedly forever. This format makes it easy to start writing simple programs to control the device.