Jump to content
  • Advertisement
  • entries
  • comments
  • views

Snake - Cutscenes and... Thank goodness for Github!



Last weekend I was still thinking through how I wanted to store all the map, texture, and sound assets for cut-scenes.  Since then I've managed to work through the asset management, and have completed playback of the opening cut-scenes for levels in story mode.  There are a few things coding-wise that I'm not entirely happy with, but cut-scene playback does now work without issue.

  • I did attempt to refactor the rendering of maps into something re-usable for both the main level, and maps displayed during cut-scenes.  I ran into technical issues getting the shared rendering code to work, and ultimately back-tracked to duplicating the code.  Not where I want to be there for sure...  The C++ 11 std::function and lambda expressions are what I struggled with a little there.  I'm keeping a mental note to explore these further so that I won't struggle with it next time.
  • During both game-play, and cut-scene playback, maps are fully rendered every single frame.  It should be possible to instead render them to a separate texture, and just treat that fully rendered map as a sprite.  Performance hasn't been an issue, given how simple this game is.  But it's something I'll be keeping in mind for the future.


In other news, I am super relieved that I chose to use GitHub, and push to it regularly while developing this game.  I had a catastrophic failure with my main development PC, and have been able to continue working on this game without interruption on my laptop.  Phew!! 😅

Ok, it's not entirely true it has been without interruption...  I have a nasty habit of accidentally tapping the touchpad on this damned laptop while typing, and having the cursor reposition itself all over the place in my editor. 😩


With cut-scene playback effectively in the bag, it's time to start actually crafting the opening cut-scene for story mode.  Then I'll be working on adding more types of food, crafting more levels, and generally working on the actual game I want to make!  I've added everything I'll be working on as Issues over on GitHub:



Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Advertisement
  • Blog Entries

  • Similar Content

    • By Trexioas Xavier
      I want to know how would i go about making a 3D line renderer, it can be either a 3D or 2D-billboard line renderer. I don't want it to be static, i would like to add vertices to the line and extend it however i want to. To give an idea of what i want it to be/look like, Think of the Gauss Gun from Half life 1 and Half Life 2. I would want to make it reflect off the walls. I know i would need to do calculations to determine how to reflect off walls, i am just asking how would i go about making a 2D/3D line renderer. Please send me some online resources i can read upon.
      Thank you for your help!
    • By RoKabium Games
      Weapons - Magnacer is the first basic weapon that your Alien has equipped from the start. It shoots single bullets with a medium range that makes moderate damage to most enemies.
    • By Neryss
      After a quick pain to install SDL and use it with VSCode I have another "issue" ;
      I'm still following a class for beginners on openclassrooms and I can finally display a window (yay! Kinda huge achievement since for me, but the tutorial is for SDL1.2 and since I am using SDL2 I have some problems with the code used. 
      int main(int argc, char *argv[]) { SDL_Surface *ecran = NULL; // Le pointeur qui va stocker la surface de l'écran SDL_Init(SDL_INIT_VIDEO); ecran = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE); // On tente d'ouvrir une fenêtre if (ecran == NULL) // Si l'ouverture a échoué, on le note et on arrête { fprintf(stderr, "Impossible de charger le mode vidéo : %s\n", SDL_GetError()); exit(EXIT_FAILURE); } SDL_WM_SetCaption("Ma super fenêtre SDL !", NULL); pause(); SDL_Quit(); return EXIT_SUCCESS; } But as I looked on the web, it doesn't work this way anymore and all the "surface" things also changed. So all the explanations in this class is kinda out of subject for me.
      The guys who made it made some paragraphs about how surfaces work so you can create different layers and superpose them to display things. Purpose was simple here : displaying a green window.
      Is there anyone who can guide me a bit so I can understand it ? Or if there's any guide (I looked for it but didn't find any "clear" one since I'm starting
      Here's the link of my class (in french sorry guys, but if you want to take a look at the codes written here it is) : https://openclassrooms.com/fr/courses/19980-apprenez-a-programmer-en-c/17546-creation-dune-fenetre-et-de-surfaces
      Thank you guys, have aa beautiful day !
    • By CursedPhoenix
      I'm thinking on developing my own breeding game. Should be easy enougth to create the basic game mechanics and mostly the planning phase is done. I'll use "NimbleBit"s "Pocket Frogs" (https://en.wikipedia.org/wiki/Pocket_Frogs and https://play.google.com/store/apps/details?id=com.nimblebit.pocketfrogs&hl=de) as example, because my idea is in some ways quite similar. Android is the first platform I want to target, with optional expanding later to IOS and perhaps Windows.

      First Problem:
      I'm quite not sure about what language or engine I should use. I know this question is mainly based on opinion, but based on what I plan to do, is there an engine to prefer and why, or should I build it from scratch and wich language should I use then? At the moment my best bet would be on unity or python. Any suggestions here?

      Second (and most significant) Problem:
      I want to create a large amount  of - let's call it - monsters, that differs in color, pattern, color of the pattern and partly shape, but I don't get the trick behind it. So the question here is: How to create reusable monsters that differ in the above mentioned characteristics, with the lowest possible number of graphics.
      My thoughts and attempts on that topic: I looked at Pocket Frogs, and except shape they do exact the same with their frogs what I want to do. But I really don't get how they created over 38.000 (!!!) individual frogs, and the game still doesn't use that much space. I first tried to extract the graphics from the games files to puzzle together what they did. But I could not find them. However I think I figured out some parts of this secret just by looking at the frogs ingame: I think they used a basic frog model. 16 to be exact, to create 16 background frogs in all the colors. On top of them they just displayed the different patterns. But - and thats the mystery - the patterns are in different colors too and  I still dont believe they made 16*104=1664 different pattern graphics. So what trick am I missing here? Some kind of mask? Can I use the same technique to create different additional shapes for my monsters? And how did they made the feet moving. If the pattern on the feet are extra graphics, that would be another 1664 graphics.
      Any idea on how I can make this work, or on how did they make this work will be very appreciated! Thx
    • By Alessandro
      Hello, I have a spline and I'd like to generate connected tubes along the path. I've followed the method explained here  ("building two perpendicular vectors which are added to each point and scaled with sin/cos multiplied with the radius") which partially works because in some occasions the points are flipped and mess up the mesh (see screenshot), choking the tube. I'm not sure why that happens but I'd like to ask if you guys can suggest another method (maybe using matrices?), or a solution to it. Thanks for any help.

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!