mdkdue Posted December 19, 2022 Share Posted December 19, 2022 Hi everyone Can someone please point me in the direction of some example code to generate a simple title screen where i can simply display an image and have the option to 'Press A/B/C etc to start' and then have it run my program? At the moment when i launch my project it just jumps straight in, it would be nice to be presented with the name. I looked in the guides and couldnt see anything to help me. Thanks in advance. Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/ Share on other sites More sharing options...
+Gemintronic Posted December 21, 2022 Share Posted December 21, 2022 There's a title screen in the doger project that comes with JagStudio Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5175824 Share on other sites More sharing options...
mdkdue Posted December 22, 2022 Author Share Posted December 22, 2022 18 hours ago, Gemintronic said: There's a title screen in the doger project that comes with JagStudio Yes I found that, thank you 3 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5176147 Share on other sites More sharing options...
Jag_Mag Posted December 31, 2022 Share Posted December 31, 2022 (edited) screens.7z Edited December 31, 2022 by Jag_Mag 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5180865 Share on other sites More sharing options...
mdkdue Posted December 31, 2022 Author Share Posted December 31, 2022 15 hours ago, Jag_Mag said: screens.7z 102.39 kB · 0 downloads Thank you! I shall see what I can do with this 😀 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5181186 Share on other sites More sharing options...
Jag_Mag Posted January 2, 2023 Share Posted January 2, 2023 Can we see your project mdkdue? Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5182149 Share on other sites More sharing options...
mdkdue Posted January 2, 2023 Author Share Posted January 2, 2023 6 hours ago, Jag_Mag said: Can we see your project mdkdue? There really is not much to see at the moment to be honest, just a background and some sprites. I am using the example projects as my starting point so I guess you could just call it a reskin. 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5182281 Share on other sites More sharing options...
mdkdue Posted January 4, 2023 Author Share Posted January 4, 2023 On 12/31/2022 at 2:01 AM, Jag_Mag said: screens.7z 102.39 kB · 1 download Thanks for this. I had a look, and whilst i understand what it is doing with regards to the main game loop and calling the subroutines, when i put this into my .bas file as the first thing in the game loop its just being ignored. Time for me to accept i am just not clever enough for this and give up i think. 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5183933 Share on other sites More sharing options...
Jag_Mag Posted January 4, 2023 Share Posted January 4, 2023 (edited) If you feel like posting your code we can see what's happening,or send private if not comfortable posting on the forum. Edited January 4, 2023 by Jag_Mag Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5183958 Share on other sites More sharing options...
mdkdue Posted January 4, 2023 Author Share Posted January 4, 2023 (edited) Thank you. I am not near my pc right now, but I have been using the ‘shootbang’ example project as my starting point, so it would essentially be inserting the title screen into that .bas file. I figured it needs to go above where it calls the routine to move enemies? Edited January 4, 2023 by mdkdue Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5184061 Share on other sites More sharing options...
Jag_Mag Posted January 6, 2023 Share Posted January 6, 2023 (edited) You'll need to change a few things around in shootbang in order to display title screen ect,have you tried to create a project on your own yet?title screen,game screen and a sprite or two?If you want I started this in basic incase there is a JagJam 2023,you're welcome to go through my code. Edited January 6, 2023 by Jag_Mag Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5185630 Share on other sites More sharing options...
Jag_Mag Posted January 6, 2023 Share Posted January 6, 2023 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5185691 Share on other sites More sharing options...
mdkdue Posted January 6, 2023 Author Share Posted January 6, 2023 10 minutes ago, Jag_Mag said: Oh wow, this is great! Very cool! Yes I did try that initially, just using the beginners guide in Jagstudio. I managed to change the background and add a couple of sprites. I am open to any suggestions, and really appreciate them, so anything you can share with me would be great. Thank you so much. 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5185695 Share on other sites More sharing options...
Clint Thompson Posted January 7, 2023 Share Posted January 7, 2023 3 hours ago, mdkdue said: I am open to any suggestions... Just keep at it! 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5185784 Share on other sites More sharing options...
Jag_Mag Posted January 8, 2023 Share Posted January 8, 2023 On 1/6/2023 at 4:20 PM, mdkdue said: Oh wow, this is great! Very cool! It's coming along 2 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5186346 Share on other sites More sharing options...
Jag_Mag Posted January 13, 2023 Share Posted January 13, 2023 (edited) How is the learning coming along mdkdue?I can do space invaders in parts if you want to follow along,soundfx,music,collision ect.. Source and assets invaders.7z Edited January 13, 2023 by Jag_Mag 2 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5189827 Share on other sites More sharing options...
mdkdue Posted January 14, 2023 Author Share Posted January 14, 2023 15 hours ago, Jag_Mag said: How is the learning coming along mdkdue?I can do space invaders in parts if you want to follow along,soundfx,music,collision ect.. Source and assets invaders.7z 1.49 MB · 1 download I haven’t looked at it in the last week or so as I kinda lost hope , realised it was probably beyond my brain capacity 🤣 But yes please ! Any help you can give would be greatly appreciated. Im gonna check this out. 1 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5190124 Share on other sites More sharing options...
mdkdue Posted January 16, 2023 Author Share Posted January 16, 2023 On 1/13/2023 at 9:42 PM, Jag_Mag said: How is the learning coming along mdkdue?I can do space invaders in parts if you want to follow along,soundfx,music,collision ect.. Source and assets invaders.7z 1.49 MB · 3 downloads Been looking at this, trying to get my head round the main game loop and all the sub routines. Its making a little more sense now. 2 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5191115 Share on other sites More sharing options...
Jag_Mag Posted January 16, 2023 Share Posted January 16, 2023 (edited) It's great things are making sense to you,good job mdkdue! Source and assets invaders.7z You can always make it pretty for Jaguar later like this remake. Edited January 16, 2023 by Jag_Mag 3 Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5191151 Share on other sites More sharing options...
Gedalya Posted September 23, 2023 Share Posted September 23, 2023 @Jag_Mag, the screens files are great, thank you for sharing. I've been tinkering with it and have a few questions if you have the bandwidth. I have tried replacing the background image with a new one: Instead of seeing the screen as I am expecting, I see the following: In addition to the screen being off center there is issues with the color I am noticing. This is my entry in rapinit.s: ; TITLE dc.l 1 ; (REPEAT COUNTER) ; Create this many objects of this type (or 1 for a single object) dc.l is_active ; sprite_active ; sprite active flag dc.w 0,0 ; sprite_x ; 16.16 x value to position at dc.w 0,0 ; sprite_y ; 16.16 y value to position at dc.w 0,0 ; sprite_xadd ; 16.16 x addition for sprite movement dc.w 0,0 ; sprite_yadd ; 16.16 y addition for sprite movement dc.l 352 ; sprite_width ; width of sprite (in pixels) dc.l 240 ; sprite_height ; height of sprite (in pixels) dc.l is_normal ; sprite_flip ; flag for mirroring data left<>right dc.l 0 ; sprite_coffx ; x offset from center for collision box center dc.l 0 ; sprite_coffy ; y offset from center for collision box center dc.l 352/2 ; sprite_hbox ; width of collision box dc.l 240/2 ; sprite_vbox ; height of collision box dc.l TITLE ; sprite_gfxbase ; start of bitmap data dc.l 8 ; (BIT DEPTH) ; bitmap depth (1/2/4/8/16/24) dc.l is_RGB ; (CRY/RGB) ; bitmap GFX type dc.l is_opaque ; (TRANSPARENCY) ; bitmap TRANS flag dc.l 352*240 ; sprite_framesz ; size per frame in bytes of sprite data dc.l 352 ; sprite_bytewid ; width in bytes of one line of sprite data dc.l 0 ; sprite_animspd ; frame delay between animation changes dc.l 0 ; sprite_maxframe ; number of frames in animation chain dc.l ani_rept ; sprite_animloop ; repeat or play once dc.l edge_wrap ; sprite_wrap ; wrap on screen exit, or remove dc.l spr_inf ; sprite_timer ; frames sprite is active for (or spr_inf) dc.l spr_linear ; sprite_track ; use 16.16 xadd/yadd or point to 16.16 x/y table dc.l 0 ; sprite_tracktop ; pointer to loop point in track table (if used) dc.l spr_unscale ; sprite_scaled ; flag for scaleable object dc.l %00100000 ; sprite_scale_x ; x scale factor (if scaled) dc.l %00100000 ; sprite_scale_y ; y scale factor (if scaled) dc.l -1 ; sprite_was_hit ; initially flagged as not hit dc.l no_CLUT ; sprite_CLUT ; no_CLUT (8/16/24 bit) or CLUT (1/2/4 bit) dc.l cant_hit ; sprite_colchk ; if sprite can collide with another dc.l cd_keep ; sprite_remhit ; flag to remove (or keep) on collision dc.l single ; sprite_bboxlink ; single for normal bounding box, else pointer to table dc.l 1 ; sprite_hitpoint ; Hitpoints before death dc.l 2 ; sprite_damage ; Hitpoints deducted from target dc.l 352 ; sprite_gwidth ; GFX width (of data) Any thoughts on either issue? Perhaps someone else has some insight? Thanks in advance. I'm sure these are basic questions so if there is a reference that would help I would appreciate being pointed to it. This is the background file in question: start-screen.bmp Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5322126 Share on other sites More sharing options...
Gedalya Posted September 24, 2023 Share Posted September 24, 2023 I believe after continuing to work with this that the issue is the formatting of the bitmap image. Are there any tutorials or references for creating a bitmap image that is suitable for use? Quote Link to comment https://forums.atariage.com/topic/345243-simple-title-screen/#findComment-5322650 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.