Search found 13 matches
- January 26th, 2018, 4:47 pm
- Forum: Everything
- Topic: My first game
- Replies: 3
- Views: 2050
Re: My first game
Cool game! I was 2 blue tiles away from beating it solo on my first try. The only problem I had was that both balls came towards the blue player at the same time on one end of the screen, so I could only save 1 ball Nice work though!
- December 18th, 2017, 3:34 pm
- Forum: Everything
- Topic: Intermediate Homework 4 *UPDATED*
- Replies: 10
- Views: 3933
Re: Intermediate Homework 4 *UPDATED*
Hey. I cleaned the code up and implemented the save/load function. Mind taking a look?chili wrote:Noice, got a repo. Not sure if I can add anything that papa hasn't already covered, but I will take a look in a day or two and get back.
https://github.com/BerlingSwe/Homework-4
- December 14th, 2017, 9:58 am
- Forum: Everything
- Topic: Intermediate Homework 4 *UPDATED*
- Replies: 10
- Views: 3933
Re: Intermediate Homework 4 *UPDATED*
If you are talking about the global tomato::Database db; then I first had it inside my Menu function but when it was there, every time I added a new name it would delete itself as soon as I exitet the menu funcition. At this point I was using recursion so looking back I’m pretty sure that’s the reas...
- December 13th, 2017, 5:51 pm
- Forum: Everything
- Topic: Intermediate Homework 4 *UPDATED*
- Replies: 10
- Views: 3933
Re: Intermediate Homework 4
Alright. Here is the initial solution in Git: https://github.com/BerlingSwe/OLD_Homework4 And here is my reworked solution using classes: https://github.com/BerlingSwe/Homework-4 In my first solution, I did not use classes because I didn't really feel confident enough to use them and found it easier...
- December 12th, 2017, 10:51 pm
- Forum: Everything
- Topic: Intermediate Homework 4 *UPDATED*
- Replies: 10
- Views: 3933
Intermediate Homework 4 *UPDATED*
Hello. I spent an hour or two doing the homework for tutorial 4 of intermediate series and was wondering if someone more experienced than me could take a look at my solution and give feedback. Thank you in advance. #include "stdafx.h" #include <conio.h> #include <fstream> //Global variables int inde...
- September 9th, 2017, 2:17 pm
- Forum: Everything
- Topic: Toggle problem
- Replies: 4
- Views: 2648
Re: Toggle problem
Not sure if that wiki page helped you, but my solution was to run it when mouse is depressed instead of pressed. Can be done by keeping track of bool. e.g. if( wnd.mouse.LeftIsPressed() ) { wasPressed = true; } else { if( wasPressed ) { // do code } wasPressed = false; } Thank you kind sir
- September 9th, 2017, 6:17 am
- Forum: Everything
- Topic: Toggle problem
- Replies: 4
- Views: 2648
Toggle problem
Hi. I am in the process of expanding the original chili framework to support GUI (menus, buttons etc) But there is one small thing that has been bugging me for days and I have tried various different ways to solve it but none have worked. if (mouse.LeftIsPressed()) { isClicked = !isClicked; } Basica...
- August 3rd, 2017, 8:14 am
- Forum: Everything
- Topic: Super Awesome Simple Box Game (Cool!)
- Replies: 3
- Views: 1798
- August 1st, 2017, 5:17 pm
- Forum: Everything
- Topic: Super Awesome Simple Box Game (Cool!)
- Replies: 3
- Views: 1798
Super Awesome Simple Box Game (Cool!)
Hey guys. I've made pretty decent progress on my box game now and I would like to share it with you all. You basically just move around with the arrow keys and collect the coin, while avoiding the red enemies. The green bar is your health and the gray blocks are solid collision blocks which you can...
- June 18th, 2017, 8:00 pm
- Forum: Everything
- Topic: [HELP] Grid based collision
- Replies: 1
- Views: 1397
[HELP] Grid based collision
Hello friends. Today, I've been working on my project. The main thing I added was a drag and place feature for some building blocks. (The gray blocks have this feature) What I need help with now, is how I should handle the collision, so that the player cant walk into the same tile as the block. I wo...