Cave Flyer/Shooter?

Get help using Construct 2

Post » Fri May 04, 2012 11:47 am

I've gotten interested in creating a "cave flyer/shooter" type game. For those of you who haven't heard of these, the idea is that you fly through a cave. The cave is generated ahead of you as you fly through (and removed as you fly off the screen). You only fly forward and if you hit an edge, you die! I've written similar kinds of things on an old Sinclair (back when neither I nor it was old). By drawing blocks ahead but making sure the top and bottom cave walls got larger and smaller but never too small.

So my question is, has anyone done this with Construct 2? How do I draw lines in front of me and erase as I go off the screen? Capx appreciated.

Here's one in JavaScript that emulates one of the old ones. Thrust

I realize that a cave flyer isn't necessary linear, but what I verbally described was one I remember playing on the Atari 800. There's a new game on the Apple app store called Cave Shooter that describes what I'm wanting to do. Cave Shooter
Check out my HTML5 Firefox OS Game Programming and Game Playing blog at http://firefoxosgaming.blogspot.com/ and my book on Amazon at http://www.amazon.com/dp/B00IZUYIGO. I wrote a newer post on using Construct for Firefox OS at http://firefoxosgaming.blogspot.com/201 ... -game.html.
B
16
S
4
G
4
Posts: 181
Reputation: 3,837

Post » Fri May 04, 2012 1:34 pm

Interesting bit about the Sinclair, I learned BASIC programming on a Sinclair. I remember quite a few early cave shooters too, they've been around for a while. They tend to remind me of Sopwith, one of my favorite classics.

The cave shooter you first linked to could be easily done with variously shaped polygon Sprites. The second though, that'd require a bit of creative shaping of the Sprites, but fundamentally it'd be the same, just variously shaped, though textured, polygons.



B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Fri May 04, 2012 3:00 pm

Isn't that basicly sprite horizontal scrolling ?

Check the how do I FAQ for more "Scrolling / cameras" examples.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri May 04, 2012 8:43 pm

I think he is more interested in the terrain generation... I think there are a few topics/examples on that somewhere...
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat May 05, 2012 4:46 am

[QUOTE=Ugotsta] Interesting bit about the Sinclair, I learned BASIC programming on a Sinclair. I remember quite a few early cave shooters too, they've been around for a while. They tend to remind me of Sopwith, one of my favorite classics.

The cave shooter you first linked to could be easily done with variously shaped polygon Sprites. The second though, that'd require a bit of creative shaping of the Sprites, but fundamentally it'd be the same, just variously shaped, though textured, polygons.
[/QUOTE]

I wrote several games on the Sinclair, even a few that used machine-language routines typed into comment lines. Amazing what could be done in 1K!

Polygons! Yes, I'll investigate!
Check out my HTML5 Firefox OS Game Programming and Game Playing blog at http://firefoxosgaming.blogspot.com/ and my book on Amazon at http://www.amazon.com/dp/B00IZUYIGO. I wrote a newer post on using Construct for Firefox OS at http://firefoxosgaming.blogspot.com/201 ... -game.html.
B
16
S
4
G
4
Posts: 181
Reputation: 3,837

Post » Sat May 05, 2012 4:46 am

[QUOTE=sqiddster] I think he is more interested in the terrain generation... I think there are a few topics/examples on that somewhere...[/QUOTE]

Terrain generation. Exactly. Not blocks, but jagged lines that are generated each move!
Check out my HTML5 Firefox OS Game Programming and Game Playing blog at http://firefoxosgaming.blogspot.com/ and my book on Amazon at http://www.amazon.com/dp/B00IZUYIGO. I wrote a newer post on using Construct for Firefox OS at http://firefoxosgaming.blogspot.com/201 ... -game.html.
B
16
S
4
G
4
Posts: 181
Reputation: 3,837

Post » Sat May 05, 2012 10:31 pm

I don't think you can draw lines with construct, like in these games, but you can do it with slightly larger objects, say, 8 pixels in width.

Now let's say you have a window that is 640px wide with these "wall" objects on the top and bottom scrolling left, that's 160 objects, which I guess are no problem for HTML5
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Sun May 06, 2012 12:17 am

[QUOTE=7Soul] I don't think you can draw lines with construct, like in these games, but you can do it with slightly larger objects, say, 8 pixels in width.

Now let's say you have a window that is 640px wide with these "wall" objects on the top and bottom scrolling left, that's 160 objects, which I guess are no problem for HTML5[/QUOTE]

Sounds like I can go with oddly-shaped sprites and have fun.

I wonder if the SVG plugin could draw some lines for me?

I do love Construct 2!
Check out my HTML5 Firefox OS Game Programming and Game Playing blog at http://firefoxosgaming.blogspot.com/ and my book on Amazon at http://www.amazon.com/dp/B00IZUYIGO. I wrote a newer post on using Construct for Firefox OS at http://firefoxosgaming.blogspot.com/201 ... -game.html.
B
16
S
4
G
4
Posts: 181
Reputation: 3,837

Post » Sun May 06, 2012 5:19 am

You could draw lines with either the SVG Canvas or the Canvas plugin, but the problem is that you won't have collision detection with them, not currently at least.

I think it's best done with Sprites for now.
B
126
S
7
G
4
Posts: 185
Reputation: 7,233


Return to How do I....?

Who is online

Users browsing this forum: suicidenutella, Vallar and 0 guests

cron