Join us on Discord!
You can help CodeWalrus stay online by donating here.

Walrus Kingdom (former PocketWalrus) [PC] [Windows] [Java] [Walrus]

Started by p2, September 21, 2016, 09:23:42 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

p2

 Thx a lot  :)

@naz2a I removed them until I finally add interactive signs :) they will be back once they can actually be functional. Aaaaalso I was a Little too lazy to adapt their tiles, too ^^
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Dream of Omnimaga

I wonder what the warning signs look like. Are they just the flashy cat walruses that are running at the bottom of the screen? :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

p2

just signs that warn you when walking by about stuff like "all changes will be lost, remember to save your game first, ..."

progress, yay ^.^
v0.3.9
- fixed flickering when resizing for all dialogues
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Dream of Omnimaga

Ah ok, and yeah it's good to have such signs, especially nowadays with all those games that auto-saves your progress. By the way I don't like games that auto-saves much, because if you screw up then you can't go back >.<
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

WholeWheatBagels

Quote from: DJ Omnimaga on January 09, 2017, 11:58:24 PM
if you screw up then you can't go back >.<

*coughDARKESTDUNGEONcough*

I really like how that menu is turning out!
Living in another world to you.



Also in case you were wondering Frankie did go to Hollywood

p2

Thx for the feedback :)
Also there won't be any autosave. The only way to save progress will be using the main menu (and maybe save statues, haven't decided yet).
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Dream of Omnimaga

I guess having save points can add some challenge, although make sure to place them properly. Generally they are placed halfway through the dungeon and before major boss fights. I did see one game once where I was two steps away from reaching a save point, only to run into a boss just before. That was kinda a d*ckish move from Tri-Ace's part lol. Statues can also be nice since it's sometimes faster to save depending of how you implement it (eg in Reuben you don't need to access a menu) and you can probably make them restore all your HP/MP too.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

p2

I haven't really decided about  combat yet ^^ buuuut I might not post updates for a few days now as I started working on the next stage: interactive objects, both triggered by map data (block ID) and map position (event map). That might take some time. But don't worry, I'm still working on it ;D
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Dream of Omnimaga

Cool to see progress nonetheless. Hopefully we can see some new maps and maybe even events in action soon :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

p2

uuh right have to create a regular map, too xD
(Hidden house in the forest, but it'll be a very small map, dont expect too much)
Plus the event maps which will take ages to implement >.<


sorry for less updates lately, but I have also begun working with Unity and MicrosoftHololense now (work-related), which takes up most of my time >.<
But I'll still continue the project!! <3


Edit:
For event map I'll use the same map compression algorythm as for my main maps, again with 2 layers: one for events triggered my palking over the block, the other for events triggered when pressing a key. (message "press A to read" popping up when being next to a sign VS chest opening after you press A)
let's call them Trigger and Action IDs :)
The action IDs will be unique WITHIN every map while the Trigger IDs are ment to cover larger areas.
I probably will never need 901 different IDs on a single map, but I guess I'll just reuse the classes I wrote for packing and unpacking the map data anyways.
As for additional graphics: Once I have the time I'll add them :)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

p2

Using the easy map compression method I've now implemented the event map and the class "Trigger" to access the data.
downpart: now every map has to have a trigger map, even the intro map (even tho it'll be empty).
MapData = 901*ActionID + TriggerID
TriggerID = causes something if you walk over that tile (like messages popping up "press A to open chest") <--- reused a lot, like all chests have the same ID, as well as all doors, signs, ...
ActionID = causes something if you press a key, like opening a chest or door <--- unique ID for each chest/door/sign/...

in the blockDataDefinition (the part of code where I define all tiles and link IDs to tiles and parameters like isSolid) the parameter "Category" is now pretty much redundant.
It was so far used to categorize blocks (doors, houses, trees, streets, flowers, ...) and planned to use it for what the "TriggerID" is for now.
I'll probably remove that parameter later (keeping it for now as I might use it later once I add abilities to manipulate the map).

// BLOCK-ID, NAME, isSOLID, TILE-ID, CATEGORY
[ ... ]
Block.AddNew(36, "house", true, 36, 7);
Block.AddNew(37, "house", true, 37, 7);
Block.AddNew(38, "house", true, 38, 7);
Block.AddNew(39, "house", true, 39, 8); // DOOR
Block.AddNew(40, "house", true, 40, 8); // DOOR
Block.AddNew(41, "house", true, 41, 7);
Block.AddNew(42, "house", true, 42, 7);
[ ... ]


Next thing to do is make the game actually check for such events (only added data handling so far)
Next thing to do: create the trigger events for the whole city map

Does this post make sense to anyone except me... ???



Edit: known (old) bug: can only skip intro after second message. check keys.java
Edit2: fixed that bug
Edit3: dont have to fill in any data for the trigger map, that's optional :D
Edit4: Done. Now it checks for triggers and dislays the correct message.
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

p4nix

Quote from: p2 on January 17, 2017, 07:39:04 AM

// BLOCK-ID, NAME, isSOLID, TILE-ID, CATEGORY
[ ... ]
Block.AddNew(36, "house", true, 36, 7);
Block.AddNew(37, "house", true, 37, 7);
Block.AddNew(38, "house", true, 38, 7);
Block.AddNew(39, "house", true, 39, 8); // DOOR
Block.AddNew(40, "house", true, 40, 8); // DOOR
Block.AddNew(41, "house", true, 41, 7);
Block.AddNew(42, "house", true, 42, 7);
[ ... ]


If you do organize things like you show here, then you won't be able to finish Walrus Kingdom before Trump XIV has destroyed the world in 2701. Think of a good map data structure (which can be easily reprogrammed if you forgot something important, it must be modular and have almost nothing to do with the rest of the code), code a map creator and there you go.
Please don't take this personally, I just want to be able to show Walrus Kingdom to my grandchild before I die, lol ;)
  • Calculators owned: fx9860GII (SH4)

p2

naaah, that'd the definition for the tiles! xD
the map data is much more compact:
Code (loading map Y=58) Select
for(int _i=0;_i<100;_i++) {Map[_i][58] = new long[] { 113536, 113536, 96417, 106328, 12, 10, 10, 10, 10, 109, 119, 105427, 96417, 113536, 105427, 106328, 109, 13, 14, 12, 10, 12, 14, 119, 12, 10, 10, 10, 10, 10, 12, 14, 119, 119, 96417, 96417, 96417, 96417, 96417, 114437, 114437, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 109, 109, 109, 12, 12, 12, 12, 109, 96417, 109, 12, 96417, 96417, 109, 96417, 109, 109, 12, 12, 12, 12, 12, 12, 109, 96417, 105427, 105427, 114437, 114437, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417, 96417}[_i];}
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

p4nix

  • Calculators owned: fx9860GII (SH4)

Dream of Omnimaga

I like those alert bubbles things for when you are in front of objects. Nice way to make the game intuitive.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal