Skip to content

Commit

Permalink
add 3D prerendered panoramic example, tweak various things
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasTheSpaceFox committed May 28, 2017
1 parent 7b746be commit 46720be
Show file tree
Hide file tree
Showing 14 changed files with 85 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# main save file
main.sav
*.pyc
*.pyc
*.pyo
Binary file added BG3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion DZU-ENG1.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pygame.display.init()
pygame.font.init()
pygame.mixer.init()
print "Desutezeoid arbitrary point and click engine v1.4.1"
print "Desutezeoid arbitrary point and click engine v1.4.2"
print "parsing ENGSYSTEM.xml"
conftree = ET.parse("ENGSYSTEM.xml")
confroot = conftree.getroot()
Expand Down Expand Up @@ -49,6 +49,7 @@


def filelookup(filename):
global filedict
if filename in filedict:
return filedict[filename]
else:
Expand Down
Binary file added DZU-Pano-3D-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 40 additions & 5 deletions ENGSYSTEM.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--window size-->
<screen x="800" y="600"/>
<!--Game/program Title/windown icon.-->
<title base="Desutezeoid v1.4.1 test program. " icon="icon.png" />
<title base="Desutezeoid v1.4.2 test program. " icon="icon.png" />
<!--page to load at engine start.-->
<beginref>test0.xml</beginref>
<!--debug settings. used in development and testing. printkeys controls keyid list printing.
Expand Down Expand Up @@ -38,13 +38,37 @@
<!--The useprev attribute causes a jump to the previous page loaded.-->
<pagejump keyid="pagejumptestB" useprev="1" page="test0.xml"/>
<uipop keyid="welcome" msg="Welcome to the Desutezeoid test program!"/>


<uimenu keyid="mainmenu1" BGCOLOR="#0000AA" FGCOLOR="#FFFFFF" textsize="25">
<item con="Main Menu | page 1" noact="1"/>
<item con="Main page" keyid="pagejumppage1" stay="1"/>
<item con="Another page" keyid="pagejumppage2" stay="1"/>
<item con="About" keyid="pagejumppage3" stay="1"/>
<item con="warp things..." keyid="pagejumppage4" stay="1"/>
<item con="Telescopic" keyid="pagejumppage5" stay="1"/>
<item con="3D prerendered panoramic" keyid="pagejumppage6" stay="1"/>
<item con="Flashlight effect." keyid="pagejumppage7" stay="1"/>
<item con="-------------------" noact="1"/>
<!--<item con="more..." keyid="mainmenu2" stay="0"/>-->
<item con="close menu"/>
</uimenu>
<uimenu keyid="mainmenu2" BGCOLOR="#0000AA" FGCOLOR="#FFFFFF" textsize="25">
<item con="Main Menu | page 2" noact="1"/>
<item con="-------------------" noact="1"/>
<item con="more..." keyid="mainmenu1" stay="0"/>
<item con="close menu"/>
</uimenu>
<pagejump keyid="pagejumppage1" page="test0.xml"/>
<pagejump keyid="pagejumppage2" page="test1.xml"/>
<pagejump keyid="pagejumppage3" page="about.xml"/>
<pagejump keyid="pagejumppage4" page="warptest1.xml"/>
<pagejump keyid="pagejumppage5" page="spotlight.xml"/>
<pagejump keyid="pagejumppage6" page="warptest2.xml"/>
<pagejump keyid="pagejumppage7" page="flashlight.xml"/>
</globalforks>
<!--these core objects are present on each page-->
<globalcore>
<!--this label uses the act type "quit" when clicked, this will quit the "game" also note how since this is present in globalcore, it shows on every page.-->
<label x="0" y="580" size="20" BGCOLOR="#880000" FGCOLOR="#FFFFFF" >
<!--<label x="0" y="580" size="20" BGCOLOR="#880000" FGCOLOR="#FFFFFF" >
<con>QUIT</con>
<act type="quit" ref="test1.xml"/>
</label>
Expand All @@ -60,6 +84,17 @@
<con>Prev</con>
<act type="key"/>
</label>

<label x="40" y="580" size="20" BGCOLOR="#008888" keyid="mainmenu1" FGCOLOR="#FFFFFF" >
<con>Menu</con>
<act type="key"/>
</label>-->
<img x="0" y="577">
<con>quitbutton.png</con>
<act type="quit"/>
</img>
<img x="46" y="577" keyid="mainmenu1">
<con>menubutton.png</con>
<act type="key"/>
</img>
</globalcore>
</conf>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Desutezeoid
v1.4.0
v1.4.2
an arbitrary point and click engine.
(c) 2015-2017 Thomas Leathers

Expand Down
4 changes: 2 additions & 2 deletions about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<main>
<pageconf BGimg="1" BGM="0">
<title>About Desutezeoid.</title>
<BG>BGseaside.jpg</BG>
<BG>BG3.jpg</BG>
<BGM>BGM1.ogg</BGM>
</pageconf>
<forks>
Expand All @@ -13,7 +13,7 @@
<act type="none"/>
</label>
<!--notice how the "text" object has similar attributes to the label tag, but lacking click and hover related, attribues. It still has onkey and offkey though. do note this can take longer to process than other core objects.-->
<text x="10" y="30" size="20" transp="1" FGCOLOR="#000000">v1.4.0
<text x="10" y="30" size="20" transp="1" FGCOLOR="#000000">v1.4.2
an arbitrary point and click engine.
(c) 2015-2017 Thomas Leathers

Expand Down
2 changes: 1 addition & 1 deletion flashlight.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<main>
<!--setting BGMstop to "0" keeps any music from the previous page playing (unless the page has defined Background music.) BGMstop falls back to "1" if not specified.-->
<pageconf BGimg="1" BGMstop="0">
<title>Lens warp, follow mouse effect.</title>
<title> flashlight, follow mouse effect.</title>
<BG>BG2.jpg</BG>
</pageconf>
<forks>
Expand Down
Binary file added menubutton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quitbutton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions spotlight.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<main>
<!--setting BGMstop to "0" keeps any music from the previous page playing (unless the page has defined Background music.) BGMstop falls back to "1" if not specified.-->
<pageconf BGimg="1" BGMstop="0">
<pageconf BGimg="0" BGMstop="0">
<title>Lens warp, follow mouse effect.</title>
<BG>BGseaside.jpg</BG>
</pageconf>
Expand All @@ -11,12 +11,15 @@
<!--notice how if this used 2 in place of 3, it would be inverted. 3
basically translates that mouse coordinate to the oposing side of the screen.
also note that warptest1.jpg is 2x the size of the screen. and it is a x,y panoramic style image.
(you can use the lens distortion tool in GIMP for simple images)-->
(you can use the lens distortion tool in GIMP for simple images)
you can also use a very wide panoramic camera in 3D software like blender
also turning off BGimg in pageconf can speed up rendering.-->
<img x="0" y="0" mouseh="3" mousev="3">
<con>warptest1.jpg</con>
<act type="none" ref="test0.xml"/>
</img>
<img x="0" y="0" mouseh="2" mousev="2">
<!--the "spotlight" is just a black image with a circle cut out in mouseh/mousev mode 2-->
<img x="0" y="0" mouseh="2" mousev="2">
<con>spotlight.png</con>
<act type="none" ref="test0.xml"/>
</img>
Expand Down
8 changes: 6 additions & 2 deletions test0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,18 @@ thats why only one label per switch, is visible at a time.-->
<con>warp things...</con>
<act type="iref" ref="warptest1.xml"/>
</label>
<label x="400" y="250" size="25" BGCOLOR="#AAAAFF" FGCOLOR="#000000">
<label x="400" y="255" size="25" BGCOLOR="#AAAAFF" FGCOLOR="#000000">
<con>Telescopic</con>
<act type="iref" ref="spotlight.xml"/>
</label>
<label x="400" y="270" size="25" BGCOLOR="#AAAAFF" FGCOLOR="#000000">
<label x="400" y="280" size="25" BGCOLOR="#AAAAFF" FGCOLOR="#000000">
<con>flash light</con>
<act type="iref" ref="flashlight.xml"/>
</label>
<label x="400" y="305" size="25" BGCOLOR="#AAAAFF" FGCOLOR="#000000">
<con>3D prerendered panoramic</con>
<act type="iref" ref="warptest2.xml"/>
</label>
<label x="200" y="230" size="25" BGCOLOR="#BBBBBB" FGCOLOR="#000000" takekey="dropmenu1" onkey="dropmenu1">
<con>menu</con>
<act type="key" ref="test1.xml"/>
Expand Down
4 changes: 3 additions & 1 deletion warptest1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<!--notice how if this used 2 in place of 3, it would be inverted. 3
basically translates that mouse coordinate to the oposing side of the screen.
also note that warptest1.jpg is 2x the size of the screen. and it is a x,y panoramic style image.
(you can use the lens distortion tool in GIMP for simple images)-->
(you can use the lens distortion tool in GIMP for simple images)
you can also use a very wide panoramic camera in 3D software like blender
also turning off BGimg in pageconf can speed up rendering.-->
<img x="0" y="0" mouseh="3" mousev="3">
<con>warptest1.jpg</con>
<act type="none" ref="test0.xml"/>
Expand Down
22 changes: 22 additions & 0 deletions warptest2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<main>
<!--setting BGMstop to "0" keeps any music from the previous page playing (unless the page has defined Background music.) BGMstop falls back to "1" if not specified.-->
<pageconf BGimg="0" BGMstop="0">
<title>3D prerendered Panoramic, follow mouse effect.</title>
<BG>DZU-Pano-3D-1.jpg</BG>
</pageconf>
<forks>
</forks>
<core>
<!--notice how if this used 2 in place of 3, it would be inverted. 3
basically translates that mouse coordinate to the oposing side of the screen.
also note that warptest1.jpg is 2x the size of the screen. and it is a x,y panoramic style image.
(you can use the lens distortion tool in GIMP for simple images)
you can also use a very wide panoramic camera in 3D software like blender
also turning off BGimg in pageconf can speed up rendering.-->
<img x="0" y="0" mouseh="3" mousev="3">
<con>DZU-Pano-3D-1.jpg</con>
<act type="none" ref="test0.xml"/>
</img>
</core>
</main>

0 comments on commit 46720be

Please sign in to comment.