451
Casio PRIZM / Re: [Prizm 2011 Contest Entry] PrizmCity
« on: September 02, 2011, 10:35:47 pm »
Perhaps I should mention that I've been wanting a civilization type program for about the past three days. What a coincidence...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 451
Casio PRIZM / Re: [Prizm 2011 Contest Entry] PrizmCity« on: September 02, 2011, 10:35:47 pm »
Perhaps I should mention that I've been wanting a civilization type program for about the past three days. What a coincidence...
452
The Axe Parser Project / Re: Features Wishlist« on: September 02, 2011, 05:52:23 pm »
A standard library of sorts would be nice
![]() Similarly: Macro/Axe library support would be nice, presumably something like #ifdef or #if with a matching #endif to selectively include code segments. 453
The Axe Parser Project / Re: Features Wishlist« on: September 02, 2011, 05:50:21 pm »
Frankly, I've found a get-sprite routine wanting multiple times. I'd vote for removing rotCC() if you really think the number of commands should be minimized.
454
Other Calculators / Re: Why Do You Program on Your Calculator?« on: September 02, 2011, 05:01:27 pm »
I still use my TI because it's easier to write a simulation program very quickly for a calculator in Axe or BASIC than a "real" language.
I use my Prizm because of 133. 'Nuff said ![]() 455
Math and Science / Re: Dividing a map into sections - Help!« on: September 01, 2011, 11:17:56 pm »
That's what I described
![]() When you're generating the map, you generate a terrain tilemap underneath. Those tiles with two or more open faces are the nodes in the tree that can be traversed using whatever pathfinding algorithm you have. 456
Miscellaneous / Re: The Compiler is right« on: September 01, 2011, 10:51:14 pm »
"Compilers are mostly right" just didn't have the same ring to it
![]() 457
Miscellaneous / The Compiler is right« on: September 01, 2011, 10:35:13 pm »
One thing I've noticed from a lot of people is the assumption that the tools they use are at fault for the errors they observe. While this can indeed be the case (one only has to look at the bugs list of any major project for evidence), the first, second, and third rules of debugging are to assume that the tools are perfect until all other possibilities are disproven as the source(s) of the error(s). One example relevant to the TI is that of OS v. 2.5x, an OS often cited as the cause of many inexplicable errors. However, it is well known that the vast majority of errors are user errors, not code errors, especially in any prominent piece of code. As comfortable as it is to blame the tools, those same tools are debugged very thoroughly for the simple reason that bugs are often far more important in a tool than in a random program. In general, important programs such as Operating Systems, Compilers and Interpreters1 are among the least buggy programs available by sheer necessity. Before claiming an error is caused by any of the above, please stop and consider whether the errors are valid bugs. Spend time looking at the documentation. Check previous bug reports and your own code carefully. Major bugs in tools are extremely rare, highly publicized, and almost always well documented.
1: There is almost never a good reason to assume a hardware bug in commercial hardware. Don't do it without extremely strong evidence to back that claim (such as integer addition of 1 and 1 producing 3, in which case you should still be checking your display and register loading routines first). 458
Casio PRIZM / Re: [Prizm 2011 Contest Entry] PrizmCity« on: September 01, 2011, 10:20:45 pm »
Holy...
Those graphics are amazing ![]() 459
General Calculator Help / Re: Why mah calc won't turn off?« on: September 01, 2011, 09:05:55 pm »Sounds more like a TI bug to me Not everything is a TI bug, shockingly ![]() 460
News / Re: Omnimaga turns 10 years old« on: September 01, 2011, 04:39:32 pm »Happy BirthdayI want some cake too The Cake is a Lie. Happy Birthday 461
Math and Science / Re: Dividing a map into sections - Help!« on: September 01, 2011, 04:36:20 pm »
Actually, are you trying to generate maps or implement a pathfinding algorithm? Those tend to be different domains. However, if I understand your post, I think I may have a solution.
First of all, I notice that your example map fits very well onto a hexagonal grid. That's quite nice, because it allows you to use a "tile" system very effectively. Basically, after or while generating the map, place all the areas of a "unit" size into a grid of interlocking hexagons. For each face of a hexagon that has an opening through which the character can travel, reset a flag. For each face where there isn't an opening, set the flag. After doing this, notice that all valid paths are characterized by a collection of open faces. In other words, every hexagon along a reasonable valid path (except for the tiles holding the endpoints) contains at least two open faces: one for the character to enter through and one for them to exit through. Find the set of those tiles and there are your nodes. That allows you to use a standard pathfinding algorithm for the low level path and use cubic interpolation of that path if you want to generate a smooth path for the character. 462
Other Calculators / Re: Which calculator is recommended?« on: September 01, 2011, 12:26:17 am »
The 84+ series is an excellent calc and I've found it adequate for a lot of engineering problems. The 89Ti is even better both math-wise and programmability-wise. As far as non-TI calculators, the Prizm is almost identical to the 84+ series except for a faster processor and a color screen. The HP 50 is also supposedly one of the best engineering calcs out there, so you might want to consider that as well.
However, I've personally found calculators to be most useful in engineering for quick and dirty "back of the envelope" calculations. If you plan on going into engineering, I would *highly* recommend becoming familiar with a mathematical package such as Mathematica (provided you can get access to it), Maxima, or Octave/Matlab in addition to a new calculator. There are some problems calculators just don't have the computational power to solve [quickly]. 463
Math and Science / Re: Dividing a map into sections - Help!« on: August 31, 2011, 09:36:20 pm »
I remember coming across an interesting pathfinding algorithm in some papers a few months back. Basically...
EDIT: found it "Reactive Path-Planning: A directional Diffusion Algorithm on Multi-layered Cellular Automata" by F. M. Marchese, written sometime around 2000. Sorry I can't explain the algorithm, but I have to go. Hope you can find it. 464
Art / Re: a very unordinary picture« on: August 31, 2011, 09:24:43 pm »
I'm going to recommend you use a hex editor and/or 7zip/P12 running on a flash driver to compress it (run from command line). If you use a hex editor, check some of these to make sure it's not corrupted. The extension doesn't necessarily give an accurate estimate of the filetype.
465
Walnut / Re: Walnut Shell« on: August 31, 2011, 03:43:40 pm »
As much as I prefer physical memory, most programmers will be using C, which is much better adapted to virtual memory than physical memory.
|
|