Browsing 'Programming': Posts from Game Design and Programming

[5SD033]Blog 4 – Improved Collision

By: Martin Carlsson
Group: 10
This week I have worked on a few different things, the least boring one is probably the improvements to the Collision System.
Previously I used Circle vs Box collision, however due to the way the harpoon is supposed to work versus the jellyfish(where the entire hilt serves as a collision box versus the tentacles), as well as the general way the harpoon works(the harpoon is almost always in a rotated state!), this resulted in inaccurate and poor collision.
I […]

/ Comments Off on [5SD033]Blog 4 – Improved Collision
Program: Programming

[5SD033]Blog 4 – Improved Collision

By: Martin Carlsson
Group: 10
This week I have worked on a few different things, the least boring one is probably the improvements to the Collision System.
Previously I used Circle vs Box collision, however due to the way the harpoon is supposed to work versus the jellyfish(where the entire hilt serves as a collision box versus the tentacles), as well as the general way the harpoon works(the harpoon is almost always in a rotated state!), this resulted in inaccurate and poor collision.
I […]

/ Comments Off on [5SD033]Blog 4 – Improved Collision
Program: Programming

Code optimization

Welcome dear readers!
This week I’m going to talk about optimization which is highly necessary but is usually overlooked by us unschooled programmers. I will optimize our code structure by removing unnecessary code strips, moving code for more efficient reading from our program as well as reading and understanding from the coder.
Our group have only inexperienced programmers so even though we have tried to make an efficient engine we ended up with several hiccups and since we had time pressure to […]

/ Comments Off on Code optimization
Program: Programming

Code optimization

Welcome dear readers!
This week I’m going to talk about optimization which is highly necessary but is usually overlooked by us unschooled programmers. I will optimize our code structure by removing unnecessary code strips, moving code for more efficient reading from our program as well as reading and understanding from the coder.
Our group have only inexperienced programmers so even though we have tried to make an efficient engine we ended up with several hiccups and since we had time pressure to […]

/ Comments Off on Code optimization
Program: Programming

A little this and a little that

This week has been a lot about getting the last things working and has led me to help my fellow programmers a lot as well as working on my own things. The things I have been working on and helping with has been ranging from getting a mouse to work on the menu to creating an enemy to tinkering with the background. Writing a post about one artifact will be a bit harder since I have been involved with a […]

/ Comments Off on A little this and a little that
Program: Programming

A little this and a little that

This week has been a lot about getting the last things working and has led me to help my fellow programmers a lot as well as working on my own things. The things I have been working on and helping with has been ranging from getting a mouse to work on the menu to creating an enemy to tinkering with the background. Writing a post about one artifact will be a bit harder since I have been involved with a […]

/ Comments Off on A little this and a little that
Program: Programming

5SD033 v 7

Vi börjar nära oss sista milstolpen innan spelets produktion slut nämligen beta presentationen. Veckan som har gått har varit full av händelser både bra och dåliga. i måndags var det pre-beta spel testning och vårt spel mötte inte den standarden och mål som jag och övriga gruppen hade satt. På grund av omständigheter efter alfan var vi tvungna att programmera om i princip hela spelets struktur för att inte bara få ett fullt fungerande spel utan också ett spel med […]

/ Comments Off on 5SD033 v 7
Program: Programming

5SD033 v 7

Vi börjar nära oss sista milstolpen innan spelets produktion slut nämligen beta presentationen. Veckan som har gått har varit full av händelser både bra och dåliga. i måndags var det pre-beta spel testning och vårt spel mötte inte den standarden och mål som jag och övriga gruppen hade satt. På grund av omständigheter efter alfan var vi tvungna att programmera om i princip hela spelets struktur för att inte bara få ett fullt fungerande spel utan också ett spel med […]

/ Comments Off on 5SD033 v 7
Program: Programming

Vecka sex: Highscore

Denna vecka har jag arbetat med vårt highscore system. Vad jag har gjort är att visa upp för spelaren de topp fem spelarnas poäng och namn. Detta har då gjorts med hjälp utav en textfil.
Textfilen
Jag började det hela med att skapa en textfil som innehåller namn samt poäng. Denna fil är då tänkt att innehålla all data som är för highscore. Så först har vi en Highscore state klass som spelaren kommer till om hen vill se de fem bästa spelarna som har […]

/ Comments Off on Vecka sex: Highscore
Program: Programming

Vecka sex: Highscore

Denna vecka har jag arbetat med vårt highscore system. Vad jag har gjort är att visa upp för spelaren de topp fem spelarnas poäng och namn. Detta har då gjorts med hjälp utav en textfil.
Textfilen
Jag började det hela med att skapa en textfil som innehåller namn samt poäng. Denna fil är då tänkt att innehålla all data som är för highscore. Så först har vi en Highscore state klass som spelaren kommer till om hen vill se de fem bästa spelarna som har […]

/ Comments Off on Vecka sex: Highscore
Program: Programming

Animations

Betan nalkas och grupp 6 kämpar vidare för att klara målen.
Förra veckan tillbringades till att lägga in animationer, ljud och hitboxes för kartans väggar. Denna bloggpost kommer handla om animationerna som jag lagt in i programmet och den svarar på frågorna hur och varför jag gjort som jag gjort.
Vi hade inte tid att lägga in animationerna till alla assets i spelet i ett tidigare stadie men jag har kollat lite snabbt igenom tutorialen på githubs hemsida för att kunna uppskatta hur mycket tid det […]

/ Comments Off on Animations
Program: Programming

Animations

Betan nalkas och grupp 6 kämpar vidare för att klara målen.
Förra veckan tillbringades till att lägga in animationer, ljud och hitboxes för kartans väggar. Denna bloggpost kommer handla om animationerna som jag lagt in i programmet och den svarar på frågorna hur och varför jag gjort som jag gjort.
Vi hade inte tid att lägga in animationerna till alla assets i spelet i ett tidigare stadie men jag har kollat lite snabbt igenom tutorialen på githubs hemsida för att kunna uppskatta hur mycket tid det […]

/ Comments Off on Animations
Program: Programming

The Minimap

When you have a playing field that’s large enough so the screen barely covers 1/5th of the map, you’re going to have issues with knowing where the enemies, obstacles or what you now have is coming from. When you’re also limited in how fast you can check all directions, it’s just going to be an frustrating experience unless you have some other way to see where the enemies are coming from.

/ Comments Off on The Minimap
Program: Programming

The Minimap

When you have a playing field that’s large enough so the screen barely covers 1/5th of the map, you’re going to have issues with knowing where the enemies, obstacles or what you now have is coming from. When you’re also limited in how fast you can check all directions, it’s just going to be an frustrating experience unless you have some other way to see where the enemies are coming from.

/ Comments Off on The Minimap
Program: Programming

The Minimap

When you have a playing field that’s large enough so the screen barely covers 1/5th of the map, you’re going to have issues with knowing where the enemies, obstacles or what you now have is coming from. When you’re also limited in how fast you can check all directions, it’s just going to be an frustrating experience unless you have some other way to see where the enemies are coming from.

/ Comments Off on The Minimap
Program: Programming

The Minimap

When you have a playing field that’s large enough so the screen barely covers 1/5th of the map, you’re going to have issues with knowing where the enemies, obstacles or what you now have is coming from. When you’re also limited in how fast you can check all directions, it’s just going to be an frustrating experience unless you have some other way to see where the enemies are coming from.

/ Comments Off on The Minimap
Program: Programming

Implementation of Animation Code

This week I have mostly been implementing animation for several sprites and special effects, using an animation code I made beforehand. I have previously used this code only to switch singular frames on sprites, but, as I am aware of now, it is a bit more difficult to cycle through animation frames using this code unless they are in a specific order.
Overall, the function is fairly simple and looks something like this:
inline void Animation(sf::Sprite* p_sprite, sf::Vector2i p_vectorI, int p_xMin, int […]

/ Comments Off on Implementation of Animation Code
Program: Programming

Implementation of Animation Code

This week I have mostly been implementing animation for several sprites and special effects, using an animation code I made beforehand. I have previously used this code only to switch singular frames on sprites, but, as I am aware of now, it is a bit more difficult to cycle through animation frames using this code unless they are in a specific order.
Overall, the function is fairly simple and looks something like this:
inline void Animation(sf::Sprite* p_sprite, sf::Vector2i p_vectorI, int p_xMin, int […]

/ Comments Off on Implementation of Animation Code
Program: Programming

Kommentar till G.12

Tjena gubbar, har kikat igenom eran repository och jag ser att ni inte lagt till något i karaktärens .H eller .CPP fil. Men samtidigt har ni en rätt kort kod och jag kan för tillfället inte testa den då det är flera error i koden. Men av det jag har förstått, nu kollar jag på kollissioner. Är att ni använder er av X-koordinaten av spelare och X-koordinat av fiende för att kolla kollission. Detta betyder att Spriten för dessa båda […]

/ Comments Off on Kommentar till G.12
Program: Programming

Kommentar till G.12

Tjena gubbar, har kikat igenom eran repository och jag ser att ni inte lagt till något i karaktärens .H eller .CPP fil. Men samtidigt har ni en rätt kort kod och jag kan för tillfället inte testa den då det är flera error i koden. Men av det jag har förstått, nu kollar jag på kollissioner. Är att ni använder er av X-koordinaten av spelare och X-koordinat av fiende för att kolla kollission. Detta betyder att Spriten för dessa båda […]

/ Comments Off on Kommentar till G.12
Program: Programming

Vecka 4

Den här veckan har handlat mycket om att få färdigt spelet i ett spelbart skick tills betan. De mesta finns nu i spelet men det känns fortfarande som det finns massor som behöver fixas, sättas ihop, finslipas etc. Något som knappt tidigare existerat och som vi fått mycket kritik för att vi inte prioriterat är feedbacken i spelet, d.v.s. att det händer saker men det är mycket svårt för spelaren att uppfatta detta.
Förutom att fixa allt ljud så behövde […]

/ Comments Off on Vecka 4
Program: Programming

Vecka 4

Den här veckan har handlat mycket om att få färdigt spelet i ett spelbart skick tills betan. De mesta finns nu i spelet men det känns fortfarande som det finns massor som behöver fixas, sättas ihop, finslipas etc. Något som knappt tidigare existerat och som vi fått mycket kritik för att vi inte prioriterat är feedbacken i spelet, d.v.s. att det händer saker men det är mycket svårt för spelaren att uppfatta detta.
Förutom att fixa allt ljud så behövde […]

/ Comments Off on Vecka 4
Program: Programming

The Minimap

When you have a playing field that’s large enough so the screen barely covers 1/5th of the map, you’re going to have issues with knowing where the enemies, obstacles or what you now have is coming from. When you’re also limited in how fast you can check all directions, it’s just going to be an frustrating experience unless you have some other way to see where the enemies are coming from.
The most obvious and straight-forward to this is a minimap. […]

/ Comments Off on The Minimap
Program: Programming

The Minimap

When you have a playing field that’s large enough so the screen barely covers 1/5th of the map, you’re going to have issues with knowing where the enemies, obstacles or what you now have is coming from. When you’re also limited in how fast you can check all directions, it’s just going to be an frustrating experience unless you have some other way to see where the enemies are coming from.
The most obvious and straight-forward to this is a minimap. […]

/ Comments Off on The Minimap
Program: Programming