Work in Progress

Star Warp

8

Tinycloud778 2019-04-02 21:06 (Edited)

This is an experiment on a shooter with the viewpoint of the back of a ship

Credits to:
Desbyc
Timo

Star Warp.nx | Open in app
2019-04-25 18:41
Star Warp(10).nx | Open in app
2019-04-06 22:11
Star Warp(9).nx | Open in app
2019-04-06 20:28
Star Warp(9).nx | Open in app
2019-04-06 12:21
Star Warp(9).nx | Open in app
2019-04-05 19:29
Star Warp(8).nx | Open in app
2019-04-05 18:37
Star Warp(7).nx | Open in app
2019-04-04 21:39
Star Warp(6).nx | Open in app
2019-04-04 21:23
Star Warp(5).nx | Open in app
2019-04-04 17:17
Star Warp(4).nx | Open in app
2019-04-04 15:57
Star Warp(2).nx | Open in app
2019-04-03 11:15
Star Warp(1).nx | Open in app
2019-04-02 21:06

was8bit 2019-04-03 04:25

Cool :D


Timo 2019-04-03 08:35

Please try to finish this, it would be cool :) Best is to keep the gameplay simple and add the basics (title, game over, score...). Later you can still add advanced ideas if you want to :)


Tinycloud778 2019-04-03 10:54

Ok thanks


Timo 2019-04-03 11:40

You can use
IF BUTTON TAP(0,0)
instead of
IF BUTTON(0,0)
for shooting.

With TAP the command is only executed once for each button click and not as long as the button is pressed.

No critic, I just want to help, it looks cool :)


was8bit 2019-04-03 14:22

"IF" you want a controlled rapid fire with the fire button held,,and avoid having to constantly tapping the fire button, here's how I do that..

Change IF BUTTON(0,0) to

IF BUTTON(0,0) AND IFIRE=0 THEN
IFIRE=20

Adjust the 20 to your liking as this adjusts the speed of the rapid fire.. then you also need this code to make it work ... add it above your main LOOP

IF IFIRE>0 THEN IFIRE=IFIRE-1
WAIT VBL
LOOP

So since the loop loops 60 time per second, 20 will fire every 20/60 or 3 times per second... if you set IFIRE=60 it will auto fire once every second, which is rather slow


desbyc 2019-04-03 17:37

A little bit grafix, a little bit optimization. 😀

RANDOMIZE TIMER
GAMEPAD 1

SPR=1
MOVER=0
MOVEL=0

XC=-20
YC=60

X=64
Y=80

PX=10
PY=5

DIM HX(20)
DIM HY(20)
DIM HS(20)
DIM HASP(20)

FOR I=0 TO 20
HX(I)=INT(RND*153)
HY(I)=80+INT(RND*70)
HS(I)=48
HASP(I)=0.5
NEXT I

SPRITE.A 5,(0,0,0,0,1)
SPRITE.A 6,(4,0,0,0,1)

BG COPY 0,0,20,16 TO 0,0

DO
REM ---SPRITES---
SPRITE 1,X,Y,SPR


SPRITE 5,PX,PY,10
PX=PX+0.01
IF PX>160 THEN PX=-20
SPRITE 6,XC,YC,17
XC=XC+0.1
IF XC>160 THEN XC=-20

FOR I=0 TO 3

IF HY(I)>85 THEN
HS(I)=49
END IF

IF HY(I)>105 THEN
HS(I)=50
END IF

IF HY(I)>115 THEN
HS(I)=51
END IF

IF HY(I)>125 THEN
HS(I)=52
END IF

IF HY(I)>130 THEN
HX(I)=INT(RND*153)
HY(I)=80
HS(I)=48
END IF

HY(I)=HY(I)+HASP(I)

SPRITE I+10,HX(I),HY(I),HS(I)

NEXT I

REM MOVEMENT
IF LEFT(0) THEN MOVEL=1 ELSE MOVEL=0
IF RIGHT(0) THEN MOVER=1 ELSE MOVER=0
IF DOWN(0) AND Y<120 THEN Y=Y+0.3
IF UP(0) AND Y>70 THEN Y=Y-0.6

IF MOVEL=0 AND MOVER=0 THEN SPR=1

IF MOVEL=1 AND MOVER=0 THEN
SPR=3
X=X-0.8
END IF

IF MOVER=1 AND MOVEL=0 THEN
SPR=2
X=X+0.8
END IF


WAIT VBL
LOOP




#1:MAIN PALETTES
0A07343800383400003C0C00003F3C00
003F2A15003F2A15003F2A15003F2A15

#2:MAIN CHARACTERS
00000000000000000000000000000000
00000000187EE7240000000000001818
0000C0F078181C0C0000000000606000
0000030F1E1838300000000000060600
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
000000000007FFFE001F3F3F7F7F7F7F
000000003CFEE20C00E0F0F8F8FCFCF0
00004100000000800000000000000000
00002000000000020000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000071F7EE1000000000000011E
00000000C0FCBE82000000000000407C
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
C07F0000000000003F007F1F0F000000
F0800000000000000878F0E080000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
84721E07000000007B1F070000000000
5C10E0C000000000A0E0C00000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000038000000
00000000000000000000003C663C0000
00000000000000000000003C427E3C00
00000000000000000000007EC3FF7E00
000000000000000000007EC3C3FF7E00

#3:MAIN BG
00001410000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400040004000400040004000400
04000400


Tinycloud778 2019-04-03 19:54

Thanks desbyc
I’ll use it for my next update


was8bit 2019-04-05 00:31

Coming along nicely :)


Tinycloud778 2019-04-05 00:57

Thank you very much


Timo 2019-04-05 09:35 (Edited)

You can use a different color palette for the texts using the ATTR command.

And if you set the "priority" attribute for the text, it will appear in front of the sprites (planets etc.)


desbyc 2019-04-05 13:12

Some ideas

Star Warp(1).nx | Open in app
2019-04-05 13:12

Tinycloud778 2019-04-05 18:38

Ok thanks


Tinycloud778 2019-04-05 18:38

I will use this for the next update if you don’t mind


desbyc 2019-04-05 19:08

Do what you want😊


Tinycloud778 2019-04-05 19:29

Ok thank you


was8bit 2019-04-05 19:56

Coolness :D


Tinycloud778 2019-04-06 12:20

Thanks


Timo 2019-04-06 12:56

This is like a battle of the background color, Tinycloud VS desbyc ;)


Tinycloud778 2019-04-06 20:25

He he he


Tinycloud778 2019-04-06 20:31

— Please post your high scores on this game so I can write you on the scoreboard —
(Just to see how far you could go, and this is not to show who’s better it’s just to have fun)


desbyc 2019-04-07 07:23

36😔


Tinycloud778 2019-04-07 17:37

The game is pretty hard


Timo 2019-04-10 05:56

I added the background to the title and game over screens, I think it looks better. And I moved some PRINTs out of the loops to optimize it.

Star Warp(11T).nx | Open in app
2019-04-10 05:56

Tinycloud778 2019-04-10 11:21

Thanks


CamleeW 2019-04-25 11:33

Woah dude, this is epic! I can’t even make a sprite walk. Keep up the good work!


desbyc 2019-04-25 14:18

48....😏


Tinycloud778 2019-04-25 18:40

@CamleeW thank you very much


Tinycloud778 2019-04-25 18:40

Thanks timo


Log in to reply.