Skip to content

Instantly share code, notes, and snippets.

View renpytom's full-sized avatar

Tom Rothamel renpytom

View GitHub Profile
screen test():
text "Hello, World" xpos 101 ypos 101
label start:
call screen test
class Move(Action):
def __init__(self, direction):
self.direction = direction
def __call__(self):
prototype.move(self.direction)
init python:
my_list = [
((100, 100, 200, 100), Jump("foo")),
((100, 200, 200, 100), Jump("bar")),
]
screen test:
imagemap:
ground "ground.jpg"
hover "hover.jpg"
Using FBToolkit3.
Init TS lib.
FBWindow.c: mapped frame buffer at 0xb4059000 (3800k)
Hello World should now be displaying
FBRepaintManager.getOffscreenBuffer()
FBGraphics3: fillRect(0, 0, 800, 600: javax.swing.plaf.ColorUIResource[r=238,g=238,b=238]
FBGraphics3: fillRect(0, 0, 64, 17: averaging color to java.awt.Color[r=236,g=242,b=248]
FBGraphics3: fillRect(0, 17, 64, 17: averaging color to java.awt.Color[r=239,g=244,b=249]
FBGraphics3: fillRect(0, 34, 64, 24: averaging color to java.awt.Color[r=202,g=219,b=236]
drawImage2
2014-02-20 12:33:36.88 [2] <SYS> Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
2014-02-20 12:33:36.89 [2] <SYS> at java.awt.BorderLayout.layoutContainer(BorderLayout.java:822)
2014-02-20 12:33:36.89 [2] <SYS> at java.awt.Container.layout(Container.java:1503)
2014-02-20 12:33:36.89 [2] <SYS> at java.awt.Container.doLayout(Container.java:1492)
2014-02-20 12:33:36.89 [2] <SYS> at java.awt.Container.validateTree(Container.java:1688)
2014-02-20 12:33:36.89 [2] <SYS> at java.awt.Container.validate(Container.java:1623)
2014-02-20 12:33:36.89 [2] <SYS> at com.solartechnology.controlconsole.ControlConsole.setCenter(ControlConsole.java:948)
2014-02-20 12:33:36.90 [2] <SYS> at com.solartechnology.controlconsole.CreateSequencePane.showPane(CreateSequencePane.java:106)
2014-02-20 12:33:36.90 [2] <SYS> at com.solartechnology.controlconsole.ControlConsole.goTo(ControlConsole.java:1594)
2014-02-20 12:33:36.90 [2] <SYS> at com.solartechnology.controlconsole.ControlConsole.goBack(ControlConsole
/ # 2014-02-21 16:55:55.62 [2] <SYS> Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
2014-02-21 16:55:55.63 [2] <SYS> at sun.font.StandardGlyphVector.init(StandardGlyphVector.java:1122)
2014-02-21 16:55:55.63 [2] <SYS> at sun.font.StandardGlyphVector.<init>(StandardGlyphVector.java:167)
2014-02-21 16:55:55.63 [2] <SYS> at java.awt.Font.createGlyphVector(Font.java:2544)
2014-02-21 16:55:55.63 [2] <SYS> at sun.swing.SwingUtilities2$LSBCacheEntry.getLeftSideBearing(SwingUtilities2.java:1097)
2014-02-21 16:55:55.63 [2] <SYS> at sun.swing.SwingUtilities2.getLeftSideBearing(SwingUtilities2.java:307)
2014-02-21 16:55:55.63 [2] <SYS> at javax.swing.text.FieldView.getPreferredSpan(FieldView.java:220)
2014-02-21 16:55:55.63 [2] <SYS> at javax.swing.text.FieldView.adjustAllocation(FieldView.java:83)
2014-02-21 16:55:55.63 [2] <SYS> at javax.swing.text.FieldView.insertUpdate(FieldView.java:293)
2014-02-21 16:55:55.63 [2] <SYS> at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(Basi
unsigned int bit = (1 << i);
if (read_val == '1') {
values |= bit;
} else {
values &= ~bit;
}
screen hi_chris:
hbox:
if a:
text "A is True"
vbox:
textbutton "Set A" action SetVariable("a", True)
textbutton "Clear A" action SetVariable("a", False)
textbutton "Toggle A" action ToggleVariable("a")
Ren'Py is a game engine designed for visual novels and life simulations, forms of digital storytelling that consist of presenting writing, choices, images, and sounds to the player. Its easy-to-learn script language and bundled tools enable beginners to create and release their first project, while the ability to embed Python code can be used to make complex games.
Ren'Py is open source and free for commercial use. It supports Windows, Mac OS X, Linux, and Android. Since its first release in 2004, over 600 games have been made with Ren'Py.
#!/usr/bin/python3
import seriallink
import threading
import sys
TTY = "/dev/ttyO2"
def generate_sequence(length):