maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Accelerometer game proposal: sheepdog (https://talk.maemo.org/showthread.php?t=36198)

hopbeat 2009-12-21 10:12

Re: Accelerometer game proposal: sheepdog
 
@RevdKathy, thanks :)

In the final (game) version, we will need some 'dots', depending on controls (e.g. one for accelerometer controls, also for places where tapped). This should however be in a form of nice graphics, either semi-transparent circles or actual objects (dogs, shepherds, carrots).

Engine is ready for permanent penning, it's a matter of adding one loop. It can be dynamically adjusted, depending on level.

lcuk 2009-12-21 10:45

Re: Accelerometer game proposal: sheepdog
 
excellent hopbeat!
i had a snowed in weekend but still didn't manage anything visibly productive tho.

i did consider something that if i can make it will provide a different viewpoint and hopefully look cool.
shall see how well it works when i get onto it:

1 sheepdog central to the screen which rotates and moves but the camera remains on the dog whilst it moves around the field to round up the sheep.
tilting and tipping changes direction/speed of the dog.
this is different to the marbles in holes approach and allows for the larger panning display thats been discussed.

not sure how it would work tho, shall have to see.
was using liqflow to think about it

hopbeat 2009-12-21 10:53

Re: Accelerometer game proposal: sheepdog
 
@lcuk, it can look cool, a bit like the sheep game for PC I think (although there the camera was not rotating)
liqflow is a definite killer for this app, I just wanted to start from scratch for my own amusement :)

andrewfblack 2009-12-21 13:17

Re: Accelerometer game proposal: sheepdog
 
Engine is looking good, just let me know what you need on graphic end a transparent circle, carrots what ever you want.

hopbeat 2010-01-02 17:38

Re: Accelerometer game proposal: sheepdog
 
Here is a playable first level:

http://www.student.dtu.dk/~s081608/sheep.tar

No package, just download to your N900 (to a place where you can run it, e.g. /home/user and do

Code:

tar zxvf sheep.tar
Then
Code:

cd sheep_pack
./sheep

Tilt the phone to move point of interest. You can touch the screen to create a point of attraction (temporary). The aim of course is to all the sheep in the pans (one per each). Once panned (you will feel vibration) the sheep is immobilized.

It still needs a lot of love, but is playable. I should be able to work on this this week to make it actually enjoyable to dance with our sheep.

Any feedback appreciated. Anyone for making a victory text (maybe with smiling sheep face?)

qole 2010-01-02 17:41

Re: Accelerometer game proposal: sheepdog
 
A higher level should include the sheep I saw this Christmas. I dare ya to herd those guys.

RevdKathy 2010-01-02 17:54

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by hopbeat (Post 450076)
Here is a playable first level:

http://www.student.dtu.dk/~s081608/sheep.tar

No package, just download to your N900 (to a place where you can run it, e.g. /home/user and do

Code:

tar zxvf sheep.tar
Then
Code:

cd sheep_pack
./sheep

Tilt the phone to move point of interest. You can touch the screen to create a point of attraction (temporary). The aim of course is to all the sheep in the pans (one per each). Once panned (you will feel vibration) the sheep is immobilized.

It still needs a lot of love, but is playable. I should be able to work on this this week to make it actually enjoyable to dance with our sheep.

Any feedback appreciated. Anyone for making a victory text (maybe with smiling sheep face?)

Brilliant brilliant... but can you demystify that for the small-brained among us. D/l to my pc, and unzip. Connect via mass storage and copy/paste where exactly? (Yeah - I'm that stupid and easily scared)

Then open xterminal and type in what you said, yes? So the only bit I'm uncertain of is where to put it. Please! I want to try it!

(Hoping up and down with excitiement!)

TA-t3 2010-01-02 18:11

Re: Accelerometer game proposal: sheepdog
 
Just download the sheep.tar file, then copy it to your N900 into /home/user (that's where you are when you open an xterm), (no unzip anywhere) then start an xterm and enter the commands in the 'code' sections from hopbeat (those you quoted)

If you copy it via mass storage the .tar file may end up in /home/user/MyDocs, if so, then do 'tar zxvf MyDocs/sheep.tar' instead of the above.

(the file should have been named .tar.gz actually, because it's a compressed tar file.. the 'z' flag to tar handles the decompression.)

EDIT: Updated a little.

rcull 2010-01-02 18:14

Re: Accelerometer game proposal: sheepdog
 
1 Attachment(s)
It may be just me but the directions seem to be reversed ??

Managed it though.

RevdKathy 2010-01-02 18:15

Re: Accelerometer game proposal: sheepdog
 
See, that's where you went over my very stupid head. I only know how to copy stuff via mass storage. I can put it into any f the folders visible that way, or straight onto the n900. But I don't know how to put it into /home/user

OK... It says 'permission denied'. It must think I'm a wolf.

(And if you'd have told me a month ago I'd by typing into Xterminal to play with sheep I'd have fallen over laughing!)

TA-t3 2010-01-02 18:19

Re: Accelerometer game proposal: sheepdog
 
You only have to find out where it is.. :-)
Then you put yourself in /home/user, that's where you are whenever you open a new xterm, or whenever you just enter 'cd' in an xterm.
Then specify the path to where the file is, e.g. tar zxvf MyDocs/sheep.tar or MyDocs/.documents/sheep.tar (you see, I don't know exactly which path is used for mass storage, I haven't used it). You can always find it with
find . -name sheep.tar
in an xterm.

RevdKathy 2010-01-02 18:23

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by TA-t3 (Post 450126)
You only have to find out where it is.. :-)
Then you put yourself in /home/user, that's where you are whenever you open a new xterm, or whenever you just enter 'cd' in an xterm.
Then specify the path to where the file is, e.g. tar zxvf MyDocs/sheep.tar or MyDocs/.documents/sheep.tar (you see, I don't know exactly which path is used for mass storage, I haven't used it). You can always find it with
find . -name sheep.tar
in an xterm.

Sorry - this is only my second ever venture into xteminal. Yeah, I really AM that much of a n00b!

I got as far as opening it, but I get 'permission denied'. :( I'm obviously doing something very stupid.

hopbeat 2010-01-02 18:28

Re: Accelerometer game proposal: sheepdog
 
Sorry, I'm stupid...
Here is the package:

http://www.student.dtu.dk/~s081608/s....0.1_armel.deb

download it somewhere, copy to the device.
Go to Terminal.
Gain root.
Go to the directory, where the package is.

Do

Code:

dpkg -i sheep_0.0.1_armel.deb
You can now exit root (just type 'exit').
Type 'sheep'.
It should work :)

To remove (as root):

Code:

apt-get remove sheep

casper27 2010-01-02 18:28

Re: Accelerometer game proposal: sheepdog
 
try executing

chmod 777 sheep_pack

This should allow you to open it.

hopbeat 2010-01-02 18:30

Re: Accelerometer game proposal: sheepdog
 
@rcull, could you elaborate on those directions? Is it up and down (it can seem tricky)?

TA-t3 2010-01-02 18:30

Re: Accelerometer game proposal: sheepdog
 
Ok, I'm not sure exactly what you did - what do you mean by 'opening' it?

The steps are:
1: Download the file, e.g. to your PC
2: Copy it to the N900. I _think_ it will end up in /home/user/MyDocs/ then.
3: Open an xterm
4: There should now be a file /home/user/MyDocs/sheep.tar, you can check with
Code:

ls -l MyDocs/sheep.tar
5: Unpack it with the command
Code:

tar zxvf MyDocs/sheep.tar
6: Run the program with
Code:

cd sheep_pack
./sheep

(Note leading '.' in ./sheep)

EDIT: hopbeat beat me to it with a proper .deb package.

rcull 2010-01-02 18:44

Re: Accelerometer game proposal: sheepdog
 
Hopbeat

As I said it might be just my expectations but if I tilt the 900 forward I would expect the attractor to move forwards not backwards ( roll down the slope as it were ) the same with tilting left and right. :)

I'm surre I could eventually get used to it but it all seem diametrically opposite to what I instinctively expect.

Rick

RevdKathy 2010-01-02 18:47

Re: Accelerometer game proposal: sheepdog
 
1 Attachment(s)
./sheep: error while loading shared libraries: libQtGui.so.4 cannot open shared objec file: No such file or directory
~sheep_pack

(This may be terribly annoying for you but it's actually quite exciting for me... I'm actually working in Xterminal! :eek: )

hopbeat 2010-01-02 18:52

Re: Accelerometer game proposal: sheepdog
 
@RevdKathy

gain root and do
Code:

apt-get install libqt4-gui
This should fix the problem.

I know that it should be done through repo, but I just wanted to share how it looks right now and where it goes.

RevdKathy 2010-01-02 18:59

Re: Accelerometer game proposal: sheepdog
 
1 Attachment(s)
Quote:

Originally Posted by hopbeat (Post 450173)
@RevdKathy

gain root and do
Code:

apt-get install libqt4-gui
This should fix the problem.

I know that it should be done through repo, but I just wanted to share how it looks right now and where it goes.

Ummm it won't let me do that, either. I suspect there are basic tools I don't have dlownloaded.

Now you're sorry you let yourself get talked into this by someone who knows ZILCH about code, aren't you. *sigh*

I want to see SHEEP! (Sobs)

qole 2010-01-02 19:05

Re: Accelerometer game proposal: sheepdog
 
Great start!

Three things:

- horizontal (long) direction is the opposite of vertical (short) direction. That is, a vertical tilt does the opposite of a horizontal tilt; it is a "bubble" vertically, but a "weight" horizontally. I think it should be a weight ("fall" down) in both directions.

-Screen blanking! Argh!

- The accelerometer point should be a repeller, not an attractor. This would be more like sheep herding. You can still create attractors by touching the screen, but the floating point should be a sheepdog, that is, a repeller.

hopbeat 2010-01-02 19:12

Re: Accelerometer game proposal: sheepdog
 
@RevdKathy, you need to be root first, try this

@rcull, @qole, thanks, I will fix this (any tip how to nicely reset inactivity?)

lcuk 2010-01-02 19:13

Re: Accelerometer game proposal: sheepdog
 
amazing!

cure the only flaw:

upload to extras-devel
99.9% of all testers/users/sheep do not know how to install stuff in this manner, please don't even bother trying to talk them round, ever.

lcuk 2010-01-02 19:15

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by hopbeat (Post 450208)
@RevdKathy, you need to be root first, try this

@rcull, @qole, thanks, I will fix this (any tip how to nicely reset inactivity?)

hopbeat, not sure in qt
but theres a number of apps now that have a heartbeat signal, i'll try to find the codez

j.s 2010-01-02 19:16

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by RevdKathy (Post 450189)
Ummm it won't let me do that, either. I suspect there are basic tools I don't have dlownloaded.

Now you're sorry you let yourself get talked into this by someone who knows ZILCH about code, aren't you. *sigh*

I want to see SHEEP! (Sobs)

RevdKathy,

You need to install rootsh from the app manager,
then type root in a terminal window before you can use the apt-get command.

rcull 2010-01-02 19:16

Re: Accelerometer game proposal: sheepdog
 
RevdKathy

Looking at your prompt you were not root when you ran apt-get.

Rick

Edit j.s beat me to it :)

lcuk 2010-01-02 19:19

Re: Accelerometer game proposal: sheepdog
 
http://talk.maemo.org/showpost.php?p=275097&postcount=9
lists the method i've seen used (the code, not the executable itself)

RevdKathy 2010-01-02 19:33

Re: Accelerometer game proposal: sheepdog
 
Nope - I'm still stupid. I installed the /.deb file to the same place I put the .tar file.

I installed rootsh (from the repo). And I gained root.

But is when I run the .deb file it says 'file not found'. So I'm in the wrong directory.

I'm on IRC if anyone wants to help me play Bo Peep!

RevdKathy 2010-01-02 20:41

Re: Accelerometer game proposal: sheepdog
 
OMG!!!! I can haz sheep!!!!


Huge, huge thanks to Hopbeat. Not only did he create this, he spent an age with me in IRC talking me through my first experience of gaining root. What a way to start the New Year!

Thank you, thank you!!! It;s lovely. I shall be playing it all night (my sheep are currently hiding in a corner of the field)

j.s 2010-01-02 21:00

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by lcuk (Post 450209)
99.9% of all testers/users/sheep do not know how to install stuff in this manner, please don't even bother trying to talk them round, ever.

This is the tried and true attitude that continues to be successful in keeping school children from disadvantaged backgrounds from making progress.

rcull 2010-01-02 21:15

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by j.s (Post 450319)
This is the tried and true attitude that continues to be successful in keeping school children from disadvantaged backgrounds from making progress.

I have to agree. People should at least be given the chance to learn. Its a bit arrogant to assume that others are incapable of learning what you have.

Well done RevgKathy keep learning.

hopbeat 2010-01-02 21:18

Re: Accelerometer game proposal: sheepdog
 
Anyways, sheep is now in extras-devel. I would be grateful if someone, without any extra qt packages installed could check if it install clean (especially the issue may be with libqt4-gui).

Thanks.

RevdKathy 2010-01-02 21:37

Re: Accelerometer game proposal: sheepdog
 
Thank you, thank you, thank you. And thank you for the endless patience. I feel about as stupid as a sheep with this stuff. But I have the grim determination of a jack-russell terrier. I hate to be beaten. Just remember you're talking to someone who knows ZERO when you're giving me instruction. Start with 'turn n900 on' and go from there, brick by brick. Never assume I know anything.

I am so, so, so chuffed with the sheep. They started as an idea on a bus. To see them sheepily wambling around the screen was awesome.

Huge thanks to the artists, and to Hopbeat for the code (and lcuk in the background, I believe).

I look forward to polished sheep (shorn?) before long. :)

hopbeat 2010-01-02 22:10

Re: Accelerometer game proposal: sheepdog
 
Oh, Now I see the problem with accelerometer, I have been using it not laying down flat but 'standing' on the table. Controls works differently there, I will fix it :)

noobmonkey 2010-01-02 22:36

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by hopbeat (Post 450336)
Anyways, sheep is now in extras-devel. I would be grateful if someone, without any extra qt packages installed could check if it install clean (especially the issue may be with libqt4-gui).

Thanks.

Ok, i'm at the same level as Kathy so be gentle with me! :)

I installed it from extras dev :) :)
And there's no icon or anything...

So i went into x-term and typed sheep!
It runs!


Only problem i have now is.... erm, Sheep run left.... and well, thats it,
I can't exit or do anything.
Ctrl-Shift-Backspace won't get me out either :|

**some time later**(Counting sheep etc!)

Thankfully - Pressing powerbutton and end current task works fine! :)

Not sure why my sheep constantly run left - accelerometer is working fine :| - just tested bounce to make sure.

noobmonkey 2010-01-02 22:38

Re: Accelerometer game proposal: sheepdog
 
Ok, My first impressions....
Looks funky! - great idea, and love the images! :) :)

Bit confused about the green and red dots thing?
Also as mentioned before. Tilting right goes right, left goes left. Tilting down goes up? and up goes down? that is a bit confuzzling - maybe can be like that on a hard level? hehehe :)

And the obvious - needs an exit method :)

hopbeat 2010-01-02 22:52

Re: Accelerometer game proposal: sheepdog
 
@noobmonkey, you can just press ctrl-backspace to bring the dashboard and close application from there. The same goes for starting, using xterm is the right way to atm. This will be of course fixed in the more-advanced version :)
Maybe I should've stressed it: IT IS EXTRAS-DEVEL, IF YOU GO THERE YOU MAY GET HURT.

lcuk 2010-01-02 22:53

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by j.s (Post 450319)
This is the tried and true attitude that continues to be successful in keeping school children from disadvantaged backgrounds from making progress.

the console 101 class is down the hall.
this is shepherding.

noobmonkey 2010-01-02 22:59

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by hopbeat (Post 450441)
@noobmonkey, you can just press ctrl-backspace to bring the dashboard and close application from there. The same goes for starting, using xterm is the right way to atm. This will be of course fixed in the more-advanced version :)
Maybe I should've stressed it: IT IS EXTRAS-DEVEL, IF YOU GO THERE YOU MAY GET HURT.

Hehe thanks Hop :) - both work fine :) - yeah was expecting this to be different hard etc, so i apologise if i stated the obvious :)

I feel safe, Kathy did it first :) - and it worked :) - hehe (Extras devel disabled for now!)

I think you have done a great job so far :) - sheep may need to move a little quicker/smoother? - can't tell until the direction bit makes sense though, as it's hard to adjust :)

noobmonkey 2010-01-02 23:00

Re: Accelerometer game proposal: sheepdog
 
Quote:

Originally Posted by hopbeat (Post 450441)
IF YOU GO THERE YOU MAY GET HURT.

Hmmmm, that really sounds quite evil! hehehe!
If i try, baseball bats will come out of my N900 and smack me round the head until i leave?! :)


All times are GMT. The time now is 19:38.

vBulletin® Version 3.8.8