Alternatively, join us on Discord.

[CSE Hybrid Basic] Aqua Wars

Started by 123outerme, August 10, 2015, 01:13:50 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

c4ooo

Well, here is some rough pseudo code for the compression I suggest.

currentMap * 9999 -> rand //seeds the rng.
If currentMap = 1:"compressed map 1"->str2 //format for compressed map: if the first value of a tile starts with o zero, then that tiles second value tells how many water tiles follow. If a tile does not start with zero, then it's just a normal tile. And I guess this means that tiles 00-0F will be reserved. Also more compression can be used, such as if you have less then 16 tiles, you can store the two tiles with two numbers.
If currentMap = 2:"compressed map 2"->str2
//ect...
For(every other char in str2, starting with the first one)
If char="0"
Then
//Insert x water tiles, where x is the the char following the current char. This may be hard to do, but is doable in tibasic. Simply get the position of nextChar in the string "0123456789ABCDEF" and loop that many times.
//let's say you have 3 different sprites for a water tiles. This is where the rand command comes in. Because it was seeded with the current map, going back and  forth between two maps will always yield the same water results.
Else
//copy this char and next char to str1
End
End

I hope you can follow this.

DJ Omnimaga

Quote from: 123outerme on August 19, 2015, 03:37:43 pm
Quote from: DJ Omnimaga on August 18, 2015, 09:33:33 pm
There are probably ways to compress data in basic explained on TIBD, but they are most likely very slow. You could always do what I did in FF:MF if your maps are simple, though.

How did you compress in FF:MF? ???

There's no compression in FF:MF. Each room is made of 8 chunks of walls/floors

123outerme

Quote from: DJ Omnimaga on August 20, 2015, 08:18:33 pm
There's no compression in FF:MF. Each room is made of 8 chunks of walls/floors

Oh, I thought you were suggesting that you compressed map data.
Quote from: c4ooo on August 20, 2015, 07:24:33 pm
Well, here is some rough pseudo code for the compression I suggest.

currentMap * 9999 -> rand //seeds the rng.
If currentMap = 1:"compressed map 1"->str2 //format for compressed map: if the first value of a tile starts with o zero, then that tiles second value tells how many water tiles follow. If a tile does not start with zero, then it's just a normal tile. And I guess this means that tiles 00-0F will be reserved. Also more compression can be used, such as if you have less then 16 tiles, you can store the two tiles with two numbers.
If currentMap = 2:"compressed map 2"->str2
//ect...
For(every other char in str2, starting with the first one)
If char="0"
Then
//Insert x water tiles, where x is the the char following the current char. This may be hard to do, but is doable in tibasic. Simply get the position of nextChar in the string "0123456789ABCDEF" and loop that many times.
//let's say you have 3 different sprites for a water tiles. This is where the rand command comes in. Because it was seeded with the current map, going back and  forth between two maps will always yield the same water results.
Else
//copy this char and next char to str1
End
End

I hope you can follow this.

I could turn that into real code. The only reason I haven't already is because I just downloaded Project M on my Wii X|

DJ Omnimaga

Quote from: 123outerme on August 25, 2015, 10:44:54 pm
Anyways, DJ, do you think you could split the PM discussions stuff into it's own topic? Much appreciated!
Quote from: Unicorn on August 26, 2015, 02:43:44 am
What needs to be 2gb? And do split the discussion @DJ Omnimaga
Done :P Project M discussion can now go there: https://codewalr.us/index.php?topic=677.0

I am curious if you found some time to work on this now? :)

123outerme

I plan on working on this more today, and start by renaming Aqua Wars. I don't like that the A is gone anymore.
Also I'm terrible at naming games, as you can tell.

Unicorn

Ehh, I like the name better now :P



??? ??? ??? ??? ???

p4nix

August 31, 2015, 03:14:20 pm #51 Last Edit: August 31, 2015, 03:20:15 pm by p4nix
Pirates of the 777 seas :D

DJ Omnimaga

I actually like the Aqua-Wars name myself, but something that refers more to pirate or ship battles would be nice as well.

Unicorn

Maybe there could be an aqu race in the game that are like the best class of crewmen. O.O



??? ??? ??? ??? ???

123outerme

September 01, 2015, 11:42:30 pm #54 Last Edit: September 01, 2015, 11:50:16 pm by 123outerme
Quote from: DJ Omnimaga on September 01, 2015, 03:14:16 am
I actually like the Aqua-Wars name myself, but something that refers more to pirate or ship battles would be nice as well.

I like the name change as well. I would love to change it to better suit the game, so I'll think of something.
This is unrelated but I was going to put a joke about internet piracy in one of the pirate mission debriefings. I probably will still, but I haven't gotten around to adding missions.
Quote from: Unicorn on September 01, 2015, 06:56:04 am
Maybe there could be an aqu race in the game that are like the best class of crewmen. O.O

That's not a bad idea, but my only problem is that I could only add it and have it be good if it was a scripted event, with outcomes depending on the ship upgrades you've gotten. I don't think it would be a good event though, just because the main game is focused on fighting other ships, not racing.

DJ Omnimaga

Lol, the internet piracy reference would be cool XD. Maybe a Limewire reference or something? (Although younger people probably won't know what Limewire was). Also racing probably doesn't have its place in this game. You could maybe implement missions and events with a countdown timer, though.

Powered by EzPortal