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

meh I just can't stay away...

Quote
v0.4.5 The Useles Update

I moved to a new PC and had to change some names, just ignore me.
Quotev0.4.6 The Enlightment

- no more spooky shadows
- optimized rendering
- minor changes for test purposes

still doesn't mean I can now work more on it again xD
  • 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

Hm I like the idea. I hope it's not too difficult to implement :3=
  • 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

Well I'd first have to implement the smooth scrolling when walking around, and that's gonna break pretty much everything... :/
(scrollLock areas like the big garden, animated walking, ...)
I seriously dont know if I can do it >.<

edit:
omg just seriously after posting this I had the following idea:
instead of trying to move the walrus between two blocks I could do the following:
I multiply all map positions *24 (which is the tilesize)
I then adapt all the engine formulas with a /24 again to neutralize this.
So when editing the maps and stuff I can still work with the regular numbers. But the walrii will use the *24 ones.
So I can then actually use a grid 24 times thinner than the regular tile grid, which makes it super easy to put the walrii anywhere I want *-*
(sounds stupid, but for my code that's gonna make it a lot easier) ^.^

edit2:
Quotev0.4.7 The ZoomFix

- fixed character offset in zoom adaption
  • 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

I've been thinking a little bit more about this and I think it's indeed the best way for me to include smooth scrolliing.
Also this will give me a way to actually support scrolling even after adding multiplayer support (which isn't decided yet btw).

hope I'll have another chance to work on it this week :)
  • 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

Instead of dividing by 24 you could also add a scroll-variable, because it will be compatible to your other code.
Like:

for(x = 0; x < WHATEVER; x++){
for(y = 0; y < WHEREEVER; y++{
  display_tile_clipping(x + smooth_offset_x, y + smooth_offset_y, map[x][y]);
}
}
  • Calculators owned: fx9860GII (SH4)

Dream of Omnimaga

p2 that's how most people do it I think. They have movement so that it's 24x, but always have it divided by that amount or use a separate variable with the position divided by 24 so that they can have smooth scrolling. The extra variable is usually an integer or rounded number.

By the way, is in the game?
  • 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 thought about doing it that way as well. Only natural as it's the easiest way to do it.
But that would break the special behaviour changes in scrolling (regular, close to edges and in non-scrolling areas)
little explanation:

close to edges the walrii moves over the actual screen. The walrus scrolls smoothly.
in regular open spaces the walrus is always centered. The background then scrolls smoothly.
In screll lock areas the walrus moves over the actual screen, but only on one axis, the background scrolls on the other axis. Both Walrus and background scroll smoothly.

These conditions have to be met which will be very hard... :/


dj: I plan on adding skins and NPCs plus actual story line later. Currently still working on game mechanics and map :)
But it will be in the gamne ;) ^^
  • 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

You could make it so that the Walrii is always centered, but that would most likely require you to either detect if tiles need to be drawn on the edges and add a frame around the map to show where the boundaries are (eg as a clue about where the exit is) or simply enlarge the maps to add a few extra colums and rows of tiles at the top, bottom, left and right, like I did in Superstar Hero (in which the map loops).
  • 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

as mentioned before, I have special areas in the map, like gardens, where I force the screen not to scroll off, so only certain areas are shown while others arent unless I enter through a special spot.
I'm using this technique to make the garden fullscreen and also to avoid the user from spoilering himself too much when running around not following the storyline (u can't see behind some treelines)
So it won't be that easy to simply kill this function as it's essential to my game... :/
  • 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)

c4ooo

Quote from: p2 on March 28, 2017, 10:00:45 AM
as mentioned before, I have special areas in the map, like gardens, where I force the screen not to scroll off, so only certain areas are shown while others arent unless I enter through a special spot.
I'm using this technique to make the garden fullscreen and also to avoid the user from spoilering himself too much when running around not following the storyline (u can't see behind some treelines)
So it won't be that easy to simply kill this function as it's essential to my game... :/
I would hide tiles that are obscured by solid objects ;)

p2

I got a top-down view... don't u think it would look pretty stupid if parts of the screen were black until I get there.....?  :ninja:
  • 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

You might definitively want to go with Superstar Hero style, scrolling-wise
  • 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

c4ooo

Quote from: p2 on March 30, 2017, 07:38:35 AM
I got a top-down view... don't u think it would look pretty stupid if parts of the screen were black until I get there.....?  :ninja:

Nah. Also I don't mean obscuring places that you haven't been too yet, I mean obscuring any tile that is behind something. This way you can't see behind buildings and walls.

p2

that'd require an actual shader for top-down view, else it'd liik super cty :/
(which it probably would anyways, since my entire game mas made looking super bright and happy... :/
  • 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

I was playing around a little bit and the result is a clear NOPE
blacking out all regions out of reach is definitely not an option... :ninja:

So I probably have to continue wieking with my current mechanics, which is scrollLocks and silent teleportation (plus direct changes to the map data that will be added later)
  • 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)

Powered by EzPortal