Progress. It's beginning to look and feel kind of Gamey!
I'll be referring to it as "Starship" for now until a final name is picked. Assuming that I keep going with it.
There is something rotten with the state of gaming in Australia. Unlike other entertainment mediums, games can not be given an R18+ rating or classification. This has two practical effects: Games that are deemed too mature (generally due to violence or sexual references) are banned, making their sale illegal, their importation illegal and in Western Australia, their possession illegal. Other games that have been generally rated R18+ equivalents in other markets (such as The Witcher 2) are downrated to MA15+ to get them through the system.Find the full article on http://www.gamerlaw.co.uk/2012/02/australia-getting-grown-up-about-games.html
struct FeatureStyle{SDL_Surface* surface_;FeatureStyleMode mode_;SDL_Rect middle_;SDL_Rect left_edge_;SDL_Rect top_left_corner_;SDL_Rect top_edge_;SDL_Rect top_right_corner_;SDL_Rect right_edge_;SDL_Rect bottom_right_corner_;SDL_Rect bottom_edge_;SDL_Rect bottom_left_corner_;};
Game add_button "Button_Down_Pic.png" "Button_Up_Pic.png" "ButtonDownScript" "ButtonUpScript"This is important so I can make levels work.
f_1 x1 = 10I've taken the laziest reasonable possible approach to making this into as much of a language as I need: I've tacked on a basic stack - like on a reverse polish notation calculator (see http://en.wikipedia.org/wiki/Reverse_Polish_notation). So whenever I get a value from somewhere (like getting f_1 x1), it now drops it on the stack, which goes up to 6 numbers - for really no good reason other then it was simple to code and won't take much memory.
i 234I'll add some arithmetic and other commands soon to allow better use to be made of the stack.
W 5 M 100 0 50 0 X 3 R 0 0 -50 0 X 4 R 100 0 50 0would:
| Files | 75 |
| Lines | 6072 |
| Statements | 3549 |
| % Branches | 23 |
| % Comments | 3.1 |
| Class Defs | 34 |
| Methods/Class | 9.71 |
| Avg Stmts/Method | 6.6 |
| Max Complexity | 46 |
| Max Depth | 9+ |
| Avg Depth | 1.93 |
| Avg Complexity | 2.9 |
| Functions | 12 |