Infinite Adventure (Under development)

User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

New screenshots of development. Level generation is still very simple and basic.
Attachments
04.PNG
04.PNG (7.33 KiB) Viewed 3668 times
03.PNG
03.PNG (9.25 KiB) Viewed 3669 times
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Infinite Adventure (Under development)

Post by salvadorc17 »

starwindz wrote:New screenshots of development. Level generation is still very simple and basic.
Could you share this development versions, really want to try myself..
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

salvadorc17 wrote:
starwindz wrote:New screenshots of development. Level generation is still very simple and basic.
Could you share this development versions, really want to try myself..
Okay. After fixing some bugs, I would upload the development version within this weekend.
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

Mod information
=================
Mod name: Infinite Adventure
Author: starwindz
Current version: 0.20
Description: Random Level Generation Mod


Version history of Infinite Adventure
=====================================
Below you find a list with the added features, changes and fixes for each version.


Version 0.20 (2017.04.30)
-----------------------------
- Download: https://drive.google.com/file/d/0Bw07W8 ... sp=sharing

- Add: Room Template Editor
- Add: Room Template Script Engine (Pascal Script)
- Add: Level Generator
- Add: Options

* Remark
- Level generator is still very basic and monotonous.
- Currently there are no manual or technical document.
- To test room template
(1) Go to 'Template Editor' tab
(2) Edit Some Room Templates
(3) Click 'Create Room & Run' button
- To test level creator
(1) Go to 'Level Creator' tab
(2) Click 'Create Level & Run' button


Version 0.10 (2017.04.09)
-----------------------------
- Initial release of prototype


* End of document
Attachments
00.png
01.png
02.png
03.png
04.png
06.png
07.png
08.png
09.png
11.png
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

Screenshots of new feature using new SDLPop feature. ( viewtopic.php?f=126&t=4048 )
Attachments
00.png
01.png
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Infinite Adventure (Under development)

Post by salvadorc17 »

Really good work, now it feels like a powerfull tool, only what i think need to be fixed is the background tiles like windows are bad placed adjacent to some tiles.
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

Examples of scripting engine for room template editing are shown as follows. Currently it is at early stage and needs some improvement.
ss1.png

Code: Select all

[template info]
enter_and_exit_dir = left-right
enter_and_exit_num = 0-0
one_way_passage    = false

[basic tile layout]
line_  =   0123456789
line_0 = 0 __________
line_1 = 1 ##########
line_2 = 2 ##########

[test]
position = 0, 0

[script]
var
  r, c, p, start : byte;
  gap : byte;
  fake_floor_middle, fake_floor_top : byte;
  spike_bottom, spike_top : byte;
  guard_top : byte;
  door_top : byte;
begin
  ////*** jump making ***///
  // select gap: 0 to 4
  gap   := RandomInt(0, 4);
  //gap := 2;
  start := RandomInt(1, 4); 
  //start := 1;

  fake_floor_top := RandomInt(0, 1);
  //fake_floor_top := 1;
  fake_floor_middle := RandomInt(0, 1);
  //fake_floor_middle := 1;
  spike_bottom := RandomInt(0, 1);
  //spike_bottom := 1;
  spike_top := RandomInt(0, 1);
  //spike_top := 1;
  guard_top := RandomInt(0, 1);
  //guard_top := 1;
  door_top := RandomInt(0, 1);
  //door_top := 1;

  for c := start to start + gap - 1 do begin
    if fake_floor_top = 1 then begin
      SetTile(0, c, '~');
    end
    else begin
      SetTile(0, c, '.');
    end;
    
    if fake_floor_middle = 1 then begin
      SetTile(1, c, '~');
    end
    else begin
      SetTile(1, c, '.');
    end;
    
    if spike_bottom = 1 then begin
      SetTile(2, c, '+');
    end
    else begin
      SetTile(2, c, '_');
    end;
  end;
  
  if spike_top = 1 then begin
    if RandomInt(0, 1) = 0 then begin
      SetTile(0, start + gap, '+');
    end
    else begin
      SetTile(0, start + gap + 1, '+');
    end;
  end;

  ////*** guard making ***///
  if guard_top = 1 then begin
    if (start + gap + 4 <= 9) then begin
      SetTile(0, start + gap + 4, '&');
    end;

    if RandomInt(0, 1) = 1 then begin    
      if (start + gap + 4 <= 8) then begin
        SetTile(0, start + gap + 5, '.'); 
        SetTile(1, start + gap + 5, '.'); 
        SetTile(2, start + gap + 5, '+'); 
      end;
    end;
  end;

  ////*** door making ***///
  if door_top = 1 then begin
    SetTile(0, start - 1,       'A');
    SetTile(0, start + gap,     '1');
    SetTile(0, start + gap + 1, 'A');
  end;

  (*
  for c := 0 to 9 do begin
    if GetTile(0, c) = '_' then begin
      SetTile(0, c, 'h');
    end;
  end;
  *)
end.
Attachments
03.png
02.png
01.png
00.png
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

Syntax highlighting of script engine for level generation is now supported. Development is slow but my final goal is to make the level generator using template and script without using level editors.
Attachments
00.png
01.png
02.png
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Infinite Adventure (Under development)

Post by salvadorc17 »

Youre now creating a full IDE for it, that is really cool, but for some users will be hard to use.
User avatar
doppelganger
Vizier
Vizier
Posts: 119
Joined: April 24th, 2015, 9:04 am
Location: India

Re: Infinite Adventure (Under development)

Post by doppelganger »

Oh man, I never thought anyone would even bother looking at what I did.
Thanks, starwindz!
Doppelgänger
Hmm.. These mortals know about me.. :evil:

Download 'Hell of A Palace' now from Popot!
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

doppelganger wrote:Oh man, I never thought anyone would even bother looking at what I did.
Thanks, starwindz!
I really thank you so much for your great work. :D
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

I have decided to make a sub-mod called 'Infinite Adventure - Descent'. This mod has levels which have 'up-to-down' rooms only. My intention for this mod developement is mainly to test and improve the script engine for room tile generation. The status will be uploaded within several weeks.
User avatar
doppelganger
Vizier
Vizier
Posts: 119
Joined: April 24th, 2015, 9:04 am
Location: India

Re: Infinite Adventure (Under development)

Post by doppelganger »

I am currently thinking on how to implement gates. When I wrote the algorithm, I thought of placing gates in the main path, and its switch in the branching rooms. But the switch shouldn't be placed too far away (making the level impossible), or too close (making that section of the level easy) to the gate. Any ideas?
Doppelgänger
Hmm.. These mortals know about me.. :evil:

Download 'Hell of A Palace' now from Popot!
User avatar
starwindz
Sultan
Sultan
Posts: 133
Joined: March 8th, 2009, 4:48 pm

Re: Infinite Adventure (Under development)

Post by starwindz »

doppelganger wrote:I am currently thinking on how to implement gates. When I wrote the algorithm, I thought of placing gates in the main path, and its switch in the branching rooms. But the switch shouldn't be placed too far away (making the level impossible), or too close (making that section of the level easy) to the gate. Any ideas?
I think that the algorithm of solution path with gates would be quite a complicated. Maybe you can get some idea from following post. It contains some research documents which have academic theory.
viewtopic.php?f=76&t=4022
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Infinite Adventure (Under development)

Post by salvadorc17 »

starwindz wrote:I have decided to make a sub-mod called 'Infinite Adventure - Descent'. This mod has levels which have 'up-to-down' rooms only. My intention for this mod developement is mainly to test and improve the script engine for room tile generation. The status will be uploaded within several weeks.
Thats weird but cool idea for mod, but still you need to add more documentation about how to use this program...
Post Reply