January 21, 2021, 09:09:56 PM

## News:

what is this news thing for anyway

You can help CodeWalrus stay online by donating here.

## MOS: A game that has been in development for 3 years.

Started by mazhat, March 15, 2017, 02:50:12 PM

0 Members and 1 Guest are viewing this topic.

### How should MOS play out?

You're a lone guy, exploring the world. (Fallout-like)
4 (44.4%)
4 (44.4%)
You control every step, also you're a lone guy (Rogue-like)
0 (0%)
1 (11.1%)

Total Members Voted: 9

#### c4ooo

##### May 02, 2017, 01:38:14 AM #15
"And" is the bitwise function, you want to use the shorts circuit '?' Instead:
x>(z*8 )+8?x+8<(z*8 )?y>z?y<3
However, your real problem seems to be that you don't understand Order of operations
Axe does everything left to right, so x>(z*8 )+8 checks to see if x is bigger then z*8, and then adds 8 to that true/false value. You want to rewrite it as z+1*8<x or something. (z+1*8 'should' be more optimized then z*8+8 )

#### DJ Omnimaga

##### May 02, 2017, 05:20:40 PM #16
Ideally it's a good idea to make separate topics for programming help, for maximum visibility. I can't help, though, since I haven't touched Axe in years and was never successful in doing map-based collision detection with it. I wish you good luck, though. But yeah, as c4ooo said, order of operation is different in Axe compared to BASIC and ICE. In addition to that, you need to be careful with signed/unsigned integers (I think for example that -1 becomes 65535)
• Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
• Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

#### mazhat

##### May 03, 2017, 08:38:30 PM #17

Unfortunetly I know about the arithmetic and it doesn't work one way or another :^(
I even mass used parenthesis to bypass order of operations.

Now I've scrapped the old collision to work on an old school western rpg (wasteland) . It's tilebased movement (like uvutu).

Sorry for the hassel guys, I just can't persevere when I can barely indentify the problem.
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti

#### mazhat

##### May 05, 2017, 01:47:16 AM #18
Update: The problem has seemed to sorted itself out, I guess it was my fault after all. I'm sorry Axe, I never meant to hurt you.

Anyway, I now need a good way to store and compress maps!
Also there's no dynamic memory in Axe right? (std::vector equivalent)
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti

#### DJ Omnimaga

##### May 05, 2017, 04:33:31 PM #19
By dynamic memory, do you mean like with pointers? Because Axe supports pointers.
• Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
• Consoles, mobile devices and vintage computers owned: Huawei P30 Lite

#### mazhat

##### May 05, 2017, 08:50:42 PM #20
Not quite, DJ.
In C++ we have a template called std::vector*
It's an array that can grow or shrink! To give you a more hands on example:
Vectors help to spawn and de-spawn enemies and items,
otherwise I have to hard code the enemies into the game.**

Trivial info:
1) *Despite the confusing name, it is not a physics vector. Strange nomenclature!
2) **Unless a sexy smarty pants figured out a way to do this without vectors.
3) Sometimes I write too much stuff, so I made this optional-to-read "Trivial Info" section! I hope you like it, it's in beta!
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti

#### c4ooo

##### May 05, 2017, 11:05:47 PM #21
Quote from: mazhat on May 05, 2017, 01:47:16 AM
Also there's no dynamic memory in Axe right?
There is no abstraction in axe for dynamic variables. You have plenty of free ram areas though, and if you ever run out, you can use GetCalc("prgmTEMP",size) to allocate your self some more free ram.

#### mazhat

##### June 26, 2017, 09:00:33 PM #22

Here is the updated sprites! It's made in Paint Tool Sai instead of MS Paint.
so what do you think? Do you like the legacy sprites or the updated ones?
I'd love some feedback.

For reference, here is the old sprites:

-Removed multi-floored gameplay. (Now there is only one plane of combat)
-Enemy AI FOV will be an angular (degree) based FOV. Instead of arithmetic/math based.
-New/Updated Sprites.

Next up:
-Update the engine(?)
-EnemyBehavior.h
-Items on the ground
-Speech/Text/Cutscenes

P.S. Also, don't worry. I'm still working on the Liberal Crime Squad port for TI-83+!
:^)
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti

#### mazhat

##### July 05, 2017, 03:17:13 AM #23 Last Edit: July 05, 2017, 03:19:56 AM by mazhat
Long awaited tile update (not overhaul)

It's very convenient to keep the tiles in the style they're in now.

Tile descriptions (In order of appearance):
-Wall Destruction
-Farmland -> Wheat, Dirt, Fence

I need these tiles before I create the procedural map generator.
The MOS level editor is okay, but I'd rather play some mystery maps.
First generated level theme: Cross Of Iron.

When I finish the level generator, I'll make a video.
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti

#### p4nix

##### July 05, 2017, 09:17:39 PM #24
Wow, those tiles look pretty nice. I am looking forward to seeing all of them together in action
But aren't you still missing a connector for the wooden fences?
• Calculators owned: fx9860GII (SH4)

#### kotu

##### July 05, 2017, 09:23:06 PM #25 Last Edit: July 05, 2017, 09:31:28 PM by kotu
Quote from: mazhat on May 05, 2017, 08:50:42 PM
Not quite, DJ.
In C++ we have a template called std::vector*
It's an array that can grow or shrink! To give you a more hands on example:
Vectors help to spawn and de-spawn enemies and items,
otherwise I have to hard code the enemies into the game.**

Trivial info:
1) *Despite the confusing name, it is not a physics vector. Strange nomenclature!
2) **Unless a sexy smarty pants figured out a way to do this without vectors.
3) Sometimes I write too much stuff, so I made this optional-to-read "Trivial Info" section! I hope you like it, it's in beta!

The game looks great, however, you might want to use std::list instead std::vector in some instances, because...
- list is optimised for object insertion/deletion, whereas
- vector is optimised for indexed access - inserts/deletes can only be made on the end.

Hope this info is of use

*EDIT
sorry, didn't realise this was an axe game. i guess that list won't be so much use after all, lol
• Calculators owned: TI 84+CE-T
• Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

#### mazhat

##### July 05, 2017, 10:45:12 PM #26 Last Edit: July 06, 2017, 02:03:54 AM by mazhat
@p4nix  Thanks, they're very fast to make and I need them for my procedural level generator!
I hate my level editor because I have some biases when I make maps, and also it's not fun for me
to play maps that I've made.

I'm a lazy boy, my friends laugh at my lazy philosophy.
e.g. There's only one side to the fence and they absolutely hate that, haha.
I'll get around to it either eventually or never, lol.
Don't stop with the criticism though, I need to keep myself in check

@kotu
Your recommendation is helpful, and I'll study and consider using std::list ,
(Also I might have made a mistake, vectors may not actually be part of std. It's been a while)
So far vectors work fine, but I'll be glad to get rid of them altogether.

General update for everyone:
I've started on the basics of the level generator.
It uses "partial" maps that I create and then jumble them together randomly into one big map.
Later I sprinkle things like explosion craters, items and stuff.
More sprites like tables and floor tiles are being made as I'm writing this!
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti

#### kotu

##### July 05, 2017, 10:56:01 PM #27
I voted 'something else' in your poll. I think you should make those decisions and make the game to your liking. Also, you could mix styles up (some parts could be you controlling a guy, and other parts your could control a squad). By making these decisions yourself the game will be more fun to make.

Btw. yes vectors still are a part of the STL. There's no need to stop using them, most often when you use a container template you will probably want to use a vector. But the other template classes work differently, that's all.
• Calculators owned: TI 84+CE-T
• Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

#### mazhat

##### July 08, 2017, 05:19:01 PM #28
I like both, I could care just a tiny little bit less about it.

They'll both have squads, it's just that in the Fallout-style, you get your friends by exploring,
and not immediately.

Also yeah! They're a template, thanks, yo.
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti

#### mazhat

##### July 09, 2017, 02:49:11 AM #29 Last Edit: July 09, 2017, 02:51:23 AM by mazhat
Getting pretty excited, my map generator works.
The only problem is that I only have three "map sectors" to work with.
So far the three are "fence with escape points", "Fenced in FOREVER!" and "Barn House".

If you guys would like to feature your map "sector" I'll be glad to add it! The generator is super easy to implement new ones.
Otherwise let me handle the game, and we'll be good.
>Pretending to "let" people add sectors instead of begging and telling them I'm desperate.

In the picture you can see one "sector".
I haven't programmed some LOS stuff for the other sectors.
• Calculators owned: TI-83Plus, TI-84Plus
• Consoles, mobile devices and vintage computers owned: Samsung TAB A (Cheap), DSI, Rasperry PI 3
Sketti