Hi Rick,

    I am writing games using the Python scripting language. Python has a 
module called PyGame which allows you to use Mixer modules and all key 
events to play games with.

    The safest version of Python is Python 2.7 and you download all stuff, 
com, or win32 stuff which matches that version of Python.
    Then download the PyInstaller module which is a separate folder that 
allows you to compile your Python script, which is text, into an executable 
file, which is also portable and does not require you to be dependent on 
Python on any other computer you choose to use.


    That is why the compiled version of the game is over 6 megs for it also 
installs all Python modules you use into one package, thus all libraries are 
in one place.

    It is allow a free script that you can download. You just have to get 
use to how it works and is an indent language, no end statement and such, 
just the indent does that. You can escape loops and such with a break 
command.
    Once you read up on it I think you will find it fun to use and actually 
a lot easier once you learn some of the hidden things in it.


Note:
    A dictionary can be defined as just: {}
An Array as: []
A list is an array and other things as well are just as easy to define.
Now a key in a dictionary is a pair like:
myDict = {}
myDict[ "key1"] = "Key One"
or
myDict = {"Key One": "key1"}

This is the same for lists, which are arrays and so on.

Now a unique thing in passing parms into procedures or functions, you can 
have a default value if nothing is there.

Procedure:
def MakingDict( spk="Doing My Dict", myDict = {"Default1": "key1"}):
    print " %s and My Dict Key value is: %s" % (spk, myDict[ "key1"])

MakingDict()

Now, note nothing is in parens, so it will display:
Doing My Dict and my key value is: Default1

If you just place in the first position another message and it will display 
it instead of the spk and if you pass in a different dictionary and has that 
key in it, it will display that value of the passed in dict. But key errors 
are there if that do not exist.

    Once assigned the new default is what was passed in and that old default 
is no longer there. Which is something to remember when doing such 
statements and later on you have just parens it will use the new 
assignment...


    So, study Python if you want to write games...

        Bruce


Sent: Thursday, September 24, 2015 8:33 AM
Subject: RE: Upgrade: Sea Battle 2015 Version 2.3 Upgrade and Uploaded


Hi Rod:
Are you developing games or making existing games accessible?
Just curious since I was looking at a couple of articles on game development
a few weeks ago.
Rick USA

-----Original Message-----
From: Scripting
[mailto:scripting-bounces+ofbgmail=mi.rr....@lists.window-eyes.com] On
Behalf Of LB via Scripting
Sent: Thursday, September 24, 2015 8:13 AM
To: Window-Eyes Scripting List <scripting@lists.window-eyes.com>
Subject: Upgrade: Sea Battle 2015 Version 2.3 Upgrade and Uploaded

Hi!

    Of course after uploading I discovered one minor issue concerning first
letter search and that it says the last on the list if you hit return after
a search failure...minor, but fixed for next upgrade.

But, I decided to also insert a sound file if the list is blank, for you
will get kicked out if it is blank. So a default music file/background sound

will be used if blank. Also, when deleting to nothing the same issues arise,

so once again I will prevent deleting the last on the list if there are no
others on the list; to prevent the same issue, especially in the background,

but both play the first or last chosen when entering the list for
editing...thus delete will not allow to delete if only one exists.

Note:
    I had already mentioned to Rod that you can play the Juke Box or Game by

just using the program itself.
You can set up a Desktop shortcut to just go to the game/Juke box by using
the command line switches.
Remember each switch must be separated by a space.
The switches are:
W for Windoweyes voice/commands,
S for SAPI, (but it is the default if no W), (If no Windoweyes no .ini file
loads.)
J is for Juke Box
R# is for row size,
C# is for column size.
For the row and column you just do R10 or C10 or R26 or C26 or any numbers
between 5 and 26.

So a Shortcut format example would be:
SBFTVI.exe W J R18 C12
Result:
Windoweyes voice, Juke Box play, 18 rows and 12 columns for game play.
Note:
Order does not matter and it is not case sensitive.
Leaving out the J defaults to game play.
If you state any switch more than once it is only the last switch seen that
is used.
You can use WE or SAPI but, Row and Column must be just the first letter.

    In the future the play list will be stored in the registry, avoiding
issues with the lack of Windoweyes for the .ini file.
But since we are Windoweyes, it is a low priority issue.

        Bruce



Sent: Wednesday, September 23, 2015 11:36 AM
Subject: Re: Sea Battle 2015 Version 2.3 Upgrade and Uploaded



Note:
    I changed the background volume adjustment hotkey, it is now just the Up
and Down Arrow keys while holding down the control key.
    This feature is in all levels or locations while during the game or play
lists.

Hi!

    The Sea Battle 2015 game or Juke Box has been uploaded for play.

    Below are the hotkey changes along with the F1 key for help for any of
the game/Juke Box lists.

Note: You now can search for files to play while in the game or Juke Box
list. Use the Insert key or I key, along with the shift or control key.
    Also, the list quick search you can use the first letter of the name to
search for, this also works while searching for the file to add to the list.

    When deleting an entry from the list that last delete is held for
insertion any where on the list. But if you delete more than one, only the
last delete can be restored.

    Using Shift Insert or shift I you are inserting after the file you have
focus on, or selected. This comes in handy when adding to the end of the
list.
    Delete/restore has no feature like this, you just have to
do several delete key strokes like:
1) shift delete at the end and
2) control delete the last file on the list and
3) shift delete at the end
to accomplish the insert of the initial delete at the end.

Game Play List Hotkeys:
Hotkeys when playing game and F9 or Shift F9 Hotkeys were hit.
Cursor Up and Down: Move up and down selection list.
Note: When in Juke Box it does not play the music, just says the name.
Shift Cursor Up and Shift Cursor Down plays the selected music if in Juke
Box.
Control Cursor Up: Raise the background music volume.
Control Cursor Down: Lower the background music volume.
Cursor Right: Says name of music selected.
Cursor Left: Says name of music currently playing in Juke Box list.
Home: Goes to top of list.
End: Goes to end of list.
Note: In Juke Box it does not play the music unless Return or Enter key was
hit.
Page Up or Down: Goes up or down 5 names on the list.
Note: In Juke Box it does not play the music unless Return or Enter key was
hit.
Control Insert Key: Search for file to insert into current music list
location.
Shift Insert Key: Search for file to insert into next music list location.
Control I Key: Search for file to insert into current music list location.
Shift I Key: Search for file to insert into next music list location.
Control Delete: Delete current music selection from the list.
Shift Delete: Restore deleted music file to the list at present location.
Note: Each time pressed places another copy on the list; allowing multiple
insertions.
Note2: The above hotkeys are only used during the game when F9 and Shift F9
hotkeys for the Background and Juke Box selection is hit.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com/attachme
nts/20150923/306a0346/attachment.htm>
_______________________________________________
Any views or opinions presented in this email are solely those of the author
and do not necessarily represent those of Ai Squared.

For membership options, visit
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lab4me%40
fltg.net.
For subscription options, visit
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
Any views or opinions presented in this email are solely those of the author

and do not necessarily represent those of Ai Squared.

For membership options, visit
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/lab4me%40
fltg.net.
For subscription options, visit
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
Any views or opinions presented in this email are solely those of the author
and do not necessarily represent those of Ai Squared.

For membership options, visit
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/ofbgmail%
40mi.rr.com.
For subscription options, visit
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
Any views or opinions presented in this email are solely those of the author 
and do not necessarily represent those of Ai Squared.

For membership options, visit 
http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com.
For subscription options, visit 
http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com
List archives can be found at 
http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com

Reply via email to