You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[ti-84+ce]Age of CEmpires I

b/Calculator Development Started by PT_, January 03, 2017, 08:22:00 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

u/PT_ June 08, 2017, 05:32:51 AM
I wish it was CEmu, but I have to fix it myself  (-_(//));
u/p2 June 08, 2017, 08:26:37 AM
the speed is really impressive, I'm sure you can fix it! :)
Great work so far  :thumbsup:
u/PT_ June 08, 2017, 10:53:14 AM
Thanks :)
This screenshots is more than 60 FPS, but that will drop rather fast I guess :P
u/p2 June 08, 2017, 10:54:19 AM
true, drops during development process have to b e expected, but that'S a solid framerate you're starting with, so even if it'D drop by 50% it'd still be playable :)
u/PT_ June 08, 2017, 10:56:10 AM
I think I would end with like 15 FPS. Doing the events of all the puppets takes the most time, I think. Hope to make good progress these weeks :D
u/PT_ June 08, 2017, 04:43:09 PM
This looks even better :P

u/Unicorn June 08, 2017, 07:47:21 PM
Are those.. random rocks? and the blue thing is as building, yes? Looking amamzing!
u/Dream of Omnimaga June 08, 2017, 09:47:43 PM
This is epic. Reminds me a lot of those late 90's PC strategy and RPG games so the nostalgia is kicking in right now :D
u/PT_ June 21, 2017, 12:55:07 PM
I'm SUPER happy to announce that my pathfinding algorithm works for 99%! It uses A* to find the path, and once it hits the end tile, it just stops, rather than doing the reverse, to find the actual path in the closed list. The speed is now 28K cycles for this path:



Not that bad, I would say :)

Here is the algorithm, any optimization is welcome :D
u/_iPhoenix_ June 21, 2017, 03:05:57 PM
That's, like, amazingly amazing, and I am really excited for this..

#hypetrain!!
u/PT_ January 01, 2018, 10:23:38 PM
Good news! I decided to pick this up again, and I've made good progress with the graphics. Luckily I found the complete spriteset, so I've pretty much finished all the graphics! There's not much to show though, but I've changed the entire codebase, added all the graphics, and improved some things. I have good hopes the speed will be above 10FPS, which was my original target. This week and the next year (heh, that sounds cool :P) I will work on displaying the map, buildings, units, and after that the actions, like fighting, moving and whatever. Stay tuned! :)



As you see here, there's a black border around the map. I will write some code to make it pretty much fullscreen, except the top bar with the resources and population, and a bar at the bottom with some key actions.
u/Dream of Omnimaga January 02, 2018, 12:09:12 AM
Great news. This looks good by the way :)
u/PT_ January 06, 2018, 06:35:19 PM
Here's some more general information about the sizes and whatever:
  • All the buildings and unit for each age will be stored in 1 appvar (I still need to check if this is possible for age III, since that age has too much buildings). This means you always have transfer at least 4 appvars
  • There will be another appvar with all the standard sprites which is needed in every age, such as cursors, foundation, rubble etc. This is the 5th appvar.
  • The last appvar contains the sprites for the main menu, which is 34kB in total. This is the last and 6th appvar. In order to get AoCE running, you need to transfer 6 appvars and 1 program to the calc :P No worries though, everything can be put into the archive, such that it won't take up RAM.
  • Looking at this pastebin, you see that age 4 will take up the most RAM, in total 83686 + 37591 = 121277 bytes. This simply doesn't fit into free RAM, excluding 32768 bytes for the map data, all the units, and AoCE itself which will be around 30kB I hope. Thus, AoCE will always backup RAM and use full RAM, which should be enough. I've spend 2 days to get this fully working, and it finally works (kinda). Here are some screenshots of the process :P

  • Meanwhile, the main menu is already fixed, and I still need to add some code to load sprites from appvars to the RAM.
And that's it! I'm working super hard to get everything working so stay tuned. If you really want to follow the process, join #aoce-dev on EFnet :)
u/PT_ January 11, 2018, 04:55:09 PM
Uh oh, I need help :( I don't really know how to draw all the units. I can't draw them after the tilemap, because then they will be displayed in front of everything, which is clearly not right. I can't draw them before the tilemap either, then the tiles will overdraw them. So the only solution is to display them together with the tilemap... which is almost impossible. Since they are constant moving, my idea was to put all the units in an array, with their coordinates, health, attack points etc.. but how do I draw a unit at a certain tile? Going through the entire list all the time is way too slow :(
u/p2 January 15, 2018, 07:00:12 AM
I dont really know how ur game works, but I'd go for the following option:
- split houses in front (that can be overlapped by units - bottom half of house tiles) and back (that will overlap units - top half of tiles)
- draw background
- draw bottom tiles of houses
- draw units
- draw top tiles of houses
they should overlap each other and end up being accurate. Think this will work for you?
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal