Author Topic: Tower Engineer  (Read 6360 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Tower Engineer
« on: December 03, 2012, 04:41:13 am »
The other day I started playing with love.physics and I had an idea of a game where you could build towers out of blocks in a realistic world with gravity and physics.



I called it Tower Engineer and I published the game on Github.

Use your mouse to place randomly-sized blocks on top of each other and make sure the tower doesn’t fall apart. You get a preview of the next block just like on Tetris above the preview of the block you are about to place. It features a high score system and a game over screen.

It was made with Lua and LÖVE so you need those to run the game on GNU/Linux or Mac OS X. For Windows, those are recommended, but good guy Jubjub made me some binaries.

So, my high score, as you can see in the picture is 68! Can you break it?

(I attached the Windows binaries, and there's a .love in the Github repository)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Tower Engineer
« Reply #1 on: December 03, 2012, 04:42:51 am »
:o nice :D
I'm not a nerd but I pretend:

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Tower Engineer
« Reply #2 on: December 03, 2012, 06:34:51 am »
Nice :)

That can be quite "simply" adapted for Nspire Lua 3.2 btw :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tower Engineer
« Reply #3 on: December 03, 2012, 09:11:12 am »
Nice :)

That can be quite "simply" adapted for Nspire Lua 3.2 btw :)

love.physics is very heavy stuff, I doubt it'll work smoothly on an Nspire (but I'm ready to be surprised), has it even been ported, since it's based on Box2D?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Tower Engineer
« Reply #4 on: December 03, 2012, 09:20:43 am »
Hey, remember, Builderboy made Zedd for the 83+/84+/SE calcs and it handled physics like this very quickly and smoothly. It handled conservation of energy, energy transfer, gravity, buoyancy, and rope physics. I think I think I remember seeing that Lua had some pretty good physics support as well :D

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Tower Engineer
« Reply #5 on: December 03, 2012, 02:13:26 pm »
Zedd doesn't support rotational inertia (or really, it supports objects with infinite rotational inertia!) so it would never be well-suited for this kind of a game. On the other hand, I remember seeing a native Chipmunk port on Casio calcs.
In-progress: Graviter (...)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Tower Engineer
« Reply #6 on: December 03, 2012, 03:02:04 pm »
Zedd doesn't support rotational inertia (or really, it supports objects with infinite rotational inertia!) so it would never be well-suited for this kind of a game.
Well I think she didn't mean "for the engine on calc, use Zedd (or a Nspire derivative)" but more "if Zedd runs on a z80, your game runs on an Nspire" ;)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Tower Engineer
« Reply #7 on: December 03, 2012, 03:06:25 pm »
Zedd doesn't support rotational inertia (or really, it supports objects with infinite rotational inertia!) so it would never be well-suited for this kind of a game.
Well I think she didn't mean "for the engine on calc, use Zedd (or a Nspire derivative)" but more "if Zedd runs on a z80, your game runs on an Nspire" ;)

Ahhh, gotcha ^^ But honestly, Zedd takes far fewer resources than an accurate rigid-body collision system.
In-progress: Graviter (...)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Tower Engineer
« Reply #8 on: December 03, 2012, 03:14:50 pm »
Zedd doesn't support rotational inertia (or really, it supports objects with infinite rotational inertia!) so it would never be well-suited for this kind of a game.
Well I think she didn't mean "for the engine on calc, use Zedd (or a Nspire derivative)" but more "if Zedd runs on a z80, your game runs on an Nspire" ;)

Ahhh, gotcha ^^ But honestly, Zedd takes far fewer resources than an accurate rigid-body collision system.
True, even TI managed to code a proper physics engine in the OS 3.2, so the Nspire definetely has enough power to handle it :D
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Tower Engineer
« Reply #9 on: December 03, 2012, 03:37:27 pm »
The game is cool, but the blocks sometimes fall through each other. And I would increase friction or something if that's possible, but then again you might like it more the way it is ;)

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Tower Engineer
« Reply #10 on: December 03, 2012, 05:21:44 pm »
Well I think she didn't mean "for the engine on calc, use Zedd (or a Nspire derivative)" but more "if Zedd runs on a z80, your game runs on an Nspire" ;)
Yes, that is more what I meant. I can definitely see how rotational inertia could be pretty intense, but I can think think of a way to test collision detection and energy transfer. I think actually drawing the rotated boxes would be the most cpu intensive part of it x.x