Author Topic: Chambers [Completed]  (Read 19569 times)

0 Members and 1 Guest are viewing this topic.

Offline Phero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +26/-1
    • View Profile
    • http://ryanb.cc
Re: Chambers
« Reply #15 on: March 22, 2012, 10:49:15 am »
It could be chrome but you might want to fix the gray.

The issue is twofold. Firstly, Wabbit definitely renders it all kind of weird and distorted like that. I'll probably try taking Xeda's advice ;) and try playing with the settings some for screencaptures.

The other issue is that there is a slight flicker (not nearly as bad as Wabbit makes it) during movement. The reason for this is that there is such a large number of subroutines that run (drawing, movement, collision detection, attack versus item nabbing, monster movement calculations, monster attack vs hitting a wall, etc.) after each keypress that there is maybe a .25 second delay before it refreshes again. I've tried playing around and adding some carefully placed screen refreshes into the subroutines, but they incrementally augment the response latency. Similar to before, I have (currently) opted to have responsiveness of the software be the main priority.

I should also add that the screenshots are on an 83+ SE, which is what I'm also coding/compiling it on. I intend to allow the software to run on the + and + SE models, but on the 83+ it already is, of course, a bit slower in terms of response latency. The more screen refreshes I add, it gets far more noticeably slower on the 83+.

@Phero: As ever, nice job :D

Thanks! At this rate, I might end up having to dedicate the game to you for all of the moral support  ;D
In all seriousness, I appreciate all of the support, Xeda. It's nice to hear positive feedback when working on a project, especially since this is the first time in a long time that I've done so. Thanks!

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: Chambers
« Reply #16 on: March 22, 2012, 02:16:54 pm »
:) I am not an experienced Axe coder, but I do have a bit of experience with game methods. I am wondering if there is any way that it could be sped up just by changing the method to another (as opposed to having Runer come in to mangle the code up a bit ^_^ ). So, I am wondering, how are you doing collision detection? A few weeks ago, I had an epiphany on how to do a really fast and simple collision detection. It is by no means obscure and is an idea that has been around, but because I figured it out myself, I like to promote it XD

(Pretty much, you draw to another buffer that I call the collision buffer. You draw any area that is occupied by another piece, so all you have to do is pixel test that buffer, once. That is super fast in Axe.)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Chambers
« Reply #17 on: March 22, 2012, 02:23:47 pm »
apparently that is what I'm doing for my snake game.
I'm not a nerd but I pretend:

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: Chambers
« Reply #18 on: March 22, 2012, 02:39:21 pm »
Pointer-based detection would probably result in much smaller code than having an entirely separate buffer just for collision points.
In-progress: Graviter (...)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Chambers
« Reply #19 on: March 22, 2012, 04:54:12 pm »
Hm, could you give me an example, i dont really get what ya mean x.x

edit: deleted accidental double post ;D
« Last Edit: March 22, 2012, 04:55:48 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Phero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +26/-1
    • View Profile
    • http://ryanb.cc
Re: Chambers
« Reply #20 on: March 22, 2012, 05:25:48 pm »
I suppose that I should post before the discussion gets too far away (not that I mind :D )
I'm not doing physics-based collision detection for this, as the game is essentially a tileset. Basically, once you press a key to move in a direction, the process goes as follows:

if nothing is there, move there
if it's a door, new room (this is ostensibly the fastest and least-noticeable laggy part)
if it's a wall, do that stuff
if it's an object, see if you can pick it up, then pick it up, etc.
if it's a monster, determine attack power, attack, determine if it is dead, do things involving experience points, level-up, clear the space, etc.

then the mosters move
determine how what direction to try to move towards you
similar processes all happen here as when you move (e.g., check if an object is in that space, do attack subroutines, etc.)

Basically, all of these things happen (and some more stuff that I probably spaced on just now) between each screen refresh when you press a key. Like I said, I've tried sprinkling screen refreshes into this process, but it makes the time between when you press a key and when it will become responsive to input again extremely lagged after they start adding up.

When I get to a project that involves active movement, this will obviously be a much larger problem. For now, at least, I'm okay with it. I might get more bothered by it when the game itself is completed, but that's still a ways away. I very much want to add an into screen/menu/something as well, but the amount of space this game is taking up continues to grow and might preclude anything fancy on that end.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Chambers
« Reply #21 on: March 22, 2012, 05:27:19 pm »
Omg, also dont forget axe cannot write apps with a size of >1 page.
Can't wait to play this :D :D :D
I'm not a nerd but I pretend:

Offline 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: Chambers
« Reply #22 on: March 22, 2012, 05:31:22 pm »
It's nice to see you back into calc programming (in which years did you originally start and stop actually?). Also I like Rogue-like games and I wish there was one that got finished for z80 calcs. This one looks very nice so far. :)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Chambers
« Reply #23 on: March 22, 2012, 05:33:34 pm »
So can anyone elaborate on what a rogue like game is?
***feels dumb now***
I'm not a nerd but I pretend:

Offline Phero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +26/-1
    • View Profile
    • http://ryanb.cc
Re: Chambers
« Reply #24 on: March 22, 2012, 09:00:53 pm »
It's nice to see you back into calc programming (in which years did you originally start and stop actually?).

It feels good to be doing it again. I think that I probably started programming on calcs (I had been programming in VB and C++ mostly before that point) in maybe 1996 on a TI-85, then in 1999 I got a TI-83 and started playing around in ASM probably in 2000 or so. I pretty much stopped programming everything altogether around 2003 or so, then picked up programming for work and personal projects just a couple of years ago again. There's only one thing that I've found on the interwebs still that I programmed back in the day called "Falling Down Drunk":

http://ti83.free.fr/prgm/asm/autres/e_autres.html
http://www.calc.org/search.php?calc=ti83&ad=desc&s=89&p=20

Feel free to download it and laugh, laugh the night away. :D

I think that I was a freshman in highschool at the time that I programmed that. It's absolutely stupid, but it goes to show just what kind of things are funny to 14-year-olds (I think that I coded it back in 99 then released it in 2000 online when I got an internet connection back). It was also the very first ASM thing that I ever coded, so why it has outlived any of the other things that I ever released is completely beyond me. I remember that someone asked me to make it for the purpose of two people loading it on their calcs, then you would mash the button as fast as you could and basically "race" the other person. I'm actually borderline ashamed of that program looking back on it now.

So, that was a long response to a very short question :)

Offline 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: Chambers
« Reply #25 on: March 22, 2012, 09:05:42 pm »
Aaah I see, so you're from the 2nd generation of coders kinda (1st being prior ticalc.org, 2nd when ticalc started, 3rd after TI-Files closing and so on). And wow I remember going on that french site a lot. It had quite the run and had plenty of cool stuff. I personally started around 2001 then stopped in 2010, but I had a few periods of hiatus around 2005-07.

@AeTIos Rogue is some sort of adventure game like Zelda, but very old skool. The original version was ASCII art on the computer. I think there was also Nethack, but it might be the same thing.

Offline Phero

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +26/-1
    • View Profile
    • http://ryanb.cc
Re: Chambers
« Reply #26 on: March 22, 2012, 09:07:45 pm »
So can anyone elaborate on what a rogue like game is?
***feels dumb now***

Don't feel dumb! Roguelikes are a (somewhat) obscure subgenre of RPG. The keystone of these games is the randomness. Levels are randomly generated, monsters are randomly generated and placed, as are items. A lot of times, even the items do different things on each playthrough (e.g., a blue potion this time might be a heal potion, next time it might be a fire potion, etc.). Another main thing to roguelikes is permadeath. Basically, each play is completely unique and you can't backtrack. If you have a bad playthrough this time, it's okay, because you just start fresh again. Sometimes the randomness comes together in your favor, most of the time it doesn't ;)

Another key to roguelikes is that they are typically very strategic. You have to sometimes really stop and think about whether you should use an item, what your chances are of attacking a monster or trying to plan a route of escape, etc. They're a lot of fun, although some of the greatest ones have a really steep learning curve.

I think that some of the most popular ones of alltime are DoomRL, Nethack, and Angband. I'm partial to Nethack myself, but there are really a lot of incredibly innovative and awesome ones out there.

Also I like Rogue-like games and I wish there was one that got finished for z80 calcs. This one looks very nice so far. :)

Thanks! Roguelikes are definitely my favorite genre, and I've been playing a ton of Cataclysm and Brogue lately, both of which are really interesting and progressive games in their own way. I've hoped for years that someone would do a 7DRL competition for the z80 calcs. Unfortunately, that kind of seems unlikely, as anyone who creates one would have to meet multiple criteria (enjoy roguelikes, know how to code, know how to code calcs, have the time to do it, etc.).

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: Chambers
« Reply #27 on: March 24, 2012, 07:04:04 am »
Looks pretty cool! Well done Phero. :)


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

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: Chambers
« Reply #28 on: March 24, 2012, 10:02:12 am »
Wow, that seems really cool O.O That is the type of game I would like because it wouldn't be the same each time I played through o.o

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Chambers
« Reply #29 on: March 26, 2012, 04:53:54 am »
@AeTIos ...
*boom*
He wrote my name with a capital x.x
Also phero, I'm really looking forward to play this ;D
I'm not a nerd but I pretend: