Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Crimson Wizard

#1161
Engine Development / Re: AGS engine iOS port
Thu 13/11/2014 08:43:21
Someone needs to build a new version of the engine (3.3.2 at least). Is there anyone who managed to do this besides JJS? JJS does not appear on forums often lately.

Regarding Heroine Quest in particular, it uses steam plugin, which wont be working on iOS, so we need either make built in plugin stubs, or automatic stub generator feature (which I plan to work on in nearby future).
#1163
The Rumpus Room / Re: *Guess the Movie Title*
Wed 12/11/2014 12:00:03
Not "Fargo", not "The Thing", nor "A Simple Plan".

Silly hint:
Spoiler

These movies are "connected" by the notable object appearing in both. :tongue:
[close]
#1164
The Rumpus Room / Re: *Guess the Movie Title*
Tue 11/11/2014 22:15:45
Quote from: Snarky on Tue 11/11/2014 21:59:37
The connection is that Werner Herzog and Klaus Kinski also recreated an old black-and-white vampire movie, in their version of Nosferatu.
Uh, I've seen only two Herzog's movies, another being "Aguirre".
Too bad I've already posted "Aguirre" here before, so let's play the "vague connection" game to a different direction :).


#1165
The Rumpus Room / Re: *Guess the Movie Title*
Tue 11/11/2014 21:52:42
Isn't that "Fitzcaraldo"? (hope I spelled it right).
The episode where they found an abandoned train in the jungle.
#1166
The Rumpus Room / Re: Name the Game
Wed 29/10/2014 20:46:53
Pink Loom: The Arcade?
#1167
The Rumpus Room / Re: Name the Game
Tue 21/10/2014 23:17:43
Right.
#1168
The Rumpus Room / Re: Name the Game
Tue 21/10/2014 11:17:27
I am curious how fast this will be guessed with only a part of interface :)

[IMGzoom]http://i.imgur.com/GmDUOJ5.png[/imgzoom]
#1169
The Rumpus Room / Re: Name the Game
Tue 21/10/2014 09:09:49
Zeliard!
#1170
The Rumpus Room / Re: Name the Game
Wed 15/10/2014 16:14:56
LA Noir?
#1171
The Rumpus Room / Re: Name the Game
Sun 12/10/2014 13:47:00
Gosh, the 3d nowadays... I still can't get used to how fast it progresses. For a minute I could not decide whether it is a rendered 3d or painting (wtf).
#1172
The Rumpus Room / Re: Name the Game
Sun 28/09/2014 13:39:26
French investigation game? Ummm...

"Le Détective"
:D.
#1173
The Art of Dying platformer game by dkh (scroll down for source link).

AGS IRC Ceremony (with network support)
#1174
Quote from: Domithan on Sat 13/09/2014 20:29:41
This is admittedly the area that's escaping me a bit. I'm not entirely sure what putting "#" does in syntax, because I'm unable to search the lua wiki for the singular character, and I'm not sure how it's referred to. (Pound? Number sign?)

How I understood it in the context was that it would essentially return the number of entries in a particular array- (or "table" in this case) is that right?

If so, wouldn't I need to specify that there's 100 snowflakes in the declaration of the table itself?  I thought that the "for" loop was essentially assigning 100 objects to the currently empty array, the way I had it before.
Yes, now I feel confused, because I do not clearly understand what do you not understand :), so it is difficult for me to decide what to say.

What is the difference between ADDING items in a loop and USING them later?
When you add items, it won't make sense to ask table "how many items are there", because it does not know how many more you want to add. So you have to define the loop length yourself.

But when you are USING existing items (e.g. drawing them), they are already in the table, so you CAN ask table "how many items are there" by using #flake_array.
#1175
Domithan, I think the proper way to iterate existing array is to use Gurok's suggested syntax:
Code: lua

for index = 1, #snowflake

This way you won't need to keep array size in a variable, nor use numeric literals (which is a direct road to code hell).
EDIT: For the same reason I would advise to get screen size from love2d library (forgot how it is done), otherwise if you will decide to change screen resolution once, you'll have to seek through all the code and fix the sizes.


That is, when you create elements, you'll have to specify their number:
Code: lua

function spawn_flakes(number)
        for i = 0, number, 1 do
        flake_array[i] = {}
        flake_array[i].x = math.random(800)
        flake_array[i].y = math.random(600)
        end
end


But when you update them or iterate the whole array for any other reason, you should better use #array_name:
Code: lua

function flake_draw()
        for i = 0, #flake_array do
                love.graphics.draw(snspr, flake_array[i].x, flake_array[i].y)
        end
end
#1176
I think I'll post an example of adding snowflakes to existing array, to complement what Gurok said.
Code: lua

local snowflake_array = {} -- empty array of snowflakes

function create_snowflake(x, y)
    local snowflake = {} -- created snowflake object
    snowflake.x = x
    snowflake.y = y
    return snowflake
end

-- Variant with calling an object "constructor"
function create_lots_of_snowflakes()
    for i = 0, 10, 1 do
        snowflake_array[i] = create_snowflake(math.random(320), math.random(240))
    end
end

-- Same without calling a function
function create_lots_of_snowflakes_2()
    for i = 0, 10, 1 do
        snowflake_array[i] = {} -- make sure an object of index 'i' is created
        snowflake_array[i].x = math.random(320)
        snowflake_array[i].y = math.random(240)
    end
end


I am not very experienced with Lua, so can't tell if that's a good practical use of it. But I used this in number of experimental scripts.

EDIT: lol, fixed C++ comments
#1177
All the existing links are broken BTW, refering to adventuregamestudio.co.uk
#1178
Pardon me if I missed anything, but has anyone considered to add a sticky topic with a list of open-source game projects for peoples reference?
Just a suggestion, but it may be sticked somewhere in "Completed games" or "Advanced Tech forums" (along with modules, templates and plugins).

There's a wiki page, but it's rarely updated, also not sure if people will guess to look in there first:
http://www.adventuregamestudio.co.uk/wiki/Open_Source_Games

LIST UPDATED 30 June 2023:

* "A Suspicious Date": https://github.com/alkhimey/MAGS-May-19
* "AGS Awards client" (networking code!): https://bitbucket.org/agsa/ags-awards-source/src/master/
* "Aeronuts" (adventure + top-down fighter mini-game): http://shatten.sonores.de/wp-content/uploads/2014/09/AeroNuts_OSS.7z
* "Art of Dying", arcade, distributed with the source: http://www.adventuregamestudio.co.uk/forums/index.php?topic=49687.0
* "Byte of the Draculator II": http://www.vanwijst.com/games/swarm/draculator_source.zip
* "Black Cauldron Remake" distributed with the source (last time I checked): http://www.classic-retro-games.com/Black-Cauldron_118.html
* "Cargo": https://github.com/SpookyFM/Cargo
* "Cart Life", a sim / management game: https://github.com/gondur/cartlife_src
* "Cameras Tech Demo" (technical demo): https://github.com/ivan-mogilko/ags-camdemo
* "Cat Ventures" (uses python scripts for generating Rooms): https://github.com/juanmcasillas/CatVentures
* "Demo Quest", an ancient demo game, uses deprecated script: https://github.com/adventuregamestudio/ags-demo-quest
* "Dungeon Hands" (card game): https://github.com/ericoporto/DungeonHands
* "Eternally Us" distributed with the source: http://www.adventuregamestudio.co.uk/site/games/game/1303/
* "Hell Puppy" (arcade): https://github.com/VacaRoxa/dogfromhell
* "ICBM", a sim-game, distributed with the source:  https://gamejolt.com/games/icbm/57197
* "Last & Furious" (top-down racing): https://github.com/ivan-mogilko/ags-lastfurious
* "Oceanspirit Dennis", a big collection of joke games by various authors: https://www.adventuregamestudio.co.uk/forums/adventure-related-talk-chat/the-oceanspirit-omnibus/
* "Open Quest" (a simple demo game made in 2007): https://www.dropbox.com/s/3g01fjudw71xuld/OpenQuest_AGS.zip?dl=0
* "Read A Book": https://github.com/karjonas/Read-A-Book
* "Rescue Mission": https://github.com/ConeRX/RescueMission
* "Space Pool Alpha": http://www.kweepa.org/step/ags/games/SpacePool.zip
* "The 4th Wall": https://github.com/hewills/the4thwall
* "Three Little Pigs Remediation": https://github.com/KostisMon/Three-Little-Pigies--Remediation
* "Wilfred 2088": https://github.com/hewills/Wilfred-2088


Also for the record:
Spoiler
#1179
The Rumpus Room / Re: Name the Game
Wed 10/09/2014 10:26:58
Well, yes it is...
#1180
The Rumpus Room / Re: Name the Game
Wed 10/09/2014 09:47:13
>:(

Pinball Runner anyone?

Quote from: monkey424 on Wed 10/09/2014 09:02:13
But on the other hand, you don't have to take crap like that Gribbler man. You own this game! 8-)
??? Did I do something wrong?
SMF spam blocked by CleanTalk