Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Hello List,

I am quite sorry for my attitude.  I will look more thoroughly into the
search results.  Thanks for the link to Epik.  I had found this, but I
didn't realize that it was Python.  I apologize once again, and thank you
for your help.  I did give you a link to a sandbox game (powdertoy.co.uk)
as an example of what I wanted, but that must not have been delivered
properly.

My Apologies,
The Defenestrator
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
P.S.:  I also would like to say that I am a noob at Python, Pygame, and the
list.  I'll try not to post more stupid questions, though.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread bob gailer

On 2/6/2012 9:13 AM, Nate Lastname wrote:

Hello List,

I am quite sorry for my attitude.  I will look more thoroughly into 
the search results.  Thanks for the link to Epik.  I had found this, 
but I didn't realize that it was Python.  I apologize once again, and 
thank you for your help.  I did give you a link to a sandbox game 
(powdertoy.co.uk http://powdertoy.co.uk) as an example of what I 
wanted, but that must not have been delivered properly.
The link came thru fine. I expected some description of the game rather 
than having to download something. I am reluctant todownload unknowns. I 
even tried the Play Online and got to another messy connfusing site,


Could you give an overview of the game?

--
Bob Gailer
919-636-4239
Chapel Hill NC

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread bob gailer

On 2/6/2012 9:16 AM, Nate Lastname wrote:
P.S.:  I also would like to say that I am a noob at Python, Pygame, 
and the list.  I'll try not to post more stupid questions, though. 

We are here to help the newcomers. Questions are not stupid.

The easier you make it for us to answer the more likely you are to get 
answers. We volunteer our time to help you; we are not paid money for 
our service.


--
Bob Gailer
919-636-4239
Chapel Hill NC

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Hey all,

The basic idea is that there are different types of sand.  They fall
and move (or don't, if they are solid) and interact with each other in
different ways.  I.E.; there is a lava type;  it falls, and when it
hits other sand types, it heats them up.  If it gets cold, it becomes
sand.

I don't want to copy the game, I want to make my own to play around
with Py(thon/game).  Thanks for your help!

-- 
My Blog - Defenestration Coding

http://defenestrationcoding.wordpress.com/
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread bob gailer

On 2/6/2012 11:16 AM, Nate Lastname wrote:

Hey all,

The basic idea is that there are different types of sand.  They fall
and move (or don't, if they are solid) and interact with each other in
different ways.  I.E.; there is a lava type;  it falls, and when it
hits other sand types, it heats them up.  If it gets cold, it becomes
sand.
Thanks for a top-level overview. I have no practical experience with 
game /programming /, just some general concepts which I offer here, and 
leave it to others to assist.


You might add more specifics - do you want a graphics display? User 
interaction? Anything you add to your description helps us and helps you 
move to your goal.


I suggest you start simple, get something working then add another feature.

Simple? Could be as simple as 1 grain falling till it hits bottom. Does 
it have an initial velocity? Does it accelerate under the pull of 
gravity? Velocity means speed and direction. What happens when it hits 
bottom?


Then add a 2nd grain. What happens if the 2 collide?

What is your update rate (how often do you recompute the positions of 
all the grains)? What is the smallest increment of position change?


I assume you will create a class for each type of sand grain. with 
relevant properties and methods.


You will need a program that runs in a loop (probably with a sleep) to
-  update positions and  velocities of each grain (by invoking class 
methods)

-  detect and manage collisions
-  display each grain (by invoking class methods)

If you are using a graphics package I assume you will have a canvas on 
which you will draw some kind of object to represent a particular class 
of grain at the current x,y(,z?) coordinates of each grain.


It is possible to change the base class of an object on-the-fly, so a 
lava drop could become a sand grain.


That's all for now. Good coding!

I don't want to copy the game

Is there a Python version out there?

, I want to make my own to play around with Py(thon/game).




--
Bob Gailer
919-636-4239
Chapel Hill NC

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Some more info:

It's in pygame.
It's 2d.
I cannot find any python versions out there.  Yes, there is a
graphical interface, and yes, it is a user-controlled game.
Thank you all for your help!

The Defenestrator

On 2/6/12, bob gailer bgai...@gmail.com wrote:
 On 2/6/2012 11:16 AM, Nate Lastname wrote:
 Hey all,

 The basic idea is that there are different types of sand.  They fall
 and move (or don't, if they are solid) and interact with each other in
 different ways.  I.E.; there is a lava type;  it falls, and when it
 hits other sand types, it heats them up.  If it gets cold, it becomes
 sand.
 Thanks for a top-level overview. I have no practical experience with
 game /programming /, just some general concepts which I offer here, and
 leave it to others to assist.

 You might add more specifics - do you want a graphics display? User
 interaction? Anything you add to your description helps us and helps you
 move to your goal.

 I suggest you start simple, get something working then add another feature.

 Simple? Could be as simple as 1 grain falling till it hits bottom. Does
 it have an initial velocity? Does it accelerate under the pull of
 gravity? Velocity means speed and direction. What happens when it hits
 bottom?

 Then add a 2nd grain. What happens if the 2 collide?

 What is your update rate (how often do you recompute the positions of
 all the grains)? What is the smallest increment of position change?

 I assume you will create a class for each type of sand grain. with
 relevant properties and methods.

 You will need a program that runs in a loop (probably with a sleep) to
 -  update positions and  velocities of each grain (by invoking class
 methods)
 -  detect and manage collisions
 -  display each grain (by invoking class methods)

 If you are using a graphics package I assume you will have a canvas on
 which you will draw some kind of object to represent a particular class
 of grain at the current x,y(,z?) coordinates of each grain.

 It is possible to change the base class of an object on-the-fly, so a
 lava drop could become a sand grain.

 That's all for now. Good coding!

 I don't want to copy the game

 Is there a Python version out there?
 , I want to make my own to play around with Py(thon/game).



 --
 Bob Gailer
 919-636-4239
 Chapel Hill NC




-- 
My Blog - Defenestration Coding

http://defenestrationcoding.wordpress.com/
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Hold on... I just found one!  It's not ideal, but it will work at
least for a base -
http://www.pygame.org/project-pysand-1387-2577.html.  Thanks again,
all, for your excellent help!

The Defenestrator

On 2/6/12, Nate Lastname defens...@gmail.com wrote:
 Some more info:

 It's in pygame.
 It's 2d.
 I cannot find any python versions out there.  Yes, there is a
 graphical interface, and yes, it is a user-controlled game.
 Thank you all for your help!

 The Defenestrator

 On 2/6/12, bob gailer bgai...@gmail.com wrote:
 On 2/6/2012 11:16 AM, Nate Lastname wrote:
 Hey all,

 The basic idea is that there are different types of sand.  They fall
 and move (or don't, if they are solid) and interact with each other in
 different ways.  I.E.; there is a lava type;  it falls, and when it
 hits other sand types, it heats them up.  If it gets cold, it becomes
 sand.
 Thanks for a top-level overview. I have no practical experience with
 game /programming /, just some general concepts which I offer here, and
 leave it to others to assist.

 You might add more specifics - do you want a graphics display? User
 interaction? Anything you add to your description helps us and helps you
 move to your goal.

 I suggest you start simple, get something working then add another
 feature.

 Simple? Could be as simple as 1 grain falling till it hits bottom. Does
 it have an initial velocity? Does it accelerate under the pull of
 gravity? Velocity means speed and direction. What happens when it hits
 bottom?

 Then add a 2nd grain. What happens if the 2 collide?

 What is your update rate (how often do you recompute the positions of
 all the grains)? What is the smallest increment of position change?

 I assume you will create a class for each type of sand grain. with
 relevant properties and methods.

 You will need a program that runs in a loop (probably with a sleep) to
 -  update positions and  velocities of each grain (by invoking class
 methods)
 -  detect and manage collisions
 -  display each grain (by invoking class methods)

 If you are using a graphics package I assume you will have a canvas on
 which you will draw some kind of object to represent a particular class
 of grain at the current x,y(,z?) coordinates of each grain.

 It is possible to change the base class of an object on-the-fly, so a
 lava drop could become a sand grain.

 That's all for now. Good coding!

 I don't want to copy the game

 Is there a Python version out there?
 , I want to make my own to play around with Py(thon/game).



 --
 Bob Gailer
 919-636-4239
 Chapel Hill NC




 --
 My Blog - Defenestration Coding

 http://defenestrationcoding.wordpress.com/



-- 
My Blog - Defenestration Coding

http://defenestrationcoding.wordpress.com/
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread Greg Nielsen
Nate,

 I myself am a newer programmer with most of my experience in the use
of pygame, perhaps I could help point you in the right direction. First,
there is a lot of cool stuff over at the main pygame website, and a lot of
the users will post projects with images, general overviews, and a link to
their main codebase / content. It might take some searching, but you could
definitely find something similar to what you are working on there.
 While finding something similar to what you are working on would
really help you out, something you might find even better is this book by
Andy Harris
http://www.amazon.com/Game-Programming-Line-Express-Learning/dp/0470068221/ref=sr_1_5?s=booksie=UTF8qid=1328564353sr=1-5
It's
an amazing resource that takes you from installing python to creating your
own games and even a game engine. There is a good chance that your local
library has a copy. If you are serious about learning game programming in
python, this is what you need to read.
 Lastly, speaking from experience. Start small. Just like Bob said,
start with just the absolute basics and slowly add to your program. Mr.
Harris' book demonstrates this in Chapter 7 perfectly. So check out
pygame's website and check out that book from your library. I promise it
will help you get started.

Greg
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread Nate Lastname
Thanks, Greg.  I actually have two projects on the pygame website, and
I already have a great book, too.  But thank you very much :D

-- 
My Blog - Defenestration Coding

http://defenestrationcoding.wordpress.com/
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-06 Thread Steven D'Aprano
On Mon, Feb 06, 2012 at 09:13:48AM -0500, Nate Lastname wrote:
 Hello List,
 
 I am quite sorry for my attitude.  I will look more thoroughly into the
 search results.  Thanks for the link to Epik.  I had found this, but I
 didn't realize that it was Python.  I apologize once again, and thank you
 for your help.  I did give you a link to a sandbox game (powdertoy.co.uk)
 as an example of what I wanted, but that must not have been delivered
 properly.

Thank you for the gracious apology, and welcome to the group!

Don't worry about asking stupid questions, we don't mind them so long as 
you make an effort to solve them yourself first, and that you learn from 
them as you go.


-- 
Steven

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname

 More details:  I want it to be something similar to this: powdertoy.co.uk.
  It will have different elements, though.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-05 Thread Robert Berman



On 02/05/2012 02:43 PM, Nate Lastname wrote:

Hey List,

I am thinking about making a sandbox game.  Where should I start?  Has 
anyone done this before?  I'm having trouble in MANY places, and I 
couldn't find any similar projects with a Google search.



___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Really no information.  Just an immediate search on Google listed 
approximately 20,100,00 general articles on sandbox games. Searching the 
same category including python there are at least 1,100,000.

What is your experience level doing basic research?

Robert Berman
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-05 Thread Nate Lastname
Hello Robert,

I appreciate the reply, but I have two things to say:
1. Your nastiness is not appreciated or really needed.
2. If you look at the results, none of them actually give relavant info.  I
DID do research before I asked here, extensively, and found nothing.

Thanks,
The Defenestrator.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-05 Thread Alan Gauld

On 05/02/12 20:44, Nate Lastname wrote:


I appreciate the reply, but I have two things to say:
1. Your nastiness is not appreciated or really needed.


I don't think Robert intended to be nasty. But you
don't really give us much of a clue what you want.
There is a ton of stuff on Google, if it doesn't
answer your questions you need to be more precise
about what kind of help you need.

What have you tried, what are you planning,
what don't you understand? If you say everything
then we will just tell you to start at the beginning.

The more precisely you frame your questions the more
likely you are to get a useful answer.


2. If you look at the results, none of them actually give relavant info.


Relevant to what? the ones I looked at were all
relevant in some way or another. But I don't know
what you were expecting to find.

Blender seems to be a common theme.
And here is one such game with downloadable source code.
Maybe you can use that as a starter? Or maybe just join their project?

http://code.google.com/p/epik-project/wiki/EpikKickstart

HTH,
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Sandbox Game

2012-02-05 Thread Steven D'Aprano

Nate Lastname wrote:

Hey List,

I am thinking about making a sandbox game.  Where should I start?  Has
anyone done this before?  I'm having trouble in MANY places, and 


This mailing list is for learning the Python programming language, not for 
answering arbitrary questions about anything vaguely related to Python. But in 
general, if you want to make games in Python, you can do far worse than to 
start with PyGame.


Please define what you mean by sandbox game. Do you mean a game that 
simulates playing in a sandbox? Or a game that runs in a (security) sandbox? 
Or something else?


Running Python in a sandbox is a big, big task. In general, I would say it 
can't be done without assistance from the operating system, e.g. using a Unix 
chroot to limit access to the file system. But you could try PyPy, which I 
understand has a restricted Python mode.




I couldn't
find any similar projects with a Google search.


I find that difficult to believe. Perhaps you have other constraints that you 
are keeping secret, because the first page of Google search includes a link to 
someone who wrote a sandbox game (whatever that is!) similar to World of Goo 
using Pygame:


http://www.pygame.org/project-World+of+Goo+physics-1018-1785.html


--
Steven

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor