Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: SirCmpwn on May 19, 2011, 09:42:46 am

Title: Contest Entry - Time Shift
Post by: SirCmpwn on May 19, 2011, 09:42:46 am
Hello,
For the upcoming contest, my entry will be Time Shift.  This game is based on using the manipulation of time to solve physics based puzzles.  You will also have at your disposal a weapon similar to the gravity gun to pick up and shoot things at enemies.  You'll also be able to apply localized time manipulation, for example, to age them to dust or rewind them to infancy.  Full scale abilities include fast forward, pause, slow, and rewind - all of which apply to the world around you, but not you.
I've already got an event logger set up to handle rewinding, which is implemented already.
Title: Re: Contest Entry - Time Shift
Post by: Munchor on May 19, 2011, 09:43:47 am
Hello,
For the upcoming contest, my entry will be Time Shift.  This game is based on using the manipulation of time to solve physics based puzzles.  You will also have at your disposal a weapon similar to the gravity gun to pick up and shoot things at enemies.  You'll also be able to apply localized time manipulation, for example, to age them to dust or rewind them to infancy.  Full scale abilities include fast forward, pause, slow, and rewind - all of which apply to the world around you, but not you.
I've already got an event logger set up to handle rewinding, which is implemented already.

That reminds me of a game where you can go back in time, can't recall the name.

Good luck SirCmpwn, that looks really interesting.
Title: Re: Contest Entry - Time Shift
Post by: jnesselr on May 19, 2011, 10:19:44 am
Doesn't seem like a bad idea at all.  I wish you luck with it!
Title: Re: Contest Entry - Time Shift
Post by: Aichi on May 19, 2011, 10:26:08 am
Nice idea, sounds like Braid. I look forward to it. Good luck. :)
Title: Re: Contest Entry - Time Shift
Post by: BrownyTCat on May 19, 2011, 10:27:09 am
Hopefully the logger can overcome the memory limitations.
Title: Re: Contest Entry - Time Shift
Post by: SirCmpwn on May 19, 2011, 03:23:08 pm
The logger should be fine - you'll only be able to rewind a few seconds.
Title: Re: Contest Entry - Time Shift
Post by: BrownyTCat on May 19, 2011, 03:37:23 pm
The logger should be fine - you'll only be able to rewind a few seconds.
Sometimes limitations are a good thing.
Title: Re: Contest Entry - Time Shift
Post by: aeTIos on May 19, 2011, 03:47:20 pm
Sounds awesome!
Even if I wont win this contest, it will give me a ton of awesome games!
Title: Re: Contest Entry - Time Shift
Post by: ztrumpet on May 19, 2011, 04:03:04 pm
Sounds cool!  Good luck; it sounds really hard to get working right. :)
Title: Re: Contest Entry - Time Shift
Post by: lookitsan00b on May 19, 2011, 11:22:56 pm
Is this gonna be possible?

1: kick block
2: rewind
3: kick simultaneously as first kick
4: repeat indefinitely (or at least twice)
5: block flies at extreme speeds through walls smashing everything and most likely killing the player :P
6: ???
7: PROFIT!!!

just wondering :P :P

Its awesome either way, sounds like lots of fun ;D
Title: Re: Contest Entry - Time Shift
Post by: SirCmpwn on May 20, 2011, 12:57:46 am
Right now, it logs the past 700 frames and allows you to rewind through all of them.
As for a little kick rewind thing, you'll be able to "record" time, when you would record yourself performing some action, rewind, and get help from yourself to do something.
Title: Re: Contest Entry - Time Shift
Post by: Freyaday on May 20, 2011, 01:54:52 am
700 frames...a few frames...
SirCmpwn, what the Hell is your fps?
Title: Re: Contest Entry - Time Shift
Post by: Builderboy on May 20, 2011, 02:02:32 am
If a few seconds is around 2-3, then his frame rate must be around 290 it would seem :P
Title: Re: Contest Entry - Time Shift
Post by: calcdude84se on May 20, 2011, 02:26:05 am
If a few seconds is around 2-3, then his frame rate must be around 290 it would seem :P
Assuming a more sane (but probably too high) 10 FPS, that's a full minute and 10 seconds. That's a long time, and would be pretty awesome for the game ;D
Also, I think everyone wants you to make a demo with a screenshot :P
Title: Re: Contest Entry - Time Shift
Post by: TIfanx1999 on May 20, 2011, 02:41:11 am
Wow, this sounds quite interesting. I'll be keeping an eye on this. =)
Title: Re: Contest Entry - Time Shift
Post by: SirCmpwn on May 20, 2011, 02:01:04 pm
700 frames...a few frames...
SirCmpwn, what the Hell is your fps?
What I mean is that it is currently tracking 700 frames, which is about 30 seconds of rewinding time.  I will eventually restrict the amount the player can actually rewind to a few seconds.  The FPS is just over 20.  Let me explain more about rewinding actually works:
First of all, every equation in the whole thing, instead of saying "+1", "-2", etc, instead says "+M", or "-(2*M)".  For example, the movement code says: "Y+(M*getKey(1))-(M*getKey(4))→Y" (I'll add better physics soon).  M represents the time mode.  When time progresses normally, M is 2.  When paused, M is 0.  When slowed down, M is 1, and 4 when fast forwarding.
Rewinding is handled somewhat differently.  I use the variable K to store the current keypress (getKey→K, plus some fancy stuff to handle multiple keys).  Almost every place that would normally use a getKey(*) instead checks K.  In addition to this, the value of K is logged every frame.  When in rewind mode, instead of using "getKey→K" to set this frame's K value, it instead pulls a logged keypress and uses it.  In addition to this, M is set to -2 while rewinding.  What this all adds up to is that every action is reversed, and the keys are pressed in reverse order.  This seems to me what the fastest and most efficient solution was.

I also have to keep track of some more things later on, like a list of destroyed objects and what time they were destroyed at, and perhaps some magic with physics (cause objects that stop have a velocity of 0, which is a big gaping hole for inverse equations).

Also, I have a decent demo, I just need to add more to it and pull it off my calculator for screenies.  I'll be doing a lot of cool stuff for that, don't worry.  It may be a while, since I'm quite busy with graduation and job hunting and such.
Title: Re: Contest Entry - Time Shift
Post by: aeTIos on May 20, 2011, 02:08:10 pm
Sounds cool! Also, Art_Of_Camelot: You double-posted (Probably double-clicked or so). You can't help though, cuz they are on 2 pages (And its probably a mistake cuz its exactly the same msg). (Not offensive, I just noticed it ;) )
Title: Re: Contest Entry - Time Shift
Post by: ztrumpet on May 20, 2011, 07:15:33 pm
Wow.  This sounds awesome!  I can't wait. :D
Title: Re: Contest Entry - Time Shift
Post by: TIfanx1999 on May 20, 2011, 07:33:22 pm
Sounds cool! Also, Art_Of_Camelot: You double-posted (Probably double-clicked or so). You can't help though, cuz they are on 2 pages (And its probably a mistake cuz its exactly the same msg). (Not offensive, I just noticed it ;) )
Fixed. Thanks for pointing it out. I post from my phone when I'm at work and it likes to double post sometimes. Even if I do notice I can't delete posts from work because of my phone's limited browser.

@Sir: Can't wait to see screenies of this in action. That's a lot of rewind time to keep track of! I also hope that you've had a chance to back this (and your other projects)up. Data loss is a bitch.
Title: Re: Contest Entry - Time Shift
Post by: DJ Omnimaga on June 07, 2011, 10:49:38 pm
This idea seems interesting. I hope you can finish it. Also do you think you'll be able to make screenshots soon?
Title: Re: Contest Entry - Time Shift
Post by: leafy on June 07, 2011, 11:04:28 pm
Sir told me that he can't do anything because his parents confiscated his calc; it's a pity because i really wanted to see ow this would turn out ><
Title: Re: Contest Entry - Time Shift
Post by: DJ Omnimaga on June 08, 2011, 12:45:25 am
Ouch that sucks. I wonder if he'll have time to rush in his entry during the final 2 weeks of the contest (after he moved out)... but again he might be busy at first. When I moved out, I spent an entire week cleaning and stuff. X.x
Title: Re: Contest Entry - Time Shift
Post by: TIfanx1999 on June 10, 2011, 08:47:34 am
D: Well, regardless of if it gets finished in time for the contest, it's still something I'd like to see completed. =)