Author Topic: [PROJECT] Farmville - Calculator [DELETED]  (Read 7174 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #15 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?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #16 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #17 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?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #18 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

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #19 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #20 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!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #21 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #22 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

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #23 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #24 on: November 28, 2010, 07:48:27 pm »
I think you mean this:

Code: [Select]
000408083C6642428282818181817E00
Right?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #25 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.
« Last Edit: November 28, 2010, 07:53:48 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #26 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.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #27 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.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #28 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:



Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [PROJECT] Farmville - Calculator
« Reply #29 on: November 28, 2010, 08:05:24 pm »
Glad I could help.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ