Author Topic: ThePenguin77's Game of Life  (Read 8960 times)

0 Members and 1 Guest are viewing this topic.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: ThePenguin77's Game of Life
« Reply #15 on: May 07, 2011, 09:32:56 am »
I know, I forgot to add 'except the Prizm'
I'm not a nerd but I pretend:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #16 on: May 08, 2011, 09:02:53 am »
That is pretty darn fast. Great work ^^

That was my primary goal in writing it. I wanted this thing to go as fast as possible. Although, I did get it down to about 4 fps with a space filler that filled the entire 160x160 with zebra stripes. It collapsed in on itself and the entire board was in chaos running at 4 fps.

Is that at 15MHz? Also, I never understood the game of life :(

Nice job, though, using Mimas to code games looks cool, I only use it to learn.

Yes, it's at 15MHz. There's no reason to use 6MHz because of my huge RAM requirements. I just added in a save state today, so now I'm up to 19KB.

I prefer not to use Mimas because I feel the small screen will end up leading me to make small games, but if you don't have time at a computer, it works great. I put out like 3kb of code in 4 hrs on chess, whereas this thing is only up to 1kb after 3 weeks.

Yeah, ASM Code is indeed long but Mimas has a label assistance.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #17 on: May 10, 2011, 10:10:09 pm »
Update!!

Changes: (I change this every day, so I hope I get them all)
  • [Window] saves and [Zoom] recalls, when you quit it is in appvar LifeSave
  • Added visible playing field boundaries
  • [Mode] toggles FPS limiting (you can get it up to about 30 fps with small shapes)
  • [ 0 ] Recall Pic0
  • About 5% increase in overall speed


Have fun.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #18 on: May 10, 2011, 10:22:17 pm »
Wow!  This is awesome! :D
I like to play THE GAME (of life, of course).
« Last Edit: May 10, 2011, 10:37:33 pm by ralphdspam »
ld a, 0
ld a, a

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: ThePenguin77's Game of Life
« Reply #19 on: May 10, 2011, 11:14:08 pm »
Looking at your code on the previous page, might it be a good idea to replace
Code: [Select]
cp 2
jp c,activeRet
cp 4
jr nc,activeRet
with
Code: [Select]
sub 2
cp 2
jp nc,activeRet
?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
I Lost The(Penguin77) Game of Life
« Reply #20 on: May 10, 2011, 11:15:49 pm »
This looks great ThePenguin! I like how it's possible to scroll around

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #21 on: May 11, 2011, 03:55:59 am »
Love the speed! :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #22 on: May 11, 2011, 11:09:27 pm »
Ok, it's finally time to post the source. It's been converted from Mimas, so I'm not sure how easy it is to compile, but it's there.

This looks great ThePenguin! I like how it's possible to scroll around
Love the speed! :).

Thanks, those were actually my two goals in making this: biggest possible playing field and raw speed.


Calc84, I've actually made the code more optimized than that, but it was in a place you couldn't see. To get a look at how I handle it now, place a breakpoint at $8100 and run it :D

Edit:
    Ok, I just did that, I didn't realize that BIT change s.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ThePenguin77's Game of Life
« Reply #23 on: May 11, 2011, 11:12:55 pm »
Nice, is it the same version as in the first post? If not, are you planning to post a new 8xp soon?
The Prizm is coming up, but there is hardly any casio fx-xxxx development.
Hey, the Prizm is technically an fx- calc too :P
It's named fx-CG10 or fx-CG20 depending on your region.
Indeed, also I think fx-9860G is still not dead. It's just not super active and most projects are never completed. :P
« Last Edit: May 11, 2011, 11:14:19 pm by DJ_O »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #24 on: May 11, 2011, 11:14:26 pm »
Well, the source and the latest version I released are exactly the same. And luckily, the little glitch I talked about doesn't really affect the program at all, so I won't put up another version until I make some more changes.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ThePenguin77's Game of Life
« Reply #25 on: May 11, 2011, 11:16:08 pm »
Ah ok cool. Good luck on fixing the glitch. :D

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #26 on: May 11, 2011, 11:24:20 pm »
Nice, is it the same version as in the first post? If not, are you planning to post a new 8xp soon?
The Prizm is coming up, but there is hardly any casio fx-xxxx development.
Hey, the Prizm is technically an fx- calc too :P
It's named fx-CG10 or fx-CG20 depending on your region.
Indeed, also I think fx-9860G is still not dead. It's just not super active and most projects are never completed. :P
I see a fx-9860g emulator on the horizon. It would very similarly to wine in that native cpu instructions would run as normal, but new code would be used to manage the hardware. Or you could say similar to TI-Boy too.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ThePenguin77's Game of Life
« Reply #27 on: May 11, 2011, 11:27:04 pm »
It would be nice indeed. If I remember the calc is pretty much the same hardware aside from the screen used and the flash memory size, right?

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: ThePenguin77's Game of Life
« Reply #28 on: May 11, 2011, 11:37:34 pm »
It would be nice indeed. If I remember the calc is pretty much the same hardware aside from the screen used and the flash memory size, right?
Right and this would be easier than TI-Boy because the fx-9860g does't have any opcodes the Prizm doesn't support. Plus the screen is smaller so it is easier to draw.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Online DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ThePenguin77's Game of Life
« Reply #29 on: May 11, 2011, 11:40:03 pm »
Ah ok. Would it still need a lot of extra cpu ressources, though? I'M wondering because Emu8x ran like 2-3x slower than the real calc, even if you emulated a TI-83 on a 83+SE