Darkhog Posted May 26 Share Posted May 26 Is there a DCS+ template/boilerplate code that EVERY DCS+ game has to have? Basically a DCS+ "hello world" I can use to speed up development of my games. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted May 26 Share Posted May 26 What is DCS+? The only plus I know about is DPC+ and it has a template. Quote Link to comment Share on other sites More sharing options...
Darkhog Posted May 26 Author Share Posted May 26 Sorry, new to this and keep misspelling stuff. Anyway, I wanted an even simpler template, with no extra variables assigned beyond what's absolutely necessary, empty playfield/sprites and empty main loop. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted May 26 Share Posted May 26 5 minutes ago, Darkhog said: Sorry, new to this and keep misspelling stuff. Anyway, I wanted an even simpler template, with no extra variables assigned beyond what's absolutely necessary, empty playfield/sprites and empty main loop. See if this is stripped enough: ;**************************************************************** ; ; This program uses the DPC+ kernel. ; set kernel DPC+ ;**************************************************************** ; ; Standard used in North America and most of South America. ; set tv ntsc ;**************************************************************** ; ; Helps player1 sprites register a collision with the playfield. ; set kernel_options collision(player1,playfield) goto __Bank_2 bank2 bank 2 temp1=temp1 __Bank_2 ;*************************************************************** ;*************************************************************** ; ; Program Start/Restart ; __Start_Restart ;*************************************************************** ; ; Mutes volume of both sound channels. ; AUDV0 = 0 : AUDV1 = 0 ;*************************************************************** ; ; Clears all normal variables and the extra 9. ; a = 0 : b = 0 : c = 0 : d = 0 : e = 0 : f = 0 : g = 0 : h = 0 : i = 0 j = 0 : k = 0 : l = 0 : m = 0 : n = 0 : o = 0 : p = 0 : q = 0 : r = 0 s = 0 : t = 0 : u = 0 : v = 0 : w = 0 : x = 0 : y = 0 : z = 0 var0 = 0 : var1 = 0 : var2 = 0 : var3 = 0 : var4 = 0 var5 = 0 : var6 = 0 : var7 = 0 : var8 = 0 ;*************************************************************** ; ; Score colors. ; scorecolors: $1E $1C $1A $1A $18 $18 $16 $16 end ;*************************************************************** ;*************************************************************** ; ; Main Loop ; __Main_Loop ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ;``````````````````````````````````````````````````````````````` ; ; Gameplay logic goes here. ; ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ;``````````````````````````````````````````````````````````````` ;*************************************************************** ; ; 88 rows that are 2 scanlines high. ; DF6FRACINC = 255 ; Background colors. DF4FRACINC = 255 ; Playfield colors. DF0FRACINC = 128 ; Column 0. DF1FRACINC = 128 ; Column 1. DF2FRACINC = 128 ; Column 2. DF3FRACINC = 128 ; Column 3. ;*************************************************************** ; ; Displays the screen. ; drawscreen goto __Main_Loop bank 3 temp1=temp1 bank 4 temp1=temp1 bank 5 temp1=temp1 bank 6 temp1=temp1 1 Quote Link to comment Share on other sites More sharing options...
Darkhog Posted May 26 Author Share Posted May 26 Seems like it, thank you! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.