Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Raylin on October 29, 2010, 01:35:18 am

Title: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 01:35:18 am
Discuss the game here.

The digital documentation is linked here. (http://ourl.ca/7663)
Title: Re: [All the World's a Battlefield] Discussion
Post by: DJ Omnimaga on October 29, 2010, 03:14:31 am
/me lost the game and wonder what is this project.
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 10:55:41 am
Linked this topic with digital documentation.
Title: Re: [All the World's a Battlefield] Discussion
Post by: MRide on October 29, 2010, 12:44:49 pm
By "bat," do you mean like baseball, or vampire?
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 02:38:03 pm
Baseball bat.
Title: Re: [All the World's a Battlefield] Discussion
Post by: MRide on October 29, 2010, 02:45:23 pm
Ah, that's what I thought.  Sounds cool!
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 02:46:10 pm
It will get better as I add more to the digital documentation.
Title: Re: [All the World's a Battlefield] Discussion
Post by: Munchor on October 29, 2010, 02:47:56 pm
Hah, looks like a very good thriller, hope to play it someday haha :)
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 02:56:38 pm
You'll play it in two weeks. This is my contest entry for ASHBAD_ALVIN's Team Battles.
Title: Re: [All the World's a Battlefield] Discussion
Post by: MRide on October 29, 2010, 02:59:15 pm
Who are you working with?
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 03:01:41 pm
No one. I am taking on the two alone.
Title: Re: [All the World's a Battlefield] Discussion
Post by: MRide on October 29, 2010, 03:03:11 pm
Ah, ok.  Good luck!
Title: Re: [All the World's a Battlefield] Discussion
Post by: AngelFish on October 29, 2010, 03:19:00 pm
You'll play it in two weeks. This is my contest entry for ASHBAD_ALVIN's Team Battles.

Would it be wrong to say that I'm looking forward to playing it?
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 03:22:49 pm
Absolutely not.
Title: Re: [All the World's a Battlefield] Discussion
Post by: MRide on October 29, 2010, 05:54:05 pm
Well, I look forward to playing it.

EDIT: For some reason, I can't find my post count...
Title: Re: [All the World's a Battlefield] Discussion
Post by: ztrumpet on October 29, 2010, 06:11:33 pm
lol MRide! :P

Sounds neat!  Good luck Raylin. :)
Title: Re: [All the World's a Battlefield] Discussion
Post by: DJ Omnimaga on October 29, 2010, 07:08:15 pm
Well, I look forward to playing it.

EDIT: For some reason, I can't find my post count...
Same here ???


On the topic, I can't wait in 2 weeks :)

Good luck!
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 29, 2010, 07:27:50 pm
Thank you, gentlemen.
Title: Re: [All the World's a Battlefield] Discussion
Post by: AngelFish on October 29, 2010, 09:09:27 pm
Good luck. I hope you really go all out with it :)
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 30, 2010, 09:45:36 pm
Thank you again, sir. :P I plan on making it truly epic.
Title: Re: [All the World's a Battlefield] Discussion
Post by: DJ Omnimaga on October 30, 2010, 11:54:27 pm
Also don't forget about this (http://ourl.ca/6863) while making this project, knowing what happened to your Doors CS previous contest entry. X.x
Title: Re: [All the World's a Battlefield] Discussion
Post by: Raylin on October 31, 2010, 11:52:20 am
Haha. Funny, DJ. I'mma rip out a battery! :D
Anyway, planning is almost finished. Going to start coding soon.

EDIT: I need the easiest way to replace a character in a string.
Right now, my code looks like this:

Code: [Select]
:"<theta><space>→Str1
:sub(Str2,1,3<length of map>)+sub(Str1,1,1)+sub(Str2,3H+2,length(Str2-sub(Str2,1,3H

That looks nasty. Is there an easier way?
Title: Re: [All the World's a Battlefield] Discussion
Post by: DJ Omnimaga on November 01, 2010, 12:26:56 am
Woops, I completly forgot about this topic earlier. The bricked calc incident and something else sidetracked me. I'll try to see what I did to replace chars in strings before. Zelda DLQ uses such thing, but I am not confident about if it's better than your way or not. Hold on...

EDIT: Ok, well, not sure if what I got is any better really, but this is what I would do:

Assuming Str1="*", Str2="ABCDEFGHIJKLMNOP" and that I want to change char #5 in Str2 (5 is stored into L), I would do:

Code: [Select]
sub(Str2,1,L-1)+Str1+sub(Str2,L+1,lenght(Str2)-L->Str2
This appears to run at about 10 times a second on a regular 83+. Not sure if it is small and fast enough for your needs. Hopefully this might help, though.

In this case, the result is "ABCD*FGHIJKLMNOP".

(Darn I haven't coded TI-BASIC in so long...)
Title: Re: [All the World's a Battlefield] Discussion
Post by: AngelFish on November 01, 2010, 01:12:32 am
DJ, thank you for that. You just resolved a major slowdown in our game too  ;D

I was previously splitting the string in half, editing the one symbol left out, and then recombining the string. Took forever because there's a lot of data to move around.

EDIT: Wait, I just realized that's exactly what that code does. :P

Thanks anyway though. It's still more efficient than what I was doing.
Title: Re: [All the World's a Battlefield] Discussion
Post by: DJ Omnimaga on November 01, 2010, 01:43:21 am
Lol no problem. :D

I don't remember if this is what I did in DLQ but that game was made over 6 years ago so it must be less optimized than most stuff people are doing today.
Title: Re: [All the World's a Battlefield] Discussion
Post by: DJ Omnimaga on November 02, 2010, 04:47:45 pm
/me wonders if there will be a screenshot soon...
Title: Re: [All the World's a Battlefield] Discussion
Post by: DJ Omnimaga on November 07, 2010, 03:53:17 am
HOLY MECRIMINYJESUS.

Movement engine is horribly slow. It takes a full second to move now.

On the other hand, you can modify all of the graphics in the game, you can make any size map you want now (including obstacles), your player can climb stuff now, there's enemies, and YOU CAN TAKE COVER BEHIND BUILDINGS AND WALLS.
Sorry to hear about the speed. X.x I hope you can solve the issue before the deadline. Those new features seems really cool, though, especially the ability to take cover behind buildings/walls.