Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Munchor on November 28, 2010, 01:55:48 pm

Title: [PROJECT] Farmville - Calculator [DELETED]
Post by: Munchor on November 28, 2010, 01:55:48 pm
So, I'm starting a Farmville project in Axe, which will require a lot of effort and learn a few things such as:

-AppVars;
-Line and Rect( command;
-Probably non-number-based menus.

A few things it could have but I'm not interested in making:
-Calculator<->Calculator connection;
-Having two 'accounts' in the same calculator and a Highscore table.

What I want to make:
-About 10 vegetables choice to grow;
-A timer (probably around 40,50,60 seconds for vegetables to grow);
-30 'places' where user can plant things, and a pointer to choose one;
-A title screen;
-If I can, something that makes them grow up twice as fast.


This is an Axe project that I already started, I'm drawing sprites for now :)

Tell me what you think of the idea (no, I personally don't like Farmville...).

Also, I made this thread so that I don't give up this project :D
Title: Re: [PROJECT] Farmville - Calculator
Post by: Happybobjr on November 28, 2010, 03:11:32 pm
I wouldn't mind helping with 2 player.

keep in mind how you want your 2 player to work.


Note: i make up my own terms ;).

1. Touch to touch
    each calc. Sends and receives the previous getkey
Pro.  Small and easy.
Cons.  More likely to obtain the 4 error*

2. Update- Send/Receive
    You have an option in your game that lets the user send or receive data.
Pro.  Not much really.
Cons.  Well, you probably can see them...

3. Update- full
    Update as much as you want but only after a period of time (recommended about 10 sec.)
Pro.  Great for data transfer.  Not terrible to program in.
Cons.    Might not be how you want your game to look...  all depends on your game.
            Chances are that the programmer will screw up a couple of times before succeeding so back up the program.



*4 Error*
   An error which occurs when the linking cord has some interference which makes the receiving calculator get 4
Note:  The longer the cord the more this error occurs
       -7 foot cord.
              Almost unusable. (1 out of 5-10)
       -3 foot cord.
              Tons better than the 7 foot cord.  But still shouldn't be used with touch to touch multilayer. (1 out of 50-100)
       -6 inch cord.
               Works great and  only gets the four error (once in about 1000)

Note: My calculations are done by observation and have not been tested.
Title: Re: [PROJECT] Farmville - Calculator
Post by: DJ Omnimaga on November 28, 2010, 03:14:09 pm
Seems interesting, but I wouldn't be able to help much because I didn't code in a long while and I never played Farmville. Good luck on this!
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 03:18:07 pm
I wouldn't mind helping with 2 player.

keep in mind how you want your 2 player to work.


Note: i make up my own terms ;).

1. Touch to touch
    each calc. Sends and receives the previous getkey
Pro.  Small and easy.
Cons.  More likely to obtain the 4 error*

2. Update- Send/Receive


Note.   sry going to save and continue writing.

That would be helpful, but I'm not interested in doing it. Maybe when I finish the project you can do it?

I think it is extremely hard :S

Anyways, I'm making vegetables sprites now. No grayscale, though. I'll be doing them black/white only :S
Title: Re: [PROJECT] Farmville - Calculator
Post by: DJ Omnimaga on November 28, 2010, 03:22:16 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).
Title: Re: [PROJECT] Farmville - Calculator
Post by: Happybobjr on November 28, 2010, 03:23:53 pm
I wouldn't mind helping with 2 player.

keep in mind how you want your 2 player to work.


Note: i make up my own terms ;).

1. Touch to touch
    each calc. Sends and receives the previous getkey
Pro.  Small and easy.
Cons.  More likely to obtain the 4 error*

2. Update- Send/Receive


Note.   sry going to save and continue writing.

That would be helpful, but I'm not interested in doing it. Maybe when I finish the project you can do it?

I think it is extremely hard :S

Anyways, I'm making vegetables sprites now. No grayscale, though. I'll be doing them black/white only :S

multilayer is rather easy for me.
note: i updated my post.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 03:24:54 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).

Yes, that's what I said before... Unlike the original farmville it will be a single player, which goal is to make your farm bigger, just that. So, you can now suppose it won't be very fun :S
Title: Re: [PROJECT] Farmville - Calculator
Post by: Happybobjr on November 28, 2010, 03:26:18 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).

Yes, that's what I said before... Unlike the original farmville it will be a single player, which goal is to make your farm bigger, just that. So, you can now suppose it won't be very fun :S

So no job for me? :( ;( :(
Title: Re: [PROJECT] Farmville - Calculator
Post by: DJ Omnimaga on November 28, 2010, 03:28:10 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).

Yes, that's what I said before... Unlike the original farmville it will be a single player, which goal is to make your farm bigger, just that. So, you can now suppose it won't be very fun :S
Oh ok, I didn't knew that'S what you meant. I think it could be fun in single player too. Just have some game modes or objectives in the game where you need to provide a big farm in X amount of time, make a certain amount of money in a certain amount of time, etc. Kinda like Starcraft missions, but with building a farm instead of attacking other armies.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 03:58:05 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).

Yes, that's what I said before... Unlike the original farmville it will be a single player, which goal is to make your farm bigger, just that. So, you can now suppose it won't be very fun :S
Oh ok, I didn't knew that'S what you meant. I think it could be fun in single player too. Just have some game modes or objectives in the game where you need to provide a big farm in X amount of time, make a certain amount of money in a certain amount of time, etc. Kinda like Starcraft missions, but with building a farm instead of attacking other armies.

Yes, missions, great idea! Thanks much!

Another thing, can the game be named 'Farmville'?

I'm worried with copyrights :S
Title: Re: [PROJECT] Farmville - Calculator
Post by: Happybobjr on November 28, 2010, 04:10:22 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).

Yes, that's what I said before... Unlike the original farmville it will be a single player, which goal is to make your farm bigger, just that. So, you can now suppose it won't be very fun :S
Oh ok, I didn't knew that'S what you meant. I think it could be fun in single player too. Just have some game modes or objectives in the game where you need to provide a big farm in X amount of time, make a certain amount of money in a certain amount of time, etc. Kinda like Starcraft missions, but with building a farm instead of attacking other armies.

Yes, missions, great idea! Thanks much!

Another thing, can the game be named 'Farmville'?

I'm worried with copyrights :S

If you're worried, name it Farmvill

or Farmvillage
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 05:59:43 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).

Yes, that's what I said before... Unlike the original farmville it will be a single player, which goal is to make your farm bigger, just that. So, you can now suppose it won't be very fun :S
Oh ok, I didn't knew that'S what you meant. I think it could be fun in single player too. Just have some game modes or objectives in the game where you need to provide a big farm in X amount of time, make a certain amount of money in a certain amount of time, etc. Kinda like Starcraft missions, but with building a farm instead of attacking other armies.

Yes, missions, great idea! Thanks much!

Another thing, can the game be named 'Farmville'?

I'm worried with copyrights :S

If you're worried, name it Farmvill

or Farmvillage

Farmtown?
Title: Re: [PROJECT] Farmville - Calculator
Post by: Happybobjr on November 28, 2010, 06:01:04 pm
idk...

but when you finish i shall steal your source and make it 2 player... :P
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 06:03:38 pm
Great, I think that would be cool (go for it, steal!)

I'm going to post sprites today!
Title: Re: [PROJECT] Farmville - Calculator
Post by: DJ Omnimaga on November 28, 2010, 06:12:40 pm
Does this game have to be played in multiplayer? You could maybe focus on single player for now, maybe, then 2 players later (or someone else can do it).

Yes, that's what I said before... Unlike the original farmville it will be a single player, which goal is to make your farm bigger, just that. So, you can now suppose it won't be very fun :S
Oh ok, I didn't knew that'S what you meant. I think it could be fun in single player too. Just have some game modes or objectives in the game where you need to provide a big farm in X amount of time, make a certain amount of money in a certain amount of time, etc. Kinda like Starcraft missions, but with building a farm instead of attacking other armies.

Yes, missions, great idea! Thanks much!

Another thing, can the game be named 'Farmville'?

I'm worried with copyrights :S
Generally, it is OK it seems in the calc world. Since 1998, only 4 calculator authors got cease and desist letters from companies for using copyrighted content in their games/programs. But if yoU're worried you can always change the name a bit and say it's inspired from Farmville.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 06:52:49 pm
Ok, first stuff!

At the moment, you open the screen, press 1 (which will have a Play button later) and see how the interface will start like.

4 squares and the apple, which will be the first thing you can plant.

I've also made a 16*16 sprite of a pear (.png below). I'm gonna have to split it into four and make 4 8*8 sprites, I know.

Code: [Select]
0000000000400080008003C006600420042008200820081008100810081007E0
This is the HEX code, can I split the code into 4, I mean, does that work?
Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 06:55:01 pm
In Axe? Yes, you can split the pear into four sections if you properly arrange the Hex code and the display routine.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Happybobjr on November 28, 2010, 06:56:46 pm
first  8 are. x,y
2nd 8 are x+8,y
3rd 8 are x,y+8
4th 8 are x+8,y+8

Ok, first stuff!

At the moment, you open the screen, press 1 (which will have a Play button later) and see how the interface will start like.

4 squares and the apple, which will be the first thing you can plant.

I've also made a 16*16 sprite of a pear (.png below). I'm gonna have to split it into four and make 4 8*8 sprites, I know.

Code: [Select]
0000000000400080008003C006600420042008200820081008100810081007E0
This is the HEX code, can I split the code into 4, I mean, does that work?
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 07:07:06 pm
first  8 are. x,y
2nd 8 are x+8,y
3rd 8 are x,y+8
4th 8 are x+8,y+8

0000000000400080008003C006600420042008200820081008100810081007E0

Now, I'm confused, this can't be split into 4*8 :S
Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 07:17:24 pm
Yes it can, but you have to rearrange the data. I'm working on it right now, but it takes a little bit.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 07:20:47 pm
Yes it can, but you have to rearrange the data. I'm working on it right now, but it takes a little bit.

:O If you do it for me once, I think I can understand and do it more times :) Thanky!
Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 07:27:48 pm
Welcome. Actually, you can fit the pear into two 8*8 sprites, so that's what I'll be doing.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 07:28:30 pm
Welcome. Actually, you can fit the pear into two 8*8 sprites, so that's what I'll be doing.

Yes, probably, since there is a lot of whitespace in that sprite :S
Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 07:45:19 pm
Hm, my post apparently fell through. Anyway, here's the Hex again:

[02]
[04]
[04]
[04]
[3C]
[66]
[42]
[42]

[82]
[82]
[81]
[81]
[81]
[81]
[7E]
[00]

The bottom sprite should be located at (x,y+8). What I did was place the image on a grid and code the Hex by hand.
(http://img.removedfromgame.com/imgs/pearspriteedit.png)
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 07:48:27 pm
I think you mean this:

Code: [Select]
000408083C6642428282818181817E00
Right?
Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 07:53:08 pm
I write my image hex in byte pairs during editing so that I can easily go back and change specific values. It really helps if you make a mistake in the encoding. The two representations are equivalent in Axe.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 07:54:28 pm
I write my image hex in byte pairs during editing so that I can easily go back and change specific values. It really helps if you make a mistake in the encoding.

Yes, I know, but take a look at this:

[02]
[04]
[04]
[04]
[3C]
[66]
[42]
[42]

[82]
[82]
[81]
[81]
[81]
[81]
[7E]
[00]

000408083C6642428282818181817E00

These are two different sprites, I fixed what I think was an error on top of the pear.
Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 07:56:16 pm
No, I eliminated the whitespace above the pear. The end of the stem is the top row of the bitmap.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 08:02:36 pm
No, I eliminated the whitespace above the pear. The end of the stem is the top row of the bitmap.

You don't get it yet... Anyways, I already implemented it in the sprites, the new sprite is working great:


Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 08:05:24 pm
Glad I could help.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 28, 2010, 08:05:53 pm
Glad I could help.

Thanks much, it's also very good of you that you make it by hand :)
Title: Re: [PROJECT] Farmville - Calculator
Post by: AngelFish on November 28, 2010, 08:07:25 pm
I got lots of practice in Hex coding after I accidentally erased Spritepic and I never bothered to replace it  :P
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 29, 2010, 08:51:39 am
I got lots of practice in Hex coding after I accidentally erased Spritepic and I never bothered to replace it  :P

Thanks. Now I need to get in AppVars, anyone has any magical link for me? :P Thanks
Title: Re: [PROJECT] Farmville - Calculator
Post by: DJ Omnimaga on November 29, 2010, 09:52:08 pm
In the Axe section there should be plenty of topics about Appvar management.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 30, 2010, 05:56:15 pm
In the Axe section there should be plenty of topics about Appvar management.

Thanks, TODAY during class, I made a few work on Farmville, and it was very good, you could plant and unplant things, with 4 sprites, very good ones and an average interface.

However, an infinite loop in program made it crash and I resetted the calculator, and Axe's Backup was not the most recent one and it looks like the recent files all went back?

Any way to avoid this? Remove keyboard, maybe?

I'm so pissed off!
Title: Re: [PROJECT] Farmville - Calculator
Post by: FinaleTI on November 30, 2010, 06:28:49 pm
In the Axe section there should be plenty of topics about Appvar management.

Thanks, TODAY during class, I made a few work on Farmville, and it was very good, you could plant and unplant things, with 4 sprites, very good ones and an average interface.

However, an infinite loop in program made it crash and I resetted the calculator, and Axe's Backup was not the most recent one and it looks like the recent files all went back?

Any way to avoid this? Remove keyboard, maybe?

I'm so pissed off!
Were the programs that you lost ever archived since your last GarbageCollect?
If so, try this (http://www.ticalc.org/archives/files/fileinfo/411/41128.html).
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 30, 2010, 06:30:16 pm
In the Axe section there should be plenty of topics about Appvar management.

Thanks, TODAY during class, I made a few work on Farmville, and it was very good, you could plant and unplant things, with 4 sprites, very good ones and an average interface.

However, an infinite loop in program made it crash and I resetted the calculator, and Axe's Backup was not the most recent one and it looks like the recent files all went back?

Any way to avoid this? Remove keyboard, maybe?

I'm so pissed off!
Were the programs that you lost ever archived since your last GarbageCollect?
If so, try this (http://www.ticalc.org/archives/files/fileinfo/411/41128.html).

Thanks, I'm now downloading, hope it works, but doubt it works.
Title: Re: [PROJECT] Farmville - Calculator
Post by: FinaleTI on November 30, 2010, 06:31:38 pm
It's worth a shot, as it's saved me a few times.
Title: Re: [PROJECT] Farmville - Calculator
Post by: Munchor on November 30, 2010, 06:35:43 pm
It's worth a shot, as it's saved me a few times.

I tried it and it found FARMSRC.8xp, but the current one, not the disappeared one. Thanks, though
Title: Re: [PROJECT] Farmville - Calculator [DELETED]
Post by: DJ Omnimaga on December 01, 2010, 04:08:16 am
I'm sorry to hear :(