Author Topic: The World's Hardest Game  (Read 38564 times)

0 Members and 1 Guest are viewing this topic.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: The World's Hardest Game
« Reply #15 on: October 21, 2010, 04:05:53 am »
Well I'm finding it pretty hard to make sense of the level loading and actual game code, so I haven't gotten around to optimizing that yet. The menu, however, I could understand and optimize. And although I don't exactly understand all the level loading code, I optimized everything before the line If A≠C or B, as well as doing something like you suggested to get rid of all the different level strings and just have two strings (one for appvars, one for programs) in which the level number changes. I also made a few other optimizations throughout the program in random places, but for the most part, everything after the If A≠C or B line is unoptimized.

As far as I know, everything still functions correctly. Please tell me if this is not the case! If anything doesn't work correctly any more, it would probably be the level loading code, as I couldn't actually test it because I don't have a level with which to test it!

Total savings so far: 865 bytes (89% original size).


Maybe I'll try optimizing the level editor next. If I can somehow manage to shave off like 2000 bytes it will fit in a program.
« Last Edit: October 21, 2010, 04:07:07 am by Runer112 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: The World's Hardest Game
« Reply #16 on: October 21, 2010, 04:09:40 am »
Wow if everything works that's a quite big optimization o.o.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: The World's Hardest Game
« Reply #17 on: October 21, 2010, 12:51:40 pm »
Nice!  I love this game!  Beat it twice with 0 deaths.  ;)
I was thinking about porting this over the summer as well after Bomberman died, but the I lost motivation.  :P

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: The World's Hardest Game
« Reply #18 on: October 21, 2010, 01:05:17 pm »
Aaaaahhh! Yay! I wish I'd thought of this.

Best of luck!
See you, space cowboy...

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: The World's Hardest Game
« Reply #19 on: October 21, 2010, 06:02:13 pm »
Nice!  I really liked this game when I found it over two years ago, and now it's for calcs.  Wonderful job! ;D

Can all thirty levels be included inside the game? :)
« Last Edit: October 21, 2010, 06:04:20 pm by ztrumpet »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: The World's Hardest Game
« Reply #20 on: October 21, 2010, 07:04:32 pm »
Wow! It's great all the attention this is getting!

@ runer It doesn't seem to detect the appvar...
Hey, the lower size finally works :)
I had to modify the source a bit, though. 
before, a string was defined as vWHGLVL1, with a lowercase v.
I changed it to the 2nd+8 v.
Importing 8xp→appvar(whatever that is) doesn't work, however :(

What I hope to do, now that opimized jumbers are working (thanks runer ;D) is to implement letters.  WHGLVLA, WHGLVLB and so on.  Sort of like TinycarZ.
26 letters + numbers 1-9 = 35 potential levels.
It can't quite be the complexity of the flash game, however, because some enemy movements I have no idea how to do (go in circles for example) or there's too much to cram into the calc's screen.

As a side note, the level I posted earlier was actually one of the easier ones.  There are some harder ones attached.
Again, they have to be imported.
By the way, you can easily make your own and see if it works...

edit:
another bug--Teacher key doesn't work correctly in MirageOS. idk why
« Last Edit: October 21, 2010, 07:05:31 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: The World's Hardest Game
« Reply #21 on: October 21, 2010, 08:41:07 pm »
This looks great!  I never really played this game (It was too hard :P).  I wonder which is harder: The Impossible Game or The World's Hardest Game?

* MRide lost the game

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: The World's Hardest Game
« Reply #22 on: October 21, 2010, 11:30:48 pm »
I think MirageOs tends to conflict with some Axe programs.

ANyway great progress! I'll try some levels soon :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: The World's Hardest Game
« Reply #23 on: October 22, 2010, 05:43:40 am »
id better try this soon, i love the original pc version.
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: The World's Hardest Game
« Reply #24 on: October 22, 2010, 02:19:31 pm »
This looks great!  I never really played this game (It was too hard :P).  I wonder which is harder: The Impossible Game or The World's Hardest Game?

* MRide lost the game

Definitely the Game. I can never seem to win...
* Deep Thought loses again

Looks great, though! I loved the Flash game (though it was pretty hard for me :P). I'll have to try this soon.




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: The World's Hardest Game
« Reply #25 on: October 22, 2010, 05:10:30 pm »
I don't know how you do your enemy movements, but going in circles can be done with a look up table. The size of your circle will will affect how many entries you need to make it smooth, but here's how you would do it.

Make a table of the cosine's and sine's of the angles from 0 to 330 counting by 30's multiplied by the radius. If your circle is massive, you might have to go by 15's. Then, just treat those new numbers as the x and y velocities and just go to the next one every frame. And behold, a circle!

Here's a simple basic prog of what I mean:
:Radius -> R
:For(A,0,330,30
:Disp RCos(A),RSin(A
:End

Since those will be decimals, treat them as two by numbers where the upper byte is the whole part and the lower byte is the decimal times 256.
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 squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: The World's Hardest Game
« Reply #26 on: October 22, 2010, 06:20:07 pm »
This reminds me of Aspirin, but more complex ;D

[offtopic] I like your new avatar, penguin ;) Can't wait for Wednesday ;D[/offtopic]
« Last Edit: October 22, 2010, 06:22:24 pm by squidgetx »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: The World's Hardest Game
« Reply #27 on: October 22, 2010, 06:34:53 pm »
@thepenguin77 thanks for the tip, I'll look into that.  It looks fairly complicated and will probably take a while to figure out, but I should get it eventually :P

Actually, I played Aspirin before I played TWHG, so I guess that sparked the idea, along with the way that for some reason, last school year, TWHG was the game to play.  You'd walk into the school library and about 15/20 of the computers would have people playing the game at once.
Aspirin's fun too, though ;D

This looks great!  I never really played this game (It was too hard :P).  I wonder which is harder: The Impossible Game or The World's Hardest Game?

* MRide lost the game
I don't quite know which would be harder, but with the level editor you can just edit/make an easy level.

Attached another level.  Easy this time.
Vy'o'us pleorsdti thl'e gjaemue

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: The World's Hardest Game
« Reply #28 on: October 22, 2010, 06:50:10 pm »
i don't understand the lvls.

Are they just blank.   Or is my calc refusing them?
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 Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: The World's Hardest Game
« Reply #29 on: October 22, 2010, 06:53:48 pm »
You need to import them.  At the level select menu, press MATH.  The program take care of unarchiving and such for you, the 8xp's just need to be there.  The program converts them to 8xv's to the program menu isn't cluttered too much.  Then you can delete the program.

You can also do the reverse, 8xv → 8xp.
Vy'o'us pleorsdti thl'e gjaemue