developmenteras:roleblock
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| developmenteras:roleblock [2025/11/11 01:10] – whoops blamedenny | developmenteras:roleblock [2026/03/26 11:51] (current) – move some stuff up blamedenny | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| + | ===== Role Block ===== | ||
| + | ---- | ||
| {{infobox> | {{infobox> | ||
| name = Role Block | name = Role Block | ||
| Line 8: | Line 10: | ||
| Developer = Mooshimity Ltd. | Developer = Mooshimity Ltd. | ||
| }} | }} | ||
| - | |||
| <box 60% blue> | <box 60% blue> | ||
| - | |||
| - | <box 60% orange> | ||
| **Role Block** is the earliest prototype of sandbox game [[: | **Role Block** is the earliest prototype of sandbox game [[: | ||
| + | |||
| + | ==== Release features ==== | ||
| + | * No multiplayer | ||
| + | * 2D release can be started via '' | ||
| + | * 3D release can be started via '' | ||
| + | |||
| + | ==== Controls ==== | ||
| + | * W,A,S,D - Up, down, left, right. | ||
| + | * Shfit - Crawl (3D Release exclusive). | ||
| + | * Space - Exit the car. | ||
| ==== Game folders ==== | ==== Game folders ==== | ||
| Line 45: | Line 54: | ||
| '' | '' | ||
| - | ==== Release features | + | ==== Example Game Structure |
| - | * No multiplayer | + | < |
| - | * 2D release can be started via '' | + | - game folder (eg: game_nut): |
| - | * 3D release | + | -- system_map (3d exclusive directory) |
| + | --- draw.txt | ||
| + | - | ||
| + | -- system_player | ||
| + | --- function.txt (can be empty) | ||
| + | --- player.png | ||
| + | - | ||
| + | - background_nut.png (defined in settings.txt file) | ||
| + | - gamemode.txt (creation event?) | ||
| + | - gui.txt (what to draw) | ||
| + | - settings.txt (game settings) | ||
| + | </code> | ||
| - | ==== Controls ==== | + | Script examples: |
| - | * W,A,S,D - Up, down, left, right. | + | |
| - | * Shfit - Crawl (3D Release exclusive). | + | |
| - | * Space - Exit the car. | + | |
| - | ==== 3D Release oddities ==== | + | '' |
| + | < | ||
| + | while vehicle != 1 | ||
| + | { | ||
| + | instance_create(room_get_width/ | ||
| + | vehicle += 1 | ||
| + | } | ||
| + | </ | ||
| - | <box 60% orange> | + | '' |
| - | + | ||
| - | It seems like that the codebase of 3D Role Block release was the main codebase until the first full rewrite by brick-luke in 2017, because of how differently 3D initialization works. In Early 2017 Brick Hill workshop, the game's code creates | + | |
| < | < | ||
| - | /// Create event | + | if (global.player_lives > 0) |
| - | // | + | { |
| - | { | + | draw_text(2,2,global.player_lives) |
| - | friction = 0.2; | + | } |
| - | d3d_start(); | + | </ |
| - | d3d_set_hidden(true); | + | |
| - | d3d_set_lighting(false); | + | |
| - | d3d_set_shading(true); | + | |
| - | d3d_set_culling(false); | + | |
| - | draw_set_color(c_white); | + | |
| - | d3d_set_perspective(true); | + | |
| - | d3d_set_fog(false,c_black,10,100); | + | |
| - | texture_set_interpolation(false); | + | |
| - | zdirection = -3; | + | |
| - | } | + | |
| - | /// Draw event | + | '' |
| - | //3D draw | + | < |
| - | d3d_set_projection(x, | + | //Control Game Settings Here |
| - | + | global.player_walkspeed = 4 | |
| - | //Draw floor | + | global.player_spawnpoint_x = room_width/ |
| - | if global.pause = 0 | + | global.player_spawnpoint_y = room_height/ |
| - | { | + | global.player_lives = 5 |
| - | draw_set_color(c_white) | + | global.background = " |
| - | draw_set_alpha(1) | + | global.ai = "" |
| - | d3d_draw_floor(-1000000, | + | global.vehicle = " |
| - | } | + | |
| </ | </ | ||
| + | ==== 3D Release oddities ==== | ||
| - | Though | + | It seems like that the codebase of 3D Role Block release was the main codebase until the first full rewrite by brick-luke in 2017, because of how differently 3D initialization works. In Early 2017 Brick Hill workshop, the game's code creates |
| + | Though the 3D Release requires the '' | ||
| ---- | ---- | ||
| Links: | Links: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
developmenteras/roleblock.1762819810.txt.gz · Last modified: by blamedenny
